Up until the early 2000s I used to compile my own kernel, carefully selecting only the options that I needed.
Then I realised that I wasn’t saving memory, because almost everything was a module anyway.
Is there any actual benefit to using a custom kernel on consumer hardware that’s supported by the stock kernels?
Besides for fun you mean? No.
You could compile with
-march=nativeto get an optimised build, but its unlikely to show any benefit outside benchmarks.In all my time with Linux, I have never once recompiled. I’d go as far to say as it is never necessary for a normo to do it.
Not really unless you need a specific optimization or module that isn’t available otherwise. Most distros make distribution of external modules available via package manager, and most of the optimizations you would want to enabke can be turns on or off elsewhere as feature flags.
The only time I have compiled a kernel in the last 10 years was to bisect to determine what change introduced a bug affecting my particular hardware combination.


