Skip to contentSkip to conversation

qemu-img snapshot -c is unreasonably slow

Qemu-devel Thomas Huth 1 participant 2 messages Apr 13, 2018 – Apr 14, 2018 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Looking through old bug tickets... have this issue been fixed, i.e. could we close this ticket nowadays? Or is there still something left to do?

** Changed in: qemu
Status: New => Incomplete

Signature · 28 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1126369

Title:
  qemu-img snapshot -c is unreasonably slow

Status in QEMU:
  Incomplete

Bug description:
  Something fishy is going on with qcow2 internal snapshot creation
  times.  I don't know if this is a regression because I haven't used
  internal snapshots in the past.

  QEMU 1.4-rc2:
  $ qemu-img create -f qcow2 test.qcow2 -o size=50G,preallocation=metadata
  $ time qemu-img snapshot -c new test.qcow2
  real	3m39.147s
  user	0m10.748s
  sys	0m26.165s

  (This is on an SSD)

  I expect snapshot creation to take under 1 second.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1126369/+subscriptions
#2 lore raw
In reply to a message not in the archive

Code inspection shows that qcow2_update_cluster_refcount() no longer calls bdrv_flush(). This issue has been fixed.

** Changed in: qemu
Status: Incomplete => Fix Released

Signature · 28 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1126369

Title:
  qemu-img snapshot -c is unreasonably slow

Status in QEMU:
  Fix Released

Bug description:
  Something fishy is going on with qcow2 internal snapshot creation
  times.  I don't know if this is a regression because I haven't used
  internal snapshots in the past.

  QEMU 1.4-rc2:
  $ qemu-img create -f qcow2 test.qcow2 -o size=50G,preallocation=metadata
  $ time qemu-img snapshot -c new test.qcow2
  real	3m39.147s
  user	0m10.748s
  sys	0m26.165s

  (This is on an SSD)

  I expect snapshot creation to take under 1 second.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1126369/+subscriptions