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)
Tue, Jul 1, 11:46 PM
Unknown Object (File)
Fri, Jun 27, 2:03 PM
Unknown Object (File)
Sat, Jun 21, 8:07 AM
Unknown Object (File)
Jun 11 2025, 10:11 PM
Unknown Object (File)
May 24 2025, 2:39 PM
Unknown Object (File)
May 17 2025, 7:44 AM
Unknown Object (File)
Apr 28 2025, 5:19 AM
Unknown Object (File)
Apr 22 2025, 7:18 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.