Bug 15852 - Investigate and reduce significant increase in rootfs size
Summary: Investigate and reduce significant increase in rootfs size
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: deployment (show other bugs)
Version: 5.3
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 5.3 M3
Assignee: Randy MacLeod
QA Contact:
URL:
Whiteboard:
Depends on: 15851
Blocks:
  Show dependency tree
 
Reported: 2025-05-06 17:27 UTC by Randy MacLeod
Modified: 2025-11-06 14:36 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy MacLeod 2025-05-06 17:27:50 UTC
Looking at the rootfs size trend in:

https://valkyrie.yocto.io/pub/non-release/20250506-54/testresults/buildperf-alma8/perf-alma8-vk_master_20250506090028_601b05a298.html

for test1: Build core-image-sato: rootfs size, 
you can see that we have a significant increases recently:

1. Commit 78042, and 78059 which is mesa:
   
   https://git.yoctoproject.org/poky/log/?id=79fa12ae4b72b967051f7d19ffddac4fe3651171

Bill has questioned whether we just went from a barely unusable, very slow sato image to one with enough mesa to be performat and therefore usable.

Regardless, we should investing these changes to see if the increase in rootfs size is sensible and worthwhile. Can we trim any content without giving up on useful features?
Comment 1 Khem Raj 2025-05-07 15:26:11 UTC
I have send couple of patches which should help with size and build time

https://lists.openembedded.org/g/openembedded-core/message/216116
https://lists.openembedded.org/g/openembedded-core/message/216117
Comment 2 Ross Burton 2025-05-19 14:15:50 UTC
Bill is mostly correct: enabling llvmpipe in Mesa pulls in libllvm which is ~114MB.  If a system wants llvmpipe then this is the cost.

There's a good argument to be made for more modular packaging of mesa, so that systems that don't want it don't need to build or install it.
Comment 3 Randy MacLeod 2025-08-14 16:21:57 UTC
We may be able to share source between llvm and rust-llvm.
Preliminary summary is that rust-llm has: 20 backported patches, and 2 rust specific ones. More data next week.

Linked related "build time increase" as a depends since bugzilla doesn't have "Relates".
Comment 4 Ross Burton 2025-11-03 18:07:11 UTC
I think we've bottomed out on this.  Disabling llvmpipe will reduce it back to where we were, which can be done if that functionality is not needed.  Otherwise the size impact of having llvm is reduced from what it was.
Comment 5 Ross Burton 2025-11-06 14:36:08 UTC
Closing, I think we've done all we can do here for the immediate impact.