From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Miqbu-0007e3-Gh for qemu-devel@nongnu.org; Wed, 02 Sep 2009 10:14:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Miqbp-0007c5-GQ for qemu-devel@nongnu.org; Wed, 02 Sep 2009 10:14:53 -0400 Received: from [199.232.76.173] (port=57552 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Miqbp-0007bw-9C for qemu-devel@nongnu.org; Wed, 02 Sep 2009 10:14:49 -0400 Received: from verein.lst.de ([213.95.11.210]:49794) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1Miqbo-0007ok-KO for qemu-devel@nongnu.org; Wed, 02 Sep 2009 10:14:49 -0400 Date: Wed, 2 Sep 2009 16:14:44 +0200 From: Christoph Hellwig Subject: Re: [Qemu-devel] [PATCH 1/4] block: add enable_write_cache flag Message-ID: <20090902141444.GA18253@lst.de> References: <20090831201627.GA4811@lst.de> <20090831201651.GA4874@lst.de> <20090831220950.GB24318@shareable.org> <20090831221622.GA8834@lst.de> <4A9C5463.4090904@codemonkey.ws> <20090902035337.GA18844@lst.de> <4A9E6F90.8060609@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A9E6F90.8060609@codemonkey.ws> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Christoph Hellwig , qemu-devel@nongnu.org On Wed, Sep 02, 2009 at 08:13:52AM -0500, Anthony Liguori wrote: > Does barrier=0 make a performance difference? IOW, would the typical > default ext3 deployment show worse behavior? I'll give it a spin. > >A kernel defconfig compile takes between 9m40s and 9m42s with > >data=writeback and barrieres disabled, and with fdatasync barriers > >enabled it actually is minimally faster, > > If fdatasync different than fsync on ext3? Does it result in a full > metadata commit? ext3 honors the fdatasync flag and only does it's horrible job if the metadata we care about is dirty, that is only if some non-timestamp data is dirty. Which means for a non-sparse image file it does well, while for a sparse image file needing allocations it will cause trouble. And now that you mention it I've only tested the non-sparse case which now is default for the management tools at least on Fedora.