xycu,

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.

atzanteol,

I haven’t custom compiled a kernel in ages - does anyone still do this?

It used to be sorta-kinda-necessary back when memory sizes were measured in MB instead of GB. Kernels had to be under a certain size, the module system was a bit slow, memory was at a premium, hardware support was very spotty, etc. I remember applying some guy’s patches to a 2.2 kernel to get full-duplex sound on the crappy sound card my Pentium 120 had (Linux has always had garbage audio support).

I think the last time I purposefully created a custom kernel was to enable some experimental scheduler code I hoped would give a performance boost. Was many years ago though.

These days you only do it if you want to learn the process or performance test a system. Or if you’re running something like Gentoo - but even then you likely just use the ‘default’ configuration provided by Gentoo.

30p87,

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.

ctr1, (edited )
@ctr1@fl0w.cc avatar

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. And I usually disable module loading and compile in everything I need, which feels cleaner. Also I make sure to tune the settings for my CPU and GPU, enable various virtualization options, and force SELinux to always remain active, among other things.

nyan,

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.

souperk,
@souperk@reddthat.com avatar

pain

lurch,

I have multiple PCs. One is running a kernel that is mostly monolithic. That means it has only one module (a third party driver).

This made a lot if things more easy and faster, for example, it doesn’t need to load an initial RAM disk (initrd) at boot, because it already has all it needs built in and can just mount the root FS and start init. Also all crypto modules are already present when I need them.

The drawback is, I can’t unload a module and then load it with different parameters. If I had to change a module param, I would have to change it in the bootloader config and restart (or kexec)

scrion,

LPIC-2 certification

acockworkorange,

A wee bit of knowledge and the wisdom to stop doing it.

ExtremeDullard,
@ExtremeDullard@lemmy.sdf.org avatar

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.

limelight79,

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.

ikidd, (edited )
@ikidd@lemmy.world avatar

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”.

umbrella,
@umbrella@lemmy.ml avatar

i think the learning experience is valid

ExtremeDullard,
@ExtremeDullard@lemmy.sdf.org avatar

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.

HarriPotero,
@HarriPotero@lemmy.world avatar

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

ChojinDSL,
@ChojinDSL@discuss.tchncs.de avatar

Back when I was still using Gentoo, configuring your own kernel was a rite of passage. It was kind of fun to try and configure it as minimalist as possible to cut down on the kernel compile time. Also, understanding all the different options and possibilities. And thanks to use flags, you had access to all these different patch sets for the kernel, which took a lot of the pain out of trying things like experimental schedulers or filesystems.

andrewd18,

Everybody gangsta until they set their block and filesystem drivers to module.

rotopenguin,
@rotopenguin@infosec.pub avatar

“Oh, did I need to rebuild the initrd too? Shhheeeeit, can I do that in a chroot from a livedisk or something?”

mumblerfish,

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.

galoisghost,
@galoisghost@aussie.zone avatar

Mostly just understanding what was there, what was necessary for my machine at the time and what was optional.

Rikj000,
@Rikj000@discuss.tchncs.de avatar

I run [linux-xanmod-anbox]aur.archlinux.org/packages/linux-xanmod-anbox) for root support in Waydroid (Android on Linux).

And I configured my kernel to support VFIO (Virtual Function Input Output).
So I can fully pass through one of my GPUs to my Ameliorated Windows KVM,
which I use for both work and gaming.

taaz,

Hows the perf in the VM?

Rikj000,
@Rikj000@discuss.tchncs.de avatar

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

warmaster,

Amazing. Does Photoshop work ?

Rikj000,
@Rikj000@discuss.tchncs.de avatar

Yush, it does under the KVM :)

xnx,

Is there an easy way to run this for photoshop? GUI if possible

Rikj000,
@Rikj000@discuss.tchncs.de avatar

No easy way to set it up I’m afraid.

But if you’re interested,
I posted all the bookmarks I made, with tutorials and tools, when I set mine up here:
discuss.tchncs.de/comment/9245159

ikidd,
@ikidd@lemmy.world avatar

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,
@Rikj000@discuss.tchncs.de avatar

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.

Pantherina,

Root Waydroid lol, thats basically hell.

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

Rikj000,
@Rikj000@discuss.tchncs.de avatar

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.

Pantherina,

Yes but Waydroid is not an Android phone. Have a look at this

github.com/waydroid/waydroid/issues/1136#issuecom…

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • fightinggames
  • All magazines