qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] qcow2 performance plan


From: Anthony Liguori
Subject: Re: [Qemu-devel] qcow2 performance plan
Date: Tue, 14 Sep 2010 13:58:23 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100826 Lightning/1.0b1 Thunderbird/3.0.7

On 09/14/2010 12:23 PM, Avi Kivity wrote:
 On 09/14/2010 07:08 PM, Anthony Liguori wrote:
Yes, I hit this too. So without this patch, it does serialize all allocating writes?


Yes, but my patch is not enough as it turns out.

When dealing with O_DIRECT, we have to handle RMW on our own which means we need to serialize access to the same sector.

The way we're planning on addressing this in the short term is to break the single allocator queue into a per-L2 table queue. So writes to the same L2 would be serialized but writes to different L2s would not be serialized.


So at least I read the code correctly.

The next step (also addressed in the qcow2 performance plan) is to batch writes to L2. You'd actually expect to have many concurrent allocating writes to one L2. The first is sent to disk, but the following ones just mark the L2 dirty. When the write returns, it sees it's still dirty and goes back to disk again.

Yeah, I have to think through batching quite a bit more but I agree that batching should be a natural next step and can further reduce the cost of updating metadata in a streaming workload.

Regards,

Anthony Liguori





reply via email to

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