From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:35634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbuFi-0001vB-RG for Qemu-devel@nongnu.org; Wed, 29 Jun 2011 08:52:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbuFh-0000Qa-8m for Qemu-devel@nongnu.org; Wed, 29 Jun 2011 08:52:22 -0400 Received: from mail-gx0-f173.google.com ([209.85.161.173]:40187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbuFg-0000QN-Q1 for Qemu-devel@nongnu.org; Wed, 29 Jun 2011 08:52:20 -0400 Received: by gxk26 with SMTP id 26so523420gxk.4 for ; Wed, 29 Jun 2011 05:52:20 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4E0B1399.4050807@redhat.com> References: <4E0B1399.4050807@redhat.com> Date: Wed, 29 Jun 2011 13:52:19 +0100 Message-ID: From: Stefan Hajnoczi Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] Default cache mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Avi Kivity , Christoph Hellwig , Qemu-devel@nongnu.org, Stefan Hajnoczi On Wed, Jun 29, 2011 at 12:59 PM, Kevin Wolf wrote: > I'm not entirely sure if I should suggest writeback or none as the new > default, but I think it could make sense to change it. I agree that cache=none is safe and fast with correct guests and local disks. It is beaten by cache=writeback in cases where the host has a lot of buffer cache to play with and the guest has very little - for example when running qemu without a -m argument. If I was running qemu-system-arm I might like cache=writeback. If I was virtualizing x86 servers I might like cache=none. cache=none as a default - which some management tools inherit - would be reasonable. Folks using command-line qemu can always tweak to use cache=writeback or even cache=unsafe if performance matters but data integrity does not. Whether it is safe to transition to cache=none or not depends on what broken guests are still widely deployed. Does CentOS 5 flush the disk cache? Stefan