qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] qcow2: slow internal snapshot creation
@ 2012-11-23  7:26 Dietmar Maurer
  2012-11-23 14:03 ` Alexandre DERUMIER
  2012-11-23 15:31 ` Kevin Wolf
  0 siblings, 2 replies; 7+ messages in thread
From: Dietmar Maurer @ 2012-11-23  7:26 UTC (permalink / raw)
  To: qemu-devel@nongnu.org; +Cc: Kevin Wolf (kwolf@redhat.com)

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

qcow2 snapshot on newly created files are fast:

# qemu-img create -f qcow2 test.img 200G
# time qemu-img snapshot -c snap1 test.img
real       0m0.014s

but if metadata is allocated it gets very slow:

# qemu-img create  -f qcow2 -o "preallocation=metadata" test.img 200G
# time qemu-img snapshot -c snap1 test.img
real       1m20.399s

but reading the metadata is also fast:

# time qemu-img check test.img
real       0m0.371s

So why is creating a new snapshot that slow - any ideas?


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

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

end of thread, other threads:[~2012-11-23 15:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-23  7:26 [Qemu-devel] qcow2: slow internal snapshot creation Dietmar Maurer
2012-11-23 14:03 ` Alexandre DERUMIER
2012-11-23 14:09   ` Kevin Wolf
2012-11-23 14:17     ` Alexandre DERUMIER
2012-11-23 14:58       ` Kevin Wolf
2012-11-23 15:53         ` Alexandre DERUMIER
2012-11-23 15:31 ` Kevin Wolf

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).