this post was submitted on 07 May 2025
13 points (100.0% liked)

Linux Questions

1668 readers
1 users here now

Linux questions Rules (in addition of the Lemmy.zip rules)

Tips for giving and receiving help

Any rule violations will result in disciplinary actions

founded 2 years ago
MODERATORS
 

What Kernel are you guys using?

I have seen some people claiming that custom kernels like zen cachyos offer better battery life and performance.

Is it true ?

top 20 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 4 days ago

Generally special kernels aren't going to perform any better than the main kernel. Actually they will likely perform worse.

The reason is that Linux is constantly being optimized to get better performance. If there were any performance benefits in a special kernel they would be ported to main. Special kernels are designed for very specific use cases.

[–] [email protected] 9 points 5 days ago (2 children)

I have no idea.

I use Mint btw

[–] [email protected] 2 points 4 days ago

Mint 22.1 has 6.8 by default but 6.11 is available. Xanmod 6.14 works, but it disables the screen off and suspend timers

[–] [email protected] 1 points 4 days ago

Yeah, I use the one the kernel developers released when I last updated, so at most I'm about a week out of date on my server or a day or two out of date on my non-servers.

[–] [email protected] 5 points 5 days ago

Default Tumbleweed one: Linux 6.14.4-1-default

[–] [email protected] 5 points 5 days ago
$ uname -sr
Linux 6.6.88

I have never bothered about alternative kernels. The only time I seriously researched other kernels was when I was considering trying out GUIX about five years ago, but I only felt reassured in using Linux as a result of that research.

[–] [email protected] 4 points 5 days ago (1 children)

Usually whatever comes stock with the distro—though one device is currently running a custom built kernel with some Linux TV patches because the patches are only available on x86 builds currently, and I've got the tuner that needs them attached to a pi zero 2

[–] [email protected] 1 points 4 days ago (1 children)

You custom built a kernel on a pi 0 v2? You must have next level patience.

[–] [email protected] 2 points 4 days ago (1 children)

Oh no, don't worry I cross compiled it on my desktop! I imagine the pi would crash before it completed the job

[–] [email protected] 2 points 4 days ago

Oh damn that's also really cool! I've had a hard time with that and gave up.

[–] [email protected] 2 points 5 days ago (1 children)

zen bc i need zen for waydroid

[–] [email protected] 1 points 4 days ago (1 children)

Waydroid isn't dependent on a specific kernel

[–] [email protected] 1 points 4 days ago (1 children)

oh wait what i thought the binder module was not included in the default kernel, huh

i swear it used to be that you had to either use dkms or use zen

[–] [email protected] 1 points 4 days ago (1 children)

It definitely used to be the case, you are right, always had to dkms the binder module.

But it seems they come baked into the kernel nowadays, according to ArchWiki.

[–] [email protected] 1 points 4 days ago

Good to know

[–] [email protected] 2 points 5 days ago* (last edited 5 days ago) (1 children)

zen and lts as fallback

iirc zen has a scheduler that is supposed to be better for single user multitask desktop situations, while the regular kernel scheduler is better for server workloads.

[–] [email protected] 1 points 4 days ago (1 children)

Do you have any data to show it actually is better?

Desktop and server workloads aren't that different in practice.

[–] [email protected] 1 points 4 days ago* (last edited 4 days ago)

It is very hard to measure responsiveness (which is basically the only thing zen claims to be better at) without a lot of time investment and a high speed camera for frame analysis.

I guess a possible setup would be to run a multicore synthetic workload that takes most of the system resources and measuring the start time desktop applications.

But nobody has done it in a "scientific" way as far as I can see. Besides some hobbyist anecdotal observations:

https://reddit.rtrace.io/r/linux/comments/fh0hc2/its_time_for_desktop_distributions_to_adopt_a/

https://forum.garudalinux.org/t/kernel-benchmarking-results-zen-cacule-tkg-bore/18831/8

[–] [email protected] 2 points 5 days ago* (last edited 5 days ago)

Usually just default, but I believe my ThinkPad has zen and hardened as options.

zen has slightly worse battery life, but slightly better performance.

hardened is more secure, but some software (notably Flatpak) cannot run without first running sudo sysctl kernel.unprivileged_userns_clone=1.

Also, my old ThinkPad uses GENERIC (OpenBSD).

[–] [email protected] 2 points 5 days ago

I'm using the Arch standard kernel (6.14.5.arch1-1) and have the LTS (6.12.27-1) installed as a backup,,in case something goes horribly wrong.