Linux 4.14 Is Up To Around 23.2 Million Lines Of Code

Written by Michael Larabel in Linux Kernel on 24 September 2017 at 08:00 AM EDT. 5 Comments
LINUX KERNEL
While I usually look at the Linux kernel code size following each merge window, I am a few days late this time around due to busy Xeon/EPYC benchmarking and XDC2017. Anyhow, Linux 4.14 is showing some weight gains but nothing too bad.

Linux 4.14 has been another busy cycle with a lot of happenings from finally seeing Heterogeneous Memory Management merged to a lot of other new core functionality plus the always fun and exciting changes and new support happening in driver space. See our Linux 4.14 feature overview for a rundown on the new functionality.

As of Linux 4.14 Git today just prior to the 4.14-rc2 tagging, the overall kernel size comes in at a total of 23,265,768 lines spread among 49,802 files. The 23.2 million lines amount to about 16.87 million lines of detected code, 3.31 million lines of comments, and about 3.07 million blank lines. Here is the CLOC output from the Linux Git tree as of this morning:
----------------------------------------------------------------------------------
Language                        files          blank        comment           code
----------------------------------------------------------------------------------
C                               25553        2505603        2251052       12708066
C/C++ Header                    19767         498678         926000        3706252
Assembly                         1439          49303         114331         248281
JSON                              147              0              0          94658
make                             2390           8726           8207          37576
Perl                               51           5154           3766          26778
Bourne Shell                      264           3262           4357          16620
Python                             79           2465           2868          14300
HTML                                3            577              0           4848
yacc                                9            686            361           4578
PO File                             5            791            918           3061
lex                                 8            304            300           1920
C++                                 7            287             71           1838
Bourne Again Shell                 49            385            319           1742
awk                                12            185            170           1510
Markdown                            1            220              0           1077
TeX                                 1            108              3            904
Glade                               1             58              0            603
NAnt script                         2            160              0            595
Pascal                              3             49              0            231
Objective C++                       1             55              0            189
m4                                  1             15              1             95
XSLT                                5             13             26             61
CSS                                 1             18             27             44
vim script                          1              3             12             27
Windows Module Definition           1              0              0              8
sed                                 1              2              5              5
----------------------------------------------------------------------------------
SUM:                            49802        3077107        3312794       16875867
----------------------------------------------------------------------------------

In terms of how much was gained during the Linux 4.14 merge window, between 4.13 stable and 4.14-rc1 it saw 11,547 files changed yielding 586,300 insertions and 335,089 deletions. It's not that bad considering the amount of feature work packed into this release. From 4.12 to 4.13-rc1 meanwhile was 10,000 files changed with 796,654 insertions and 205,239 deletions. Or from 4.11 to 4.12-rc1 was 1,284,429 insertions and 258,856 deletions. So the 4.14 size increase isn't all that bad considering all that's taken place this cycle.

Stay tuned for continuing Linux 4.14 kernel benchmarks shortly on Phoronix.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week