Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: use qcow2 compressed images, instead of raw-sparse #21

Open
mykaul opened this issue Aug 3, 2017 · 2 comments
Open

Enhancement: use qcow2 compressed images, instead of raw-sparse #21

mykaul opened this issue Aug 3, 2017 · 2 comments

Comments

@mykaul
Copy link

mykaul commented Aug 3, 2017

Today we use raw-sparse images. This has some drawbacks:

  1. It does not support file systems that don't have sparse support. It fills the whole file system, needlessly.
  2. It requires us to XZ the images and ship them as XZ.

qcow2 with compression:

  1. The image take 531MB (vs. 1.2GB of the raw-sparse)
  2. The XZ compressed qcow2 +compression takes 513MB (so there's little point in re-compressing it).
  3. The XZ compressed qcow2 takes 373MB (so should we convert to a compressed qcow2 on the client?)
  4. The XZ compressed raw-sparse takes 374MB (so should we do the conversion from raw-sparse to qcow2+ compression on the client?)
  5. Most importantly, at least on my laptop (SSD storage), I could not see any difference in performance (running ovirt-system-tests on top of a compressed qcow2 used as base image)
  6. On my host, it took 50s to convert from raw-sparse to qcow2+compression

Note: compression does not support metadata preallocation.qemu

@gbenhaim
Copy link
Member

gbenhaim commented Aug 3, 2017

  1. When compressing twice the file gets bigger?
  2. The only benefit that I see is [1] (because xz compress better), but can we think about a situation
    where Lago will store images on a files system that doesn't support sparse files?

@mykaul
Copy link
Author

mykaul commented Aug 3, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants