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.

  • chevy9294@monero.town
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    I’m running a custom kernel on my Arch laptop. It’s a little faster, a little smaller and a little quite more secure. I’m also running custom kernel which enables adiantum encryption on old phone with postmarketOS.

    • yeehaw@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      How did you conduct this speed test? Where are the results? 😂

      Sorry, I think this any time someone says their computer is faster or mod X on Android is “snappier”

      • chevy9294@monero.town
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        I used geekbench 5. My CPU is AMD Ryzen 5 5500U. I tested a few prebuild kernels and custom compiled the fastest one.

        prebuild linux kernel:

        • singlethread: 1170
        • multithread score: 4604

        prebuild linux-zen kernel:

        • singlethread: 1156
        • multithread score: 4593

        prebuild linux-xanmod kernel:

        • singlethread: 1164
        • multithread score: 4594

        prebuild linux-hardened kernel:

        • singlethread: 1156
        • multithread score: 4841

        custom linux-hardened kernel:

        • singlethread: 1160
        • multithread score: 4977
  • ctr1@fl0w.cc
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    I suppose the most tangible benefit I get out of it is embedding a custom initramfs into the kernel and using it as an EFI stub. Also I usually disable module loading and compile in everything I need, which feels cleaner. And I make sure to tune the settings for my CPU and GPU (and enable VFIO, etc.)

  • 0x0@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

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

  • aordogvan@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 year 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.

  • Pantherina@feddit.de
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Just download the devel kernel from your distro and go into make menuconfig. I am on an Intel Laptop with recent hardware. No reason to use amd, nvidia etc drivers. And there is a shitload of likely unmaintained drivers for ancient hardware.

    • Pantherina@feddit.de
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Root Waydroid lol, thats basically hell.

      Waydroid without SELinux already removes all the Android sandboxing. Now its rooted!

      • Rikj000@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        Root on Android is a necessity for me.
        I’ve been rooting all droids I use for the past 10 years or so.

        Imagine using Linux as a power user,
        without being able to use sudo/su.

        Also, Magisk does not just allow any application to access root, you have to manually allow apps to make use of it.

        Just like administrator rights on any other OS,
        things only go wrong if you don’t know what you’re doing, and then grant rights to something malicious.

      • Rikj000@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        Amazing, basically native speeds,
        currently playing Horizon Forbidden West with maxed out graphics and DRS disabled at a steady 60-80 FPS.

        Previously I also played Horizon Zero Dawn in it, also maxed out graphics, steady locked 100 FPS,
        below is a benchmark comparison of HZD in the Linux host OS and the Windows KVM guest OS:
        workstation-gaming-linux-vs-windows

        • ikidd@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          Has this gotten any easier to do? I set it up a few years ago, it was painful to do and maintain so I let it slide. You were writing all sorts of scripts to specify the passthrough devices and then they’d stop working so you had to track down what was failing and update. Then there was iommu so you had to be careful which groups you added devices to.

          • Rikj000@discuss.tchncs.de
            link
            fedilink
            English
            arrow-up
            0
            ·
            1 year ago

            Gotta admit, it was very hard to setup initially.
            However it’s been working perfectly ever since I did.
            Been using it for about a year or 2 now.

            Also when I linked the Arch wiki,
            I noticed in it’s article that there’s now a gpu-passthrough-manager,
            which will likely make the process of setting up a little bit easier.

      • ExtremeDullard@lemmy.sdf.org
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        1 year ago

        Compiling kernels makes no sense anymore.

        Back in the days - Linux versions 2 and below - the kernel was much less modular, and resources wasn’t as plentiful. So it often made sense to build kernels with the stuff you needed statically compiled for speed, and the rest left out fo save memory and shorten boot time. Not to mention, Lilo (the thing we used before Grub) had limitations with respect to kernel size.

        Nowadays, Grub can load a kernel of any size from anywhere on the disk. There’s plenty enough memory and CPU to leave the kernel core slightly bloated with stuff almost nobody needs with zero practical impact on boot time and memory usage, and most everything else is compiled as modules and loaded as needed - again with next to no boot time or running speed impact.

        If you custom-build a kernel today, you’ll boot a tiny bit faster and it’ll run a tiny bit faster, and you’ll have a tiny bit more free memory - all of which you will never notice. What you will notice however is that kernel updates are a PITA on a regular basis.

        • taladar@sh.itjust.works
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          Kernel updates are extremely easy when custom compiling, not sure what you are doing to make them a pain. Custom compiling is a great way to sort of passively absorb knowledge about kernel changes and new features or features you didn’t know about as they change and make oldconfig brings up questions about them.

  • nyan@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Well, I can still boot my system without an initram (although that isn’t just due to the kernel config)—does that count?

    Other than that, custom kernels free up a small amount of disk space that would otherwise be taken up by modules for driving things like CANbus, and taught me a whole lot about the existence of hardware and protocols that I will never use.

  • HarriPotero@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

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

  • 30p87@feddit.de
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    I just installed LFS once, which inevitably came with compiling the kernel. Many times, over and over, every time with other configs as some packages required them. For a dual core Dell Laptop from the 2010 it was surprisingly fast, actually. Still not enjoyable or feasible for my normal systems.

  • ExtremeDullard@lemmy.sdf.org
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    As a Linux user of almost 30 years, compiling hundreds of kernels over the years has given me a great appreciation of pre-build kernels, and a profound gratitude for those who package them up into convenient distros that work out of the box and let me get on with the rest of my life.

      • ExtremeDullard@lemmy.sdf.org
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Absolutely! If you’re doing it to learn something, by all means compile your own kernel. Every Linux user should do that at least once in my opinion. But once the learning is done, the novelty wears off fast and it just becomes tedious.

    • ikidd@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      1 year ago

      I used Linux for about a decade from the mid nineties then took a break for a few years. When I came back, every distro kernel was precompiled, it was glorious. There was never a day I said to myself “damn, I miss compiling a kernel”.

    • limelight79@lemm.ee
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Well said. I originally compiled my own kernels because I thought it was something you just did to use Linux. I also compiled hundreds of them, probably. Now it’s stock kernel all the way. Not worth the effort and time and headache.

  • mumblerfish@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 year 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.