qemu-block
[Top][All Lists]
Advanced

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

Re: [Qemu-block] [PATCH v3] qcow2: fix preallocation with metadata on ba


From: Ivan Ren
Subject: Re: [Qemu-block] [PATCH v3] qcow2: fix preallocation with metadata on bare block device
Date: Mon, 14 May 2018 22:30:38 +0800

> Oh, yes, there is no doubt that the result will be correct. My point is
> that people aren't usually interested so much in the physical layout of
> the clusters, but more about the fact that no metadata updates and no
> COW is necessary when you write to a cluster for the first time (i.e.
> because preallocation brings some performance improvements).
>
> Do you have a use case where the layout is more important? If there
> are good reasons for either option, maybe we need two different
> preallocation modes.

Yes, in my opinion, there are two advantages for preallocated metadata:
1. No metadata update.
2. The qcow2 cluster offset keep the same continuity with the guest offset, and this is good for performance.

The second point is good if underlying media is bare block device without filesystem, it means the continuous blocks in guest also keep continuity on host.
The second point may not always be true if the qcow2 underlying media is a regular file, in this case, the offset in qcow2 metadat is just the file's offset but not the underlying block device.

Thanks.

reply via email to

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