From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=50235 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oxiev-0001Dk-Gq for qemu-devel@nongnu.org; Mon, 20 Sep 2010 11:52:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oxieu-0007vk-DE for qemu-devel@nongnu.org; Mon, 20 Sep 2010 11:52:01 -0400 Received: from mail-gw0-f45.google.com ([74.125.83.45]:65058) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oxieu-0007vc-Aq for qemu-devel@nongnu.org; Mon, 20 Sep 2010 11:52:00 -0400 Received: by gwb11 with SMTP id 11so1800586gwb.4 for ; Mon, 20 Sep 2010 08:51:59 -0700 (PDT) Message-ID: <4C978313.9060402@codemonkey.ws> Date: Mon, 20 Sep 2010 10:51:47 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [RFC] block-queue: Delay and batch metadata writes References: <1284991010-10951-1-git-send-email-kwolf@redhat.com> <4C977028.3050602@codemonkey.ws> <4C9778EC.9060704@redhat.com> In-Reply-To: <4C9778EC.9060704@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: Kevin Wolf Cc: qemu-devel@nongnu.org On 09/20/2010 10:08 AM, Kevin Wolf wrote: > >> If you're comfortable with a writeback cache for metadata, then you >> should also be comfortable with a writeback cache for data in which >> case, cache=writeback is the answer. >> > Well, there is a difference: We don't pollute the host page cache with > guest data and we don't get a virtual "disk cache" as big as the host > RAM, but only a very limited queue of metadata. > Would it be a mortal sin to open the file twice and have a cache=none version for data and cache=writeback for metadata? The two definitely aren't consistent with each other but I think the whole point here is that we don't care. It opens up some other possibilities too like cache=none for data and cache=writethrough for metadata which may be a useful combination. Regards, Anthony Liguori