qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 0/3] qcow2: Write complete sectors


From: Dor Laor
Subject: Re: [Qemu-devel] [PATCH 0/3] qcow2: Write complete sectors
Date: Tue, 16 Jun 2009 13:03:23 +0300
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2

On 06/16/2009 12:31 PM, Kevin Wolf wrote:
Once upon a time, there was a bdrv_pwrite that actually wrote single bytes to
the file... However, today it is emulated by a read-modify-write cycle which
aligns the request to sector size. This is slow. And we don't need it: qcow2
often has the complete sector in memory, we don't need to read it from the disk
again.

These patches change the writes to L1 tables, L2 tables and refcount blocks to
write complete sectors instead of single entries.

This series depends on the qcow2 split to apply cleanly.


If it's not an RFC, you better prepare a git tree for Anthony to pull from
and described how did you test it. Maybe committing the qemu-io scripts
would also be a move in the right direction.
Cheers,
Dor

Kevin Wolf (3):
   l2_allocate: Write complete sectors
   alloc_cluster_link_l2: Write complete sectors
   update_refcount: Write complete sectors

  block/qcow2-cluster.c  |   61 +++++++++++++++++++++++++++++++++++++++++------
  block/qcow2-refcount.c |   34 ++++++++++++++++++++------
  2 files changed, 79 insertions(+), 16 deletions(-)








reply via email to

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