qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC] block-queue: Delay and batch metadata writes


From: Avi Kivity
Subject: Re: [Qemu-devel] [RFC] block-queue: Delay and batch metadata writes
Date: Mon, 20 Sep 2010 18:05:07 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Lightning/1.0b3pre Thunderbird/3.1.3

 On 09/20/2010 05:51 PM, Anthony Liguori wrote:
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.

I've thought of this (and I think perhaps suggested it on this list). The question is whether the kernel doesn't slow direct io when page cache is present for the file (but in unconflicting ranges).

I think it's considered a valid use case (backing up a database file while the database is O_DIRECTing into it) but I don't know if the code was actually updated to support this.

--
error compiling committee.c: too many arguments to function




reply via email to

[Prev in Thread] Current Thread [Next in Thread]