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
-
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.
-
Kubuntu Focus Goes Ultra
The Kubuntu Focus team has upped the performance ante of its M2 and Zr laptops with the latest, greatest CPUs from Intel.
-
Linux Gamers May Soon See Less Mouse Lag in KDE Plasma
Gamers using KDE’s Plasma desktop have been suffering from a slight input delay in mouse movement that could lead to getting fragged.
-
Three Lines of Code Improve Linux Storage Performance
A developer changed three lines of code, giving Linux storage performance a 5% bump.
-
AUR Hit Again with Malicious Packages
Once again the Arch User Repository is plagued by a high volume of malicious packages.
-
Alpine Linux 3.24 Features Fresh Desktops and a Newer Kernel
If you're a fan of Alpine Linux, it's time to upgrade because the latest version has been released with KDE Plasma 6.6, Gnome 50, and Linux kernel 6.18 LTS.
-
EU Open Source Strategy Plays Key Role in Tech Sovereignty Package
Comprehensive measures adopted by the European Commission aim to reduce dependency on non-EU countries.
-
Linux Foundation Report Indicates AI Driving Tech Hiring
Within growing security and skills gaps, AI has been found to be a positive driving force behind tech hiring trends in Europe.
-
United Nations Open Source Portal Goes Live
A new open source portal seeks to coordinate and scale open source efforts across the United Nations system.
-
KDE Linux Drops AUR
KDE Linux developers have dropped the Arch User Repository from the build pipeline due to security concerns; other distributions should consider doing the same.
