Page MenuHomeFreeBSD

emulators/qemu: include zstd in tools flavor
AbandonedPublic

Authored by dch on Jan 10 2025, 12:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 11, 1:18 AM
Unknown Object (File)
Wed, Oct 8, 9:09 PM
Unknown Object (File)
Tue, Oct 7, 3:47 PM
Unknown Object (File)
Fri, Oct 3, 4:32 PM
Unknown Object (File)
Thu, Oct 2, 12:48 PM
Unknown Object (File)
Sat, Sep 20, 7:56 PM
Unknown Object (File)
Fri, Sep 19, 7:15 PM
Unknown Object (File)
Sep 10 2025, 11:10 PM
Subscribers
None

Details

Reviewers
bofh
Summary

qemu-img convert builds significantly smaller images when using zstd compression,
even compared to default compression. 9GiB raw yields 6GiB compressed vs 1.6GiB
with zstd.

Approved by: bofh
Sponsored by: SkunkWerks, GmbH

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 61642
Build 58526: arc lint + arc unit

Event Timeline

dch requested review of this revision.Jan 10 2025, 12:14 PM
dch created this revision.

hi Moin, I'd like this for releng so we only need emulators/qemu-tools on the builder machines. It allows us to
reduce size of generated OCI images with qcow2 significantly - from 6GiB with default compression down to 1.6GiB with zstd:

qemu-img convert -S 512b -p -O qcow2 -c -o compression_type=zstd start.raw end.qcow2

atm zstd is only included in the nox11 and larger flavours, we dont want the graphical toolbox along for the ride.

I will take care of it during my weekend port rampage.