What's in OpenBSD 7.7?
It’s been three years since our previous counting of lines, so let’s check back in and see how OpenBSD is growing. Instead of just looking at the kernel, this time we’ll zoom out and look at the entire src tree.
. 20.54M lines 954.56M bytes
├──sys 9.70M lines 627.17M bytes
│ ├──dev 8.49M lines 593.52M bytes
│ │ ├──pci 7.14M lines 549.14M bytes
│ │ │ └──drm 6.58M lines 532.33M bytes
│ │ │ ├──amd 5.81M lines 509.00M bytes (7)
│ │ │ └──(other) 696.08k lines 21.03M bytes (7)
│ │ └──(other) 1.33M lines 43.74M bytes (36)
│ └──(other) 1.21M lines 33.66M bytes (22)
├──gnu 7.65M lines 238.82M bytes
│ ├──usr.bin 4.72M lines 140.19M bytes
│ │ ├──binutils 1.42M lines 42.64M bytes (12)
│ │ ├──binutils-2.17 1.14M lines 39.34M bytes (12)
│ │ ├──gcc 1.18M lines 35.25M bytes (3)
│ │ └──(other) 981.74k lines 22.96M bytes (5)
│ ├──llvm 1.52M lines 55.85M bytes (8)
│ ├──gcc 1.25M lines 37.88M bytes (11)
│ └──(other) 164.69k lines 4.89M bytes (3)
└──(other) 3.19M lines 88.57M bytes (12)
As some of the more knowing members of the audience may have predicted, the AMD GPU driver wins the prestigious Most Growth award, nearly doubling in size. It’s gone from being more than the half the kernel to more than half of the entire operating system. Quite the achievement! No other subdirectory even comes close.
AMD was up against some stiff competition in the past, including Team Toolchain featuring two copies of binutils, two copies of gcc (4.2 and 3.old), and llvm, but even their combined efforts now come in at only half an AMD.
There are some other programs and utilities included in OpenBSD as well, but at less than 10% of the codebase, they’re probably not worth further consideration. Too far out of competition.