Linux kernel source expands beyond 40 million lines – it has doubled in size in a decade

Linux
(Image credit: Shutterstock)

It seemed inevitable that the Linux kernel sources would expand beyond 40 million lines early this year. Linux 6.13 was released early in January 2025, with 39,819,522 lines, and with the recent release of Linux 6.14 rc1 sources the figure has ballooned to 40,063,856 lines, notes Germany's Heise Online (machine translated). This 40 million line milestone is double the line count of the Linux kernel sources in 2015.

(Image credit: Future)
Latest Videos FromTom's Hardware
TOPICS
Mark Tyson
News Editor

Mark Tyson is a news editor at Tom's Hardware. He enjoys covering the full breadth of PC tech; from business and semiconductor design to products approaching the edge of reason.

  • That number is a bogus metric. Blank lines and comments are not code and don't count. Anything skipped over by the compiler (discounting the if/then/else compiler directives) and not turned into executable code also doesn't count.
    Reply
  • tommo1982
    ex_bubblehead said:
    That number is a bogus metric. Blank lines and comments are not code and don't count. Anything skipped over by the compiler (discounting the if/then/else compiler directives) and not turned into executable code also doesn't count.
    How far can one shrink the size for particular system setup to maintain some flexibility with USB hardware?
    Reply
  • tommo1982 said:
    How far can one shrink the size for particular system setup to maintain some flexibility with USB hardware?
    And that has nothing at all to do with the topic at hand.
    Reply
  • palladin9479
    It's more an issue with the Linux monolithic kernel design. All the drivers and hardware support have to be built directly into it. Contrast it to a micro kernel where everything is a module that gets loaded dynamically.
    Reply