More than 43 Million Lines of Code in Linux Kernel 7.2
Using the cloc utility, Michael Larabel of Phoronix discovered that Linux kernel 7.2 has over 43 million lines of code.
Forty-three million lines of code is quite a bit. I would say that over the span of my 30 years as a writer, I may have written that many words … may being the operative term.
The Linux kernel has been slowly inching toward that number, and who knows what count the next release will bring. Given that the codebase has seen the removal of several old drivers, the fact that the line count has climbed says a lot. Two of the drivers that were removed are the RC Systems DoubleTalk PC ISA speech synthesizer driver, which was first released in 1991. The second removal was the PROFIBUS driver that was originally ported from SCO Unix in 1998. Nobody was using the code, so out both drivers go.
You might find it surprising that the AMDGPU controller is the largest component in the core, with nearly 6.4 million lines of code, but the size of the codebase isn't nearly as important as what's in it.
Linux 7.2 includes dramatic performance improvements that come by way of improved memory management and network latency changes, changes that are due to optimizations in internal APIs. As well, there's a PCIe fix that resolves a 2023 regression regarding hot-plugged devices that could get permanently set at 2.5 GT/s speeds; a strncpy API has been totally eliminated; the integration of the Rust language received more updates, with the goal of bringing memory-safe code deeper into the kernel subsystems; the Btrfs, ext4, and F2FS filesystems were improved, memory management now has better performance on high-load systems, and the sched_ext code was restructured.
Important to note, AI's role with the Linux kernel continues by helping to bolster security tools and improving the review rate for Arm architectures.
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
openKylin 3.0 Released with Expanded AI Integration
The latest release features a pre-installed AI agent to help perform tasks.
-
DigitalOcean Ends Open Source Credits Program
In a change that has surprised many open source developers, DigitalOcean has decided to sunset its Open Source Credits Program.
-
Office 365 Available for Testing on Linux via Bottles
Linux users can now test the official Office 365, thanks to Mirko Brombin's work on Bottles.
-
Dutch Government Turns to Open Source for Digital Sovereignty
Following in the footsteps of other European countries, the Netherlands is looking to increase its sovereign digital infrastructure with open source software.
-
Linux May Soon Work on Snapdragon X2-Based PCs
If you're thinking about buying a Snapdragon X2-based desktop or laptop, Linux may soon be an option.
-
KDE for People Initiative Calls for AI Ban in Plasma
A new community of KDE wants the project to adopt a strict no-AI policy for KDE Plasma.
-
KDE Sets Ambitious Goals for 2026 and Beyond
KDE Connect reveals the goals for the Linux desktop darling, with one of those goals long overdue.
-
It’s Time to Test Fedora 45 Beta
Fedora 45 beta has been released with updated Gnome, KDE Plasma, and kernel.
-
Ubuntu Stonking Stingray Gets Even Rustier
Ubuntu 26.10 has completed its migration to the Rust-based coreutils.
-
AI Fixes Linux Bottlenecks Using “Hideous” Code
A Linux developer used AI to fix bottlenecks that caused problems when building the kernel. The resulting AI-generated code needed a lot of work.
