[libvirt] [PATCH 2/2] Adjust block size used by dd to speed QEMU domain save operations.

Eric Blake eblake at redhat.com
Fri Jun 4 14:23:32 UTC 2010


On 06/04/2010 02:28 AM, Daniel P. Berrange wrote:
> On Thu, Jun 03, 2010 at 11:57:33PM -0400, Laine Stump wrote:
>> See https://bugzilla.redhat.com/show_bug.cgi?id=599091
>>
>> Saving a paused 512MB domain took 3m47s with the old block size of 512
>> bytes. Changing the block size to 1024*1024 decreased the time to 56
>> seconds. (Doubling again to 2048*1024 yielded 0 improvement; lowering
>> to 512k increased the save time to 1m10s, about 20%)
> 
> Surely we should have gone for 1024*1024  in this case ?
> 
> NB, since our XML header gets rounded up to a multiple of the block
> size, smaller is better, because we're filling the disk with zeros
> here :-)

In that case, it may be better to have two constants - the preferred
transfer size (1M), and the XML padding block size (512 as before, or
perhaps 4k given newer disk architectures that prefer 4k), along with
code that allows the final transfer to be shorter than the preferred
size so long as it is still a multiple of the block size.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100604/68a80fd4/attachment-0001.sig>


More information about the libvir-list mailing list