Received: from eggs.gnu.org ([140.186.70.92]:33993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbwMb-0005lg-WD for Qemu-devel@nongnu.org; Wed, 29 Jun 2011 11:07:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbwMZ-0007wS-QG for Qemu-devel@nongnu.org; Wed, 29 Jun 2011 11:07:37 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:43280) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbwMZ-0007vx-Ca for Qemu-devel@nongnu.org; Wed, 29 Jun 2011 11:07:35 -0400 Message-ID: <4E0B3FB3.8090608@msgid.tls.msk.ru> Date: Wed, 29 Jun 2011 19:07:31 +0400 From: Michael Tokarev MIME-Version: 1.0 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> <20110629145008.GB17085@lst.de> In-Reply-To: <20110629145008.GB17085@lst.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Default cache mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christoph Hellwig Cc: Kevin Wolf , Stefan Hajnoczi , Avi Kivity , Qemu-devel@nongnu.org 29.06.2011 18:50, Christoph Hellwig wrote: > 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. The whole question (sorry I cut a bit more details than needed) was about cache=writhrough :) O_DIRECT on consumer drives with WCE=1 works fairy well too. /mjt