All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] qemu-img create: set "nocow" flag to solve performance issue on btrfs
@ 2013-09-25  6:38 Chunyan Liu
  2013-09-26  7:58 ` Stefan Hajnoczi
  0 siblings, 1 reply; 8+ messages in thread
From: Chunyan Liu @ 2013-09-25  6:38 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 681 bytes --]

Hi, List,

Btrfs has terrible performance when hosting VM images, even more when the
guest in those VM are also using btrfs as file system.
One way to mitigate this bad performance would be to turn off COW
attributes on VM files (since having copy on write for this kind of data is
not useful). We could improve qemu-img to ensure they flag newly created
images as "nocow". For those who want to use Copy-on-write (for
snapshotting, to share snapshots across VM, etc..) could be able to change
this behaviour by 'chattr', either globally or per VM.

I wonder could we add a patch to improve qemu-img create, to set 'nocow'
flag by default on newly created images?

Thanks,
Chunyan

[-- Attachment #2: Type: text/html, Size: 785 bytes --]

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

end of thread, other threads:[~2013-09-27  9:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-25  6:38 [Qemu-devel] qemu-img create: set "nocow" flag to solve performance issue on btrfs Chunyan Liu
2013-09-26  7:58 ` Stefan Hajnoczi
2013-09-26  8:54   ` Paolo Bonzini
2013-09-26 10:30     ` Chunyan Liu
2013-09-26 16:56       ` Paolo Bonzini
2013-09-27  8:58         ` Chun Yan Liu
2013-09-27  9:02           ` Paolo Bonzini
2013-09-26  9:04   ` Chunyan Liu

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.