-
Notifications
You must be signed in to change notification settings - Fork 17
mkdumprd: replace lz4hc with lzma for better compression in squash image #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Among the compression algorithms currently enabled in RHEL-10, erofs+lzma has a higher compression ratio than lz4hc, this patch will replace it with lzma. Testing shows when using erofs+lz4hc in RHEL-10, the size of the initramfs generated for local dump is 47M, and the size for nfs dump is 57M. After using lzma, the size is reduced to 39M and 45M. This is very closely compared to the 38M and 44M when using squashfs+zstd. Signed-off-by: Lichen Liu <lichliu@redhat.com>
Reviewer's GuideThis PR updates the mkdumprd script to switch the default squash image compression from lz4hc to lzma, updating the command invocations, option parsing, and help text accordingly to achieve better compression ratios on RHEL-10. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @licliu - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Hi @licliu, according to https://issues.redhat.com/browse/RHEL-36444, it seems So what's the difference here? In principle, lzma should have smaller image size than zstd. |
Hi @hsiangkao, thanks for your attention! |
I do think the kdump use case doesn't need |
Among the compression algorithms currently enabled in RHEL-10, erofs+lzma has a higher compression ratio than lz4hc, this patch will replace it with lzma.
Testing shows when using erofs+lz4hc in RHEL-10, the size of the initramfs generated for local dump is 47M, and the size for nfs dump is 57M. After using lzma, the size is reduced to 39M and 45M. This is very closely compared to the 38M and 44M when using squashfs+zstd.
Summary by Sourcery
Replace LZ4HC with LZMA for EROFS compression in mkdumprd to reduce squash image sizes
Enhancements:
Documentation: