qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] qemu-img: Add cache command line option


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH] qemu-img: Add cache command line option
Date: Thu, 16 Jun 2011 16:43:23 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Thunderbird/3.1.10

Am 16.06.2011 16:28, schrieb Christoph Hellwig:
> On Wed, Jun 15, 2011 at 09:46:10AM -0400, Federico Simoncelli wrote:
>> qemu-img currently writes disk images using writeback and filling
>> up the cache buffers which are then flushed by the kernel preventing
>> other processes from accessing the storage.
>> This is particularly bad in cluster environments where time-based
>> algorithms might be in place and accessing the storage within
>> certain timeouts is critical.
>> This patch adds the option to choose a cache method when writing
>> disk images.
> 
> Allowing to chose the mode is of course fine, but what about also
> choosing a good default?  writethrough doesn't really make any sense
> for qemu-img, given that we can trivially flush the cache at the end
> of the operations.  I'd also say that using the buffer cache doesn't
> make sense either, as there is little point in caching these operations.

Right, we need to keep the defaults as they are. That is, for convert
unsafe and for everything else writeback. The patch seems to make
writeback the default for everything.

Kevin



reply via email to

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