[Bug 1932329] Re: Benchmark if we can compress kernel modules
Launchpad Bug Tracker
1932329 at bugs.launchpad.net
Wed Nov 3 21:58:43 UTC 2021
This bug was fixed in the package initramfs-tools - 0.140ubuntu8
---------------
initramfs-tools (0.140ubuntu8) jammy; urgency=medium
* Cherry-pick merge request !26 to support xz compressed
firmware. Uncompressed firmware is preffered, with a fallback to use
compressed firmware files. LP: #1942260
* Cherry-pick merge request !51 to decompress compressed kernel modules
for boot speed performance. LP: #1932329
* Cherry-pick partially merge request !50 to fix ftbfs with new
shellcheck.
* Fix shellcheck issues in ubuntu patches.
-- Dimitri John Ledkov <dimitri.ledkov at canonical.com> Tue, 19 Oct 2021
11:49:38 +0100
** Changed in: initramfs-tools (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1932329
Title:
Benchmark if we can compress kernel modules
Status in initramfs-tools package in Ubuntu:
Fix Released
Status in linux package in Ubuntu:
In Progress
Bug description:
Symbol: MODULE_COMPRESS_ZSTD [=n]
Type : bool
= Impacts to measure and observe =
== Disk space ==
* Inspect linux-modules-* and linux-modules-extra* deb package
Installed-Size and Download-Size changes, i.e.
$ apt show linux-modules-5.8.0-53-generic linux-modules-
extra-5.8.0-53-generic | grep -e Package: -e Size:
Package: linux-modules-5.8.0-53-generic
Installed-Size: 81.5 MB
Download-Size: 15.5 MB
Package: linux-modules-extra-5.8.0-53-generic
Installed-Size: 215 MB
Download-Size: 41.5 MB
In theory, there should not be a significant change in the Download-
size. It is desired that there is a significant reduction in
Installed-Size. Modules take up about 300MB and normally one has upto
three kernel version installed, resulting in about of 1GB of disk
space that one constantly pays for.
== Boot Speed ==
In theory, boot speed may either improve or regress. It depends if
disk IO is slower than decompression speed, meaning loading compressed
modules is faster.
Also one has to observe the changes in the initrd size. zstd(zstd)
compression may result in slight growth, which shouldn't impact boot
speed too much.
= Outcomes =
If installed size savings can be achieved without regressing bootspeed
we should enable CONFIG_MODULE_COMPRESS_ZSTD=y by default.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1932329/+subscriptions
More information about the foundations-bugs
mailing list