Received: from eggs.gnu.org ([140.186.70.92]:51671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbw5i-0000dA-VS for Qemu-devel@nongnu.org; Wed, 29 Jun 2011 10:50:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qbw5g-0003dH-Th for Qemu-devel@nongnu.org; Wed, 29 Jun 2011 10:50:10 -0400 Received: from verein.lst.de ([213.95.11.211]:34008 helo=newverein.lst.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbw5g-0003cq-ID for Qemu-devel@nongnu.org; Wed, 29 Jun 2011 10:50:08 -0400 Date: Wed, 29 Jun 2011 16:50:08 +0200 From: Christoph Hellwig Message-ID: <20110629145008.GB17085@lst.de> References: <4E0B1399.4050807@redhat.com> <4E0B152B.1000201@codemonkey.ws> <4E0B1787.30709@redhat.com> <4E0B1943.4090400@codemonkey.ws> <4E0B1B62.9080309@redhat.com> <4E0B33DE.5000706@msgid.tls.msk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E0B33DE.5000706@msgid.tls.msk.ru> Subject: Re: [Qemu-devel] Default cache mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Tokarev Cc: Kevin Wolf , Stefan Hajnoczi , Qemu-devel@nongnu.org, Avi Kivity , Christoph Hellwig On Wed, Jun 29, 2011 at 06:17:02PM +0400, Michael Tokarev wrote: > > Honestly, I don't know. Usually the problem is resolved with setting a > > different cache option, so nobody bothers to ask for details. I'd guess > > that it's ext4 in most cases. > > Extremly poor performance also happens on raw devices -- > be it lvm volumes or plain partitions, so that's w/o > any filesystem. Depends on your setup. If you have ATA devices that have WCE=1 it will suck due to the non-queueable FLUSH command. If you have an older kernel with the draining barriers semantics it will to. If you run on a SAS disk or FC array with WCE=0 performance will be quite good and close to native performance on these. That's all assuming you use O_DIRECT. using cache=writhrough as-is will suck everywher.