From: Alex Bligh Subject: Re: Fatal crash on xen4.2 HVM + qemu-xen dm + NFS Date: Tue, 22 Jan 2013 12:59:49 +0000 Message-ID: <21B494EF0E514908A8EBABE9@nimrod.local> References: <5B4525F296F6ABEB38B0E614@nimrod.local> <50CEFDA602000078000B0B11@nat28.tlf.novell.com> <3B1D0701EAEA6532CEA91EA0@Ximines.local> <77822E2DDAEA8F94631B6A52@Ximines.local> <1358781790.3279.224.camel@zakaz.uk.xensource.com> <1358783420.3279.235.camel@zakaz.uk.xensource.com> <1358787073.3279.257.camel@zakaz.uk.xensource.com> <19EA31DDC3BEF4D66B42CBAC@Ximines.local> <1358849638.3279.314.camel@zakaz.uk.xensource.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: <1358849638.3279.314.camel@zakaz.uk.xensource.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: Ian Campbell Cc: Konrad Wilk , Xen Devel , Alex Bligh , Jan Beulich , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Ian, --On 22 January 2013 10:13:58 +0000 Ian Campbell wrote: > AIUI it is intentional. The safe option (i,e, the one which doesn't risk > trashing the filesystem) is not to cache (so that writes have really hit > the disk when the device says so). We want to always use this mode with > PV devices. Except it isn't the safe option because O_DIRECT (apparently) is not safe with NFS or (we think) iSCSI, and in a far nastier way. And fixing that is more intrusive (see your patch series). I can't test it at the moment (travelling), but if not using O_DIRECT fixed things, would you accept something that somehow allowed one to specify an option of not using O_DIRECT? I need to look at how to get the disk config line from xen_disk.c if so. > However the performance impact of not caching the emulated (esp IDE) > devices is enormous and so the trade off was made to cache them on the > theory that they would only be used during install and early boot and > that OSes would switch to PV drivers ASAP. Also AIUI the emulated IDE > interface doesn't have any way to request that something really hits the > disk anyway, but I might be misremembering that. You mean the equivalent of flush/fua? I can't comment, but I believe the write barrier stuff isn't in 4.2 in xen_disk either. > Check the archives from around the time this change was made, I'm pretty > sure there was some discussion of why things are this way. I tried but couldn't find anything. I could only find the patches going to qemu-devel and not on the main list, but I may well have missed them as I'm relying on Google finding stuff in archives at that time. -- Alex Bligh