From: Alex Bligh Subject: Re: Fatal crash on xen4.2 HVM + qemu-xen dm + NFS Date: Thu, 07 Mar 2013 08:16:27 +0000 Message-ID: References: <4D54EE421529BA5E0A511E31@nimrod.local> <850CD247D67BBF77A4CF0417@nimrod.local> <656C0D5981D3A8BFB9993B2E@nimrod.local> <330E687E05E24E508F95A610@nimrod.local> <20130222174129.GD7768@phenom.dumpdata.com> <262CC5014C323700E12B5A63@nimrod.local> <20130307010153.GC12421@phenom.dumpdata.com> Reply-To: Alex Bligh Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130307010153.GC12421@phenom.dumpdata.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: Alex Bligh , Xen Devel , Ian Campbell , Jan Beulich , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Konrad, --On 6 March 2013 20:01:53 -0500 Konrad Rzeszutek Wilk wrote: >> Results are positive. > > Great! Does that mean some sort of switch to turn off O_DIRECT (or turning it off by default) can go into qemu? > Thought it is interesting that the application is doing write and sync > (WS) for other blocks (like 2013633), which I thought would have > been the case if the file was opened with O_SYNC. The sparsecopy > code does not seem to do it? On both host and guest every single write has 'S' set. You are correct that sparsecopy doesn't open with O_SYNC. Perhaps it's the fact that it's the fdatasync() which is causing the writes from the page cache (and that by definition is blocking) which causes blktrace to see 'S' bits? I think it was writing 4k blocks and syncing every 16k. -- Alex Bligh