* [Qemu-devel] qcow2 performance improve [discuss]
@ 2018-07-27 10:10 yang.bin18
0 siblings, 0 replies; only message in thread
From: yang.bin18 @ 2018-07-27 10:10 UTC (permalink / raw)
To: qemu-devel
When use cluster_size=1M qcow2 newly created to test "32k rand write" in the VM,We get low performance within VM。But there are huge “write” requests in HOST which falls into qemu stack of"perform_cow".
We found three scene to use cow.
1. write cluster have snapshot
2. write img has backing file
3. two concurrent writes happen to the same unallocated cluster.Each write allocates separate cluster and writes data concurrently 。
For scene 2 and 3,we want to check the necessity before cow.
For scene 2 ,to check bs->backing,if false ,not cow .
For scene 3,if not concurrent writes happen to the same unallocated cluster,not cow.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-07-27 10:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-27 10:10 [Qemu-devel] qcow2 performance improve [discuss] yang.bin18
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).