You are viewing a single thread.
View all comments View context
14 points

The BORE scheduler on Linux is even better, as it’s specifically optimized for the features in these chips.

permalink
report
parent
reply
5 points

Not yet in the Torvalds tree of Linux? There’s a ton of interesting schedulers coming when sched_ext lands to the mainline:

https://www.phoronix.com/news/sched_ext-Ahead-Of-Linux-6.12

Also, would be great if more distros would compile packages with AVX512, there’s a ton of perf left on the table:

https://www.phoronix.com/review/linux-os-amd-ryzen9-9950x

permalink
report
parent
reply
6 points

Not yet in the Torvalds tree of Linux?

I don’t think they’re gonna switch schedulers that quickly. They only changed from CFS (which they used for decades) to EEVDF last October.

permalink
report
parent
reply
4 points

Not until sched_ext lands, and you can then switch schedulers as you wish. Maybe in 6.12?

permalink
report
parent
reply
7 points

It’s pretty easy to patch the kernel in NixOS:

https://git.sr.ht/~pimeys/nixos/commit/2a023c5ccc8a499dcb4ea14b0ab52c33db3f3523

It definitely feels snappier even with my 5950x. I hope this lands to mainline soon, compiling kernel for every update takes a few minutes extra.

permalink
report
parent
reply
4 points

There are custom pre-compiled kernels that come with BORE. Not sure about Nix and I don’t know if they even have custom kernels in the repos at all, but there is linux-cachyos-bore on Arch. CachyOS is a pretty cool Arch-based distro that offers multiple kernels with different optimizations. They also put them in the AUR, so any Arch user can install them.

permalink
report
parent
reply
4 points
*

Thanks for sparking my interest on cachyos kernels and what they patch. In addition to bore, they also patch the sched_ext support!

https://github.com/CachyOS/linux-cachyos?tab=readme-ov-file#cachyos-default-kernel

Now, what this means is you can boot this kernel, then just start the scheduler from userland, e.g.

run0 scx_rustland

It uses bpf, so the scheduler switches immediately and is as fast as anything in the kernel space. What makes this rustland scheduler super interesting is how it can detect what application is currently active, and give it a full priority over anything else. So you can compile code in the background with all cores, and at the same time play a game with the best frame rate.

There are other sched_ext schedulers available, at least on nixos with the cachyos kernel I get a bunch of scx_ binaries to play with.

For nix users here, nyx flake packages and compiles the cachyos kernel:

https://github.com/chaotic-cx/nyx

permalink
report
parent
reply
3 points

They have a few in the main branch: https://github.com/NixOS/nixpkgs/tree/master/pkgs/os-specific/linux/kernel

I see rt and zen at least being available. Would of course be quite easy to just send them a PR for bore patches, but I think I wait for sched_ext to land instead…

permalink
report
parent
reply

PC Gaming

!pcgaming@lemmy.ca

Create post

For PC gaming news and discussion. PCGamingWiki

Rules:

  1. Be Respectful.
  2. No Spam or Porn.
  3. No Advertising.
  4. No Memes.
  5. No Tech Support.
  6. No questions about buying/building computers.
  7. No game suggestions, friend requests, surveys, or begging.
  8. No Let’s Plays, streams, highlight reels/montages, random videos or shorts.
  9. No off-topic posts/comments.
  10. Use the original source, no clickbait titles, no duplicates. (Submissions should be from the original source if possible, unless from paywalled or non-english sources. If the title is clickbait or lacks context you may lightly edit the title.)

Community stats

  • 4.6K

    Monthly active users

  • 1K

    Posts

  • 5.8K

    Comments