From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=38466 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OF4te-0000oT-DC for qemu-devel@nongnu.org; Thu, 20 May 2010 08:30:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OF4tZ-0000Aa-3L for qemu-devel@nongnu.org; Thu, 20 May 2010 08:30:42 -0400 Received: from mail-gx0-f218.google.com ([209.85.217.218]:52234) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OF4tY-0000AW-W0 for qemu-devel@nongnu.org; Thu, 20 May 2010 08:30:37 -0400 Received: by gxk10 with SMTP id 10so2677382gxk.10 for ; Thu, 20 May 2010 05:30:36 -0700 (PDT) Message-ID: <4BF52B64.1020903@codemonkey.ws> Date: Thu, 20 May 2010 07:30:28 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] QEMU: change default disk cache behavior References: <1274347924-9188-1-git-send-email-Jes.Sorensen@redhat.com> In-Reply-To: <1274347924-9188-1-git-send-email-Jes.Sorensen@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jes.Sorensen@redhat.com Cc: hch@infradead.org, aliguori@us.ibm.com, qemu-devel@nongnu.org, crobinso@redhat.com On 05/20/2010 04:32 AM, Jes.Sorensen@redhat.com wrote: > From: Jes Sorensen > > We seem to get into the discussion of what is the correct default > setting disk images in QEMU. The libvirt team is reluctant to change > specified for newly created images without the default setting > matching it, and everybody seems to agree that the current setting of > WT is the worse possible option. > > 'nocache' seems to be the preferred option, but it doesn't work for > all cases, like images on ramfs, NFS etc. > > Therefore, here is a patch that does two things: > - default to "nocache" > - in case of failure with nocache, retry with "write-back" > This sort of change requires performance data in a variety of circumstances to justify. And I strongly suspect that such a blanket change would be wrong but that a more targeted change like making cache=none default for physical devices would satisfy mostly everyone. Regards, Anthony Liguori > Jes Sorensen (1): > QEMU: Change default disk caching to nocache > > vl.c | 25 +++++++++++++++++++------ > 1 files changed, 19 insertions(+), 6 deletions(-) > > >