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?

  • CameronDev@programming.dev
    link
    fedilink
    English
    arrow-up
    14
    ·
    2 days ago

    You could compile with -march=native to get an optimised build, but its unlikely to show any benefit outside benchmarks.

  • onlinepersona@programming.dev
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 days ago

    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.

  • just_another_person@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 days ago

    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.

  • eksb@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 days ago

    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.