Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KoKEs-0006fu-2k for qemu-devel@nongnu.org; Fri, 10 Oct 2008 11:49:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KoKEq-0006f2-JK for qemu-devel@nongnu.org; Fri, 10 Oct 2008 11:49:13 -0400 Received: from [199.232.76.173] (port=38259 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoKEq-0006ew-BL for qemu-devel@nongnu.org; Fri, 10 Oct 2008 11:49:12 -0400 Received: from hall.aurel32.net ([88.191.82.174]:49457) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KoKEp-0004i5-Uf for qemu-devel@nongnu.org; Fri, 10 Oct 2008 11:49:12 -0400 Date: Fri, 10 Oct 2008 17:48:55 +0200 From: Aurelien Jarno Subject: Re: [Qemu-devel] [RFC] Disk integrity in QEMU Message-ID: <20081010154855.GA22782@volta.aurel32.net> References: <48EE38B9.2050106@codemonkey.ws> <20081010081157.GA13431@volta.aurel32.net> <48EF49D8.3090002@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <48EF49D8.3090002@codemonkey.ws> 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 , Laurent Vivier , kvm-devel On Fri, Oct 10, 2008 at 07:26:00AM -0500, Anthony Liguori wrote: > Aurelien Jarno wrote: >> On Thu, Oct 09, 2008 at 12:00:41PM -0500, Anthony Liguori wrote: >> >> [snip] >> >> >>> 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. >>> >>> Thoughts? >>> >>> >> >> While I agree O_DSYNC should be the defaults, I wonder if we should keep >> the current behaviour available for those who want it. We can imagine >> the following options: >> cache=off O_DIRECT >> cache=read O_DSYNC (default) >> > > Or maybe cache=off, cache=on, cache=wb. So that the default was > cache=on which is write-through, or the user can choose write-back > caching. > > But that said, I'm concerned that this is far too confusing for users. > I don't think anyone is relying on disk write performance when in > write-back mode simply because the guest already has a page cache so > writes are already being completed instantaneously from the > application's perspective. > Some of my setups rely on host cache. I am using a swap partition for some guests in order to increase the available "memory" (some platforms in qemu are limited to 256MB of RAM), and it that case I don't care about data integrity -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net