- use raw image disk type and enable zfs, this yields smaller images for upload after using native qcow2 + zstd compression
Details
- removed bump image size due to python bloat in cloudinit packages because re-testing shows its no longer required
$ qemu-img convert -S 512b -p \ -O qcow2 -c -o compression_type=zstd \ /usr/obj/usr/src/amd64.amd64/release/oracle.zfs.raw \ /tmp/qc2
yields a 4.0GiB -> ~ 890MiB reduction :-)
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 59901 Build 56786: arc lint + arc unit
Event Timeline
Just to confirm, the Oracle upload system doesn't have any preference for disk image formats?
release/Makefile.vm | ||
---|---|---|
50 | As with OCI->ORACLE rename, we want =? here. |
It's interesting that using raw could result smaller image size than qcow2.
I'm guessing this means we were generating an uncompressed qcow2, and converting raw to qcow2 includes compression as a side effect.
The image size bump doesn't seem to be reflected in this review (I'm guessing it got lost in the migration from the other review) but is fine with me.
release/Makefile.vm | ||
---|---|---|
50 | ?= |
i.e. raw > mkimg qcow2 > recompressed raw qcow2.
Oracle bills based on raw uploaded size, so saving 2/3 of the image size makes a big difference for everybody.
See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263029 for more details.
Ed - the VMSIZE change is in the next file.
release/tools/oracle.conf | ||
---|---|---|
29–30 | this isn't required anymore - not sure what's changed, but I bumped this locally over a year ago, and I'm not seeing the bloat that broke images in the past. |