Curious to know the coolest things you achieved by configuring your kernel. I know kernel config can be boring, but I’m hoping someone will have an impressive answer.

For me I have a very lightweight kernel that runs wayland on nvidia without any issues to date.

  • aordogvan@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    Not for myself but a client who was running a game server. He wanted to tweak the number of ticks/second that the kernel interacted with CPU. Didn’t even know that this was a parameter and after a few attempts, according to him, never went on that server myself, made a huge difference and he claimed having grabbed a good part of the market because of that.

    After that familiarized myself more with the stuff in there. But that was a good while ago, before most of you guys were born.

  • HarriPotero@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    I stopped doing it when Linux got support for kernel modules around Linux 1.2. It was a real game-changer.

  • mumblerfish@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    The first time I configured the kernel was in Gentoo. The gain from the configuration it self may not have been much, but making my own initramfs image to bundle and load with the kernel taught me a bunch of how linux works in early boot.

  • 0x0@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    A kernel that fits my hardware and supports things the original kernel doesn’t. Then again, i use gentoo.

  • xycu@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    6 months ago

    I do it because I can… I read release notes on every update and once you’ve configured a kernel for a particular machine you really don’t need to touch the config, barring major changes like when PATA and SATA merged. Or of course if I’m adding a new piece of hardware.

    I remove everything I don’t need and compiling the kernel only takes a couple minutes. I use Gentoo and approach everything on my system the same way - remove the things I don’t need to make it as minimal as possible.

    Compiling your own kernel also makes it easier when you need to do a git bisect to determine when a bug was introduced to report it or try to fix it. I’ve also included kernel patches in my build years ago, but haven’t needed to do that in a long time.

    I used to compile a custom kernel for my phone to enable modules/drivers that weren’t included by default by the maintainer.

    It’s not about performance for me, it’s about control.

  • LalSalaamComrade@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    I don’t know if this is considered as custom kernel, but I run Guix using non-libre Linux, with Intel Wi-Fi firmware blob. Since it does not have other firmware, it is pretty light, and I’m saving around 200-300MB.

      • LalSalaamComrade@lemmy.ml
        link
        fedilink
        English
        arrow-up
        0
        ·
        6 months ago

        Not really. I’ve not tweaked anything related to performance - because I’m not even sure how I would go about doing that on Guix. This makes it really easy for me to switch to custom kernels, so that’s just it. Right now, I have the option between default non-free and XanMod. Someone could package Zen or TKG on Nonguix, and that would increase the kernel choices. There’s also this option to switch to an entirely different kernel architecture, like for example, Hurd, but that probably won’t work on metal.

  • baseless_discourse@mander.xyz
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    The secureblue image I use disables numerous kernel modules, hopefully that means a more secure system? I honestly don’t know, nor do I change the default recommended by the developer.

  • zarenki@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    I have configured custom Android kernel builds to enable more USB drivers, enable module support, and tweak various other things. For one tangible example of the result: I could plug in a USB Wi-Fi adapter and use it to simultaneously connect to another Wi-Fi network with the internal NIC while also sharing my own AP over USB. On an Android device of all things. I have also adjusted kernel builds for SBCs (like Pi clones) to get things working at all.

    I have never seen any reason to configure a custom kernel for my own desktop/laptop systems. Default builds for the distros I’ve used have been fine for me; if I’m ever dissatisfied with anything it’s the version number rather than the defconfig. The RHEL/Rocky kernel omits a few features I want (like btrfs) but I’d rather stick to other distros on personal systems than tweak a distro that isn’t even meant for tweaking.

  • j4k3@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    A gentoo install once upon a time… and learning how to configure a kernel. Also a slightly better understanding of kernel module configuration for custom or odd ball hardware and a vague idea of what to look for in hardware support if I want to dig deeper.