Kernel Size and Device Complexity

How Linux is built with Greg Kroah-Hartman

Topic 3 of 17

Published Jul 6, 2025 · Clip 4:30–8:54 (4:25)

Greg explains the Linux kernel is just under 40 million lines of code, with the core being only about 5%. A server runs about 1.5 million lines, a laptop 2.5 million, and a phone about 4 million—the most complex due to SOCs containing power control, clocks, multiple buses, battery management, modems, USB, and audio drivers. He also notes that Samsung TVs, washers, dryers, and watches all run Linux, and complexity scales with hardware diversity rather than mission-criticality.