Somebody should send/tweet this to Bryan Lunduke, just to let him know that his recent statement about "how the linux kernel growth is bad for performance etc..." in a talk is not quite true.
How in the world does a picture of lines of code in the Linux kernel act as evidence of kernel performance.
To quote linus before he changed his stance to "Faster hardware is making it not a problem" he did say
We're getting bloated and huge. Yes, it's a problem ... Uh, I'd love to say we have a plan ... I mean, sometimes it's a bit sad that we are definitely not the streamlined, small, hyper-efficient kernel that I envisioned 15 years ago ... The kernel is huge and bloated, and our icache footprint is scary. I mean, there is no question about that. And whenever we add a new feature, it only gets worse.
To say something isn't a problem because we're getting faster than I'm making it slower is still admitting that you are worsening performance
You are right, this is not intended to communicate the performance characteristics of various kernel releases. But you might want to be careful putting too much weight into a comment that is old enough to be in the fourth grade. During this period we've seen a lot of developments, like Linux being pushed harder towards mobile and embedded workloads.
Phoronix did a set of really interesting benchmarks across kernel releases which at least for the last 4 years hasn't showed significant performance degradation in the workloads they tested. Apart from the spectre/meltdown mitigations.
Anecdotally having worked for a company with a ton of Linux servers, fleet wide kernel upgrades don't have a tendency to affect performance much when looking at global CPU or memory utilization. Optimizations in the application layer tend to have a much larger impact.
Honestly you can use Gentoo or compile your kernel even on other distro, the fact that the code is there doesn't mean it has to be executed or even compiled.
You do know that most of the kernel code is in the form of modules, and is loaded on-demand? Only the core code needed for initialization, memory management, disk management, process scheduling, interrupts etc. has to absolutely be in memory at all times, and that portion doesn't take up much memory (although the data structures used might take up a bit more, it's nothing compared to userspace memory usage).
Don't forget all the code that's for handling various architectures (looks like about 2M lines), and which will actually be entirely compiled out for every arch other than the one you need.
He makes the point that some things used to speed up and/or get smaller with every new release, but now that there is so much corporate influence in distros and kernal dev, no one is focusing on those gains anymore.
My friends kid keeps getting bigger, which is crap for performance. All that extra food that child needs to eat daily, when it could just remain tiny forever and be incredibly efficient
Nothing like a legless overweight furious drunken ten year old crawling in circles in your yard to make us all consider the high amount of code lines in the Linux kernel
79
u/CKreuzberger Nov 07 '18
Somebody should send/tweet this to Bryan Lunduke, just to let him know that his recent statement about "how the linux kernel growth is bad for performance etc..." in a talk is not quite true.