From: Ian Campbell Subject: Re: xl block-attach vs block-detach Date: Sat, 3 Mar 2012 05:25:53 +0000 Message-ID: <1330752353.10008.198.camel@dagon.hellion.org.uk> References: <4F4FB2D30200007800075CDA@nat28.tlf.novell.com> <1330620346.18632.32.camel@zakaz.uk.xensource.com> <4F5087960200007800075E88@nat28.tlf.novell.com> <1330675523.10008.190.camel@dagon.hellion.org.uk> <4F50E06502000078000760A6@nat28.tlf.novell.com> <4F50E83102000078000760F8@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Joseph Glanville Cc: xen-devel , Jan Beulich , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Please don't top post, it destroys the flow of the conversation. On Fri, 2012-03-02 at 22:54 +0000, Joseph Glanville wrote: > Hi, > > As I understand it prefering tapdisk over loop+blkback has never been > for performance reasons historically. (tapdisk2:aio does however > exhibit very good performance) > The primary reason that tapdisk was always recommended over file: is > that the Linux file cache does very interesting things to your data > and sync is returned to the blkback backend much sooner than the data > actually resides safely on disk (which can sit in the linux disk cache > for a sizeable amount of time if they machine has alot of ram). Are you suggesting that the loop device doesn't support O_DIRECT and will leave stuff dirty in the page cache even when direct access is used? That is worth knowing! > Unfortunately changing the default behavior to tapdisk What exactly needs changing? > probably isn't > viable at this time for a number of reasons - not least of which is > the fact it is yet to be included in mainline. tapdisk is not going to be included in mainline. The kernel side is deemed to be non-upstreamble. Someone is working on a fully userspace version of bkltap which we hope will be ready soon. Ian. > However it would definitely be preferable in the long term - atleast > from the perspective of data integrity and principle of least > surprises. > > Just my 2c. > > Joseph. > > On 3 March 2012 04:37, Stefano Stabellini > wrote: > > On Fri, 2 Mar 2012, Stefano Stabellini wrote: > >> On Fri, 2 Mar 2012, Jan Beulich wrote: > >> > > What would be the rationale behind using blkback+loop for "file:"? > >> > > Backward compatibility? > >> > > >> > Yes. > >> > > >> > > Do you think it might break something for users if we change the backend > >> > > from xend to xl? > >> > > >> > This cannot be excluded, particularly because (just like me here) > >> > users tend to do things you didn't expect them to when you write > >> > the code. > >> > >> I see your point but actually that is quite an obvious bug, not a very > >> subtle one that only happens in strange user configs. > >> > > > > Scratch that: I have just tried on Linux 3.3 and the performance of > > blkback with loopback is very good. We should use it whenever we can. > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xen.org > > http://lists.xen.org/xen-devel > > >