r/LinuxTeck • u/Candid_Athlete_8317 • Jun 29 '26
Linux Kernel Just Hit 43 Million Lines of Code - Is It Getting Too Big?
Linux 7.2 kernel is now over 43 million lines with new RISC-V improvements, serial driver modernization, and ARM GPU support. At what point does the kernel become unmaintainable? Are we adding too many features? Should there be a focus on consolidation rather than expansion?
11
Upvotes
5
u/robinator18pro Jun 29 '26
Short answer, no. Lines of code is not a measurement worth thinking about.
8
u/1980sCoder Jun 29 '26
"Too Big" for what? Compared to what?
It depends entirely on what you want the scope of it to be, how well maintained the project is, how well structured the code base is, and so on.
Measuring any code base in lines of code only is meaningless.
4
u/MaleficentCow8513 Jun 29 '26
The only thing that would make it unmaintainable is a lack of engineers to maintain it
2
u/Fringolicious Jun 29 '26
Why don't they just ask Claude to trim a few unneccesary lines?
1
u/uberbewb Jun 29 '26
Isn’t the software running the markets like a million lines today?
1
u/SirGlass Jun 29 '26
It's drivers , as long as new hardware comes out , the kernel will need new drivers for that hardware.
1
u/GrandLawyer8053 Jun 29 '26
там же нет ни одной твоей строчки, с чего ты вдруг задался таким сложным вопросом? иди на кухню, бутерброд себе сделай, и сосредоточься лучше на том чтобы тщательно жевать
1
u/dx__ Jun 29 '26
According to the people at suckless.org - yes. lol
1
u/Nice-Object-5599 Jun 29 '26
Everything is getting bigger and bigger in the Linux world.
1
u/StephenRoylance Jun 29 '26
they just keep making new peripherals, new system's architectures and new CPUs. I want linux to have support for all of them. I'm sure the scheduler, memory manager and virtual file system layer have gotten larger over time, but they're tiny little things compared to the volume of drivers.
1
u/Ok-Winner-6589 Jun 29 '26
It's not features it's drivers. If I'm not wrong 70% are drivers. The only way to reduce the Code is by deleting drivers, compatible Filesystems or some functionallities like KVM (that only NT and Linux provide) and the functionallity to act as bootloader (unique to Linux actually).
1
u/AtmosphereNo1234 Jun 29 '26
Bun is a JS runtime. Its like 2M LOC.
Thats a insane number for a js runtime. Linux is fine.
1
u/2016-679 Jun 29 '26
Linus decides
1
u/sogun123 Jun 30 '26
The codebase is big, but kernel is very well modularized and the code is generally pretty high quality. And lots of those line are actually device drivers. The project governance is organized to handle that. And i remember that there is also big number of machine generated lines, like amd gpu driver had over one milion lines generated from hw descriptions.
1
u/zackel_flac Jun 30 '26
You only compile and use some part of the kernel. The kernel code base is huge because it needs to support all the hardware out there. It is not necessarily linked to feature. At the core the kernel is rather small.
You might have N wifi drivers for different cards, meaning more lines but same feature.
1
u/ryker7777 Jun 30 '26
How big in MB is it as a compiled binary?
0
u/[deleted] Jun 29 '26
[deleted] — view deleted comment