From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kusdp-0002CC-9U for qemu-devel@nongnu.org; Tue, 28 Oct 2008 13:46:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kusdn-0002Aa-Gr for qemu-devel@nongnu.org; Tue, 28 Oct 2008 13:46:04 -0400 Received: from [199.232.76.173] (port=55531 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kusdn-0002AM-AM for qemu-devel@nongnu.org; Tue, 28 Oct 2008 13:46:03 -0400 Received: from mail-gx0-f17.google.com ([209.85.217.17]:36375) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kusdn-0005ru-4v for qemu-devel@nongnu.org; Tue, 28 Oct 2008 13:46:03 -0400 Received: by gxk10 with SMTP id 10so4291070gxk.10 for ; Tue, 28 Oct 2008 10:46:02 -0700 (PDT) Message-ID: <49074FD6.9060408@codemonkey.ws> Date: Tue, 28 Oct 2008 12:45:58 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [RFC] Disk integrity in QEMU References: <48EE38B9.2050106@codemonkey.ws> <18695.19759.210510.580450@mariner.uk.xensource.com> In-Reply-To: <18695.19759.210510.580450@mariner.uk.xensource.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Chris Wright , Mark McLoughlin , Ryan Harper , kvm-devel , Laurent Vivier Ian Jackson wrote: > Anthony Liguori writes ("[Qemu-devel] [RFC] Disk integrity in QEMU"): > >> So to summarize, I think we should enable O_DSYNC by default to ensure >> that guest data integrity is not dependent on the host OS, and that >> practically speaking, cache=off is only useful for very specialized >> circumstances. Part of the patch I'll follow up with includes changes >> to the man page to document all of this for users. >> > > I have a patch which does this and allows the host to control the > buffering with the IDE cache control facility. > Do you mean that the guest can control host disk cachability? We've switched to always use O_DSYNC by default. There was a very long thread about it including benchmarks. With the right posix-aio tuning, we can use O_DSYNC without hurting performance*. * Write performance drops but only because write performance was greater than native before. It now is at native performance. Regards, Anthony Liguori > I'll be resubmitting it shortly (if I manage to get round to it before > going away for three weeks on Thursday lunchtime ...) > > Ian. > > >