A quick check confirmed your report, thanks Andreas!

"preallocation" does exactly what expected and that takes the time you are 
seeing:
Preallocation mode (allowed values: "off", "falloc", "full").  "falloc" mode 
preallocates space for image by calling posix_fallocate().  "full" mode 
preallocates space for image by writing zeros to underlying storage.

It already uses fallocate which is better than writing zeros and much
faster depending on the FS setup. But obviously bother are slower (on
creation) than lazy allocation later.

The change of this should be in virt-manager, not libvirt I'd assume.
I'll take a look.

P.S. already ahead of time I'd think that creating with pre-alloc -
while slower - is certainly much safer against later odd errors due to
disk space.

** Changed in: libvirt (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1847105

Title:
  very slow disk creation, snapshotting

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1847105/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to