r/linuxquestions • u/DryPlum7483 • Aug 15 '26
Minimal kernel
EDIT: I may have framed the question poorly. I'm specifically asking about Kconfig-level minimization of a monolithic Linux kernel: if you know the workload/product you're deploying, how much unnecessary kernel code do teams typically end up compiling, and is there value in automatically deriving a smaller configuration from the actual runtime requirements?
How much of the Linux kernel that gets shipped in production is actually never used?
I'm wondering if release teams building/using a kernel image are often overwhelmed by the number of kernel configuration options, and end up shipping code that will never actually be used by their workload.
Are there any automatic tools out there that can fit a minimal Linux kernel to your runtime needs?
View all comments
Show parent comment
0
u/UUDDLRLRBadAlchemy Aug 15 '26
"production". Embedded systems are famous for being haphazardly slapped together and never updated. This last bit (if it was due to anything but neglect) might make it more cost effective to heavily customize them, but unlikely.
Web-facing ones either opt for uniformity (so no) or containers (so whatever Alpine does, mostly).
I suppose Gentoo might be the way to both easily customize it and keep it updated, but popular, no way.
You're more likely to see infrastructure ran on extra-bloated desktop centered distros because someone liked it at home than to find an org that wants to be responsible for a level lower than their service.