All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] reduce write bandwidth of qcow2 driver while allocating new cluster
@ 2017-08-28  5:56 Liu Qing
  2017-08-28 15:46 ` Eric Blake
  2017-08-28 21:40 ` John Snow
  0 siblings, 2 replies; 9+ messages in thread
From: Liu Qing @ 2017-08-28  5:56 UTC (permalink / raw)
  To: qemu-devel; +Cc: liuqing

Dear list,
    Recently I used fio to test qcow2 driver in the guest os, and found out
that when a new cluster is allocated the 4K IO will occupy 64K(default cluster
size) bandwith.
    From the code qcow2 driver will fill the unused part of new allocated
cluster with 0 in perform_cow. These 0s are set in qcow2_co_readv when the read
destination is not allocated and it has no backing file. Could I forbidden any
further write in copy_sectors if the copy source is not allocated and it has
no backing file? So only the requested data is written to the cluster. Function
copy_sectors is only used by perform_cow in the master branch.
    Do you think this change is reasonable? Thanks.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-09-05  3:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-28  5:56 [Qemu-devel] reduce write bandwidth of qcow2 driver while allocating new cluster Liu Qing
2017-08-28 15:46 ` Eric Blake
2017-08-29  2:56   ` Liu Qing
2017-08-30 10:15     ` Anton Nefedov
2017-08-31  6:55       ` Liu Qing
2017-09-04 13:17         ` Anton Nefedov
2017-09-05  3:32           ` Liu Qing
2017-08-28 21:40 ` John Snow
2017-08-29  3:05   ` Liu Qing

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.