Page MenuHomeFreeBSD

release: tweak Oracle Cloud settings
ClosedPublic

Authored by dch on Fri, Oct 11, 12:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 4, 1:07 AM
Unknown Object (File)
Sun, Nov 3, 2:37 PM
Unknown Object (File)
Fri, Nov 1, 1:46 PM
Unknown Object (File)
Fri, Oct 25, 3:27 PM
Unknown Object (File)
Sun, Oct 20, 12:23 AM
Unknown Object (File)
Tue, Oct 15, 6:23 AM
Unknown Object (File)
Sun, Oct 13, 6:11 AM
Unknown Object (File)
Sun, Oct 13, 6:11 AM
Subscribers

Details

Summary
  • use raw image disk type and enable zfs, this yields smaller images for upload after using native qcow2 + zstd compression
Test Plan
  • 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

dch requested review of this revision.Fri, Oct 11, 12:13 PM

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.

This revision is now accepted and ready to land.Mon, Oct 14, 8:05 PM
emaste added a subscriber: emaste.

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

?=

dch marked 2 inline comments as done.

Make ORACLE_FSLIST? overridable.

This revision now requires review to proceed.Tue, Oct 15, 9:10 AM

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.

This revision is now accepted and ready to land.Tue, Oct 15, 9:10 AM
dch edited the test plan for this revision. (Show Details)
dch edited the test plan for this revision. (Show Details)

remove VMSIZE change we don't need it anymore

This revision now requires review to proceed.Tue, Oct 15, 1:12 PM
dch added inline comments.
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.

This revision is now accepted and ready to land.Wed, Oct 16, 12:28 PM
This revision was automatically updated to reflect the committed changes.