Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1868142 - RFE: enable compression when images use btrfs as sysroot
Summary: RFE: enable compression when images use btrfs as sysroot
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: appliance-tools
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-11 19:37 UTC by Chris Murphy
Modified: 2020-08-11 19:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Chris Murphy 2020-08-11 19:37:42 UTC
Anaconda equivalent RFE has all the background:
https://bugzilla.redhat.com/show_bug.cgi?id=1851276

As it relates to appliance-tools, the variant that makes the most sense to me is:

1. Use 'mount -o compress-force=zstd:9' (or higher level as resources allow, up to 15) upon first mount when assembling prior to the installation. That way the install image itself is as highly compressed as possible/desired.

2. Set the /etc/fstab mount option to 'compress=zstd:1' which has a couple of optimizations. One, it's the least level of compression, thus faster. Two, it has uses Shannon entropy to cheaply estimate the benefit (or lack thereof) of compressing to do an early bail out, i.e. not attempt the compression at all, on a per block basis.

This is fairly conservative. As we learn more about the various tradeoffs, we might get more aggressive.

Facebook currently uses compress=zstd:1 across the board times millions of machines, there's no place they don't use it.


Note You need to log in before you can comment on or make changes to this bug.