Skip to content

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

@mykaul

Description

@mykaul

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions