Spyke
sh.itjust.works

I wouldn’t be even mildly shocked to eventually find out that there’s some sort of back room deal between MS and Intel

66

Me neither. But. I think the answer is much simpler here: Microsoft doesn't make their money with schedulers, but bundling that Office and tracking to everybody, and charging rent every month. They have way less people working on making the kernel as fast as possible, compared to Linux where:

  • there are many companies running crazy workloads 24/7, and providing patches
  • very talented individual hackers who have an open source kernel and can play around with things, getting that last oomph out from their system

This is why, for a pro user, Linux is an amazing platform.

49

I'm assuming they're specifically meaning a deal regarding not fixing the scheduler issues

19

Yeah, same with the next gen zen5 laptops. The Ryzen 9950x can compile code faster and by using less power compared to 7950x. It is going to be awesome for dev laptop performance and battery use.

19
Noxiousreply
fedia.io

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

14
Noxiousreply
fedia.io

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.

4
pimeysreply
lemmy.nauk.io

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

4
Noxiousreply
fedia.io

Wtf is run0

Edit: Is that nyx flake made by the same guys as the Chaotic AUR repo for arch?

1

::: spoiler Rant about systemd
Oh hell no why the actual fuck does systemd attempt to replace every single component of the Linux stack? We don't need more of this monolithic bullshit. What's next, replace the Linux kernel with systemd? Fucking hell. And why the hell did they give it such a stupid name??? run0? The only way this makes sense, is because 0 people should actually run this on their god damn system. I'm just waiting for applications to start breaking because some stupid systemd dependency, which itself depends on 15 gigabytes of other systemd bloat isn't installed. :::

Sorry for the rant

I'll definitely stay on Gentoo with doas and OpenRC

1
Noxiousreply
fedia.io

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.

6
pimeysreply
lemmy.nauk.io

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

4

It's not "because we're not fiddling" with anything.

It's because Windows' scheduler is objectively broken and not scheduling workloads correctly.

73
sh.itjust.works

It assigns workloads to the virtual core (from SMT) before properly distributing them to other cores. Source

This is not an issue on Linux because they schedule threads correctly.

But I guess this post is about windows only doing some other branch prediction correctly on some admin mode, so I guess that way too.

13

Thanks for the explaination! I would have searched in but I'm on a phone and my kids are jumping on the couch/me. Have an upvote, on me.

1

You reached the end

AMD admits its chips actually have gaming 'parity' with Intel's 14th Gen, suggests lacklustre Ryzen 9000 performance could be because we're not fiddling with Windows' backend | Spyke