VOOZH about

URL: https://www.phoronix.com/news/Linux-4.9-Git-Size

⇱ Linux 4.9 Kernel Tacks On Over 200k Lines Of Code - Phoronix


👁 Phoronix

Linux 4.9 Kernel Tacks On Over 200k Lines Of Code

Written by Michael Larabel in Linux Kernel on 18 October 2016 at 08:52 AM EDT. 34 Comments
With all the new features in Linux 4.9, obviously Tux put on a bit of weight this kernel cycle... Here's some numbers.

In yesterday's Linux 4.9 feature overview I failed to mention the latest code stats for this exciting kernel update that's introducing Greybus, boasts experimental GCN 1.0 AMDGPU support, supports 29 new ARM machines, and much more.

Between Linux 4.8 and 4.9-rc1 there were 10746 files changed, 695693 insertions(+), and 428330 deletions(-). In other words, a net gain of 267,363 lines (including code, documentation, Kconfig, etc).

While Linux 4.9 packs in many exciting changes, going from Linux 4.7 to Linux 4.8 yielded: 11486 files changed, 662979 insertions(+), and 314598 deletions(-). Or with v4.6 to v4.7 it was lighter: 9910 files changed, 576071 insertions(+), 277560 deletions(-).

Running cloc on the latest Linux Git tree, it's up to 45,727 files. There are 14,864,279 detected lines of kernel code, 2,982,891 lines of comments, and 2,793,211 blank lines.
$ cloc .
 56182 text files.
 55694 unique files. 
 10464 files ignored.

github.com/AlDanial/cloc v 1.70 T=200.67 s (227.9 files/s, 102855.4 lines/s)
---------------------------------------------------------------------------------------
Language files blank comment code
---------------------------------------------------------------------------------------
C 23682 2285821 2095856 11650978
C/C++ Header 17949 438331 754627 2864390
Assembly 1441 48405 113506 245444
make 2244 8397 7938 35129
Perl 50 5215 3805 27379
Bourne Shell 203 2226 3624 11775
Python 57 1906 2279 10747
yacc 8 656 355 4337
HTML 3 514 0 4309
lex 8 301 300 1902
Bourne Again Shell 47 383 312 1682
C++ 2 233 58 1594
awk 11 142 135 1213
Markdown 1 220 0 1077
TeX 1 108 3 911
NAnt script 2 139 0 517
Pascal 3 49 0 231
Lisp 1 63 0 218
Objective C++ 1 55 0 189
m4 1 15 1 95
XSLT 6 13 27 71
CSS 1 14 23 35
vim script 1 3 12 27
sed 3 2 30 21
Windows Module Definition 1 0 0 8
---------------------------------------------------------------------------------------
SUM: 45727 2793211 2982891 14864279
---------------------------------------------------------------------------------------

Obviously the vast majority of the Linux kernel is C code/headers followed by Assembly.

Well, that's the latest number fun for the Linux 4.9 Git state.

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.