Kernel 6.1 bumped the disk consumption on default images by 15%
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Lunar |
Fix Released
|
Medium
|
Unassigned | ||
Mantic |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
After enabling Rust support in the kernel we noticed an increased size in linux-headers, because all the Rust libraries required to build out-of-tree kernel modules are now included in linux-headers directly.
The increased size goes from ~30MB to ~100MB.
This extra size is not worth it, considering the small amount of users that are going to experiment Rust in the kernel at the moment.
[Test case]
Install linux-headers and check the size of /usr/src/
[Fix]
Some work has already done to reduce the size of linux-headers by dropping some binary artifacts (*.o and *.cmd) that are not required to build out-of-tree kernel modules.
Ideally it'd be nicer to provide a separate package (called for example linux-lib-
In this way linux-headers would be restored back to the original size, those that want to experiment Rust in the kernel can simply install linux-lib-rust and we can prevent wasting space in the cloud images.
[Regression potential]
Introducing a new package in the kernel may break something in our kernel promotion workflow, so with this change applied we need to pay a little more attention when the kernel is going to be promoted to release/updates.
[Original bug report]
Hi,
in the regular monitoring of metrics there was a bump in disk size last week.
The default image once installed consumes now 994 (formerly 859) megabytes.
Looking at the consumers there was much noise, but the biggest change was
linux-headers-
linux-modules-
I haven't looked deeper yet. Is that an accident and will be fixed soon, is that a change we can do nothing about, anything in between?
CVE References
tags: | added: bot-stop-nagging |
description: | updated |
Changed in linux (Ubuntu Lunar): | |
status: | New → Confirmed |
Changed in linux (Ubuntu Lunar): | |
importance: | Undecided → Medium |
status: | Confirmed → Fix Committed |
tags: |
added: verification-done-lunar removed: verification-needed-lunar |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 2015867
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.