FS#78894 - [linux] Use greater module zstd compression

Attached to Project: Arch Linux
Opened by Emil (xexaxo) - Monday, 26 June 2023, 13:48 GMT
Last edited by Jan Alexander Steffens (heftig) - Monday, 26 June 2023, 23:50 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Currently the kernel modules are using the default (level 3) compression. Can we consider using 19?

This gives us ~15% smaller package, at the expense of ~1 minute extra packaging time.

Not 100% sure if higher levels are supported by the kernel, plus they take an extra memory during decompression. In case you're wondering why I mentioned kernel support - currently the modules have to be decompressed in userspace (kmod does it for us), but there are kernel/kmod patches that pass the zstd files to the kernel itself.

To do that, simply use/export ZSTD_CLEVEL=19.

Steps to reproduce:
- sed -i s/make INSTALL_MOD_PATH/ZSTD_CLEVEL=19 make INSTALL_MOD_PATH/ PKGBUILD
- rebuild the kernel
- reboot and enjoy
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Monday, 26 June 2023, 23:50 GMT
Reason for closing:  Fixed
Additional comments about closing:  Implemented in main, pending next release.

Loading...