From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:55712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbw8I-0001NB-L6 for Qemu-devel@nongnu.org; Wed, 29 Jun 2011 10:52:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qbw8G-0004FN-VU for Qemu-devel@nongnu.org; Wed, 29 Jun 2011 10:52:50 -0400 Received: from verein.lst.de ([213.95.11.211]:34016 helo=newverein.lst.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbw8G-0004FD-Aw for Qemu-devel@nongnu.org; Wed, 29 Jun 2011 10:52:48 -0400 Date: Wed, 29 Jun 2011 16:52:48 +0200 From: Christoph Hellwig Message-ID: <20110629145248.GC17085@lst.de> References: <4E0B1399.4050807@redhat.com> <4E0B15B2.40504@codemonkey.ws> <20110629135545.GD15863@lst.de> <4E0B3493.4080706@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E0B3493.4080706@codemonkey.ws> Subject: Re: [Qemu-devel] Default cache mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Kevin Wolf , Avi Kivity , Christoph Hellwig , Stefan Hajnoczi , Qemu-devel@nongnu.org On Wed, Jun 29, 2011 at 09:20:03AM -0500, Anthony Liguori wrote: > Sorry, I meant having a new cache option (maybe diskcache). Semantics > would be: > > diskcache=on,wce=on 0 > diskcache=on,wce=off O_SYNC > diskcache=off,wce=on O_DIRECT > diskcache=off,wce=off O_DIRECT | O_SYNC > > ignore_flush could be another option too. Please make it two options instead of a two-dimensional one. E.g. e hostcache=[on,off] option for the drive command line, where fake is the equivalent of the current code together with > I think developers usually want diskcache=on but I also agree that usually > in production, you want diskcache=off. Why would you want to not use O_DIRECT as a developer? Especially for desktop setups where the VM images might be on a common use filesystem not using O_DIRECT a deathly option for performance.