From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbtZ9-0007IP-3L for Qemu-devel@nongnu.org; Wed, 29 Jun 2011 08:08:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbtZ7-0008Sn-M8 for Qemu-devel@nongnu.org; Wed, 29 Jun 2011 08:08:22 -0400 Received: from mail-gw0-f45.google.com ([74.125.83.45]:46693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbtZ7-0008Se-D0 for Qemu-devel@nongnu.org; Wed, 29 Jun 2011 08:08:21 -0400 Received: by gwb19 with SMTP id 19so508361gwb.4 for ; Wed, 29 Jun 2011 05:08:20 -0700 (PDT) Message-ID: <4E0B15B2.40504@codemonkey.ws> Date: Wed, 29 Jun 2011 07:08:18 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <4E0B1399.4050807@redhat.com> In-Reply-To: <4E0B1399.4050807@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 06/29/2011 06:59 AM, Kevin Wolf wrote: > Hi, > > I think we have touched this topic before during some IRC discussions or > somewhere deep in a mailing list thread, but I think it hasn't been > discussed on the list. > > Our default cache mode of cache=writethrough is extremely conservative > and provides absolute safety at the cost of performance, Thinking twice about this, shouldn't we just move to a simplified model: -drive file=foo.img,cache=[on|off],hd0 -device virtio-blk-pci,drive=hd0,wce=1 As long as we advertise wce and wce can be toggled from the guest, I don't think the default is all that important. I think cache=on is the right default for most common use cases. Regards, Anthony Liguori