772
you are viewing a single comment's thread
view the rest of the comments
[-] fuckwit_mcbumcrumble@lemmy.world 53 points 9 months ago

Is it linux is faster, or is it dxvk/vulkan is faster?

[-] Zeth0s@lemmy.world 45 points 9 months ago* (last edited 9 months ago)

Could be both. Who knows. For high performance computing Linux is the de facto standard because it has better performances than windows, and Linux distros are usually better, stabler OSes overall when one needs raw performances. In this case, who knows, someone should investigate further

[-] sugar_in_your_tea@sh.itjust.works 5 points 9 months ago

I think it has more to do with Linux being easier to tweak, not some inherent performance difference. You can tweak the scheduler, page sizes, and all manner of other things to get a bit more performance if you know what your workload looks like. So it being open source and ubiquitous is a bigger contributor imo than anything inherent to the design of the kernel.

Regular users aren't going to go through that level of tweaking, so the difference should be a lot smaller and will benefit more from general code-level optimizations than system tweaks. General purpose, high performance computing works just fine on Windows, it's just easier to tweak Linux for production compute use cases.

[-] Zeth0s@lemmy.world 2 points 9 months ago* (last edited 9 months ago)

No no, it is better. Take a real hpc library, install debian and test it yourself. No tweak needed. Linux as kernel and the overall OS manages resources much better. Linux is a better kernel than windows kernel.

I've been doing hpc for over 15 years now. People install standard distros on their workstations and clusters. No tweak needed

[-] sugar_in_your_tea@sh.itjust.works 1 points 9 months ago

How big are we talking? I looked and couldn't find benchmarks, but then again I'm not familiar enough with HPC to know what benchmarks to look for.

I've been Linux exclusive for something like 15 years now (before Steam even came to Linux), so I'm not exactly familiar with Windows performance on the stuff I use. I casually look at larger projects and benchmarks they run (for example, I remember async on Linux vs Windows was a significant issue in the early days of node.js).

I do dabble a bit in hpc, but only on Windows and macOS. I've done signal processing and some high thread count number crunching, but I haven't needed to run benchmarks, just get things running well enough (as in, minutes vs hours, not 10-20% difference).

[-] Zeth0s@lemmy.world 1 points 9 months ago* (last edited 9 months ago)

When I talk about hpc, I don't talk about a script in Matlab. I talk about the work you do on supercomputers, real computing intensive jobs that takes weeks or months on hundreds or thousands of processors. I guess you don't find benchmarks simply because no one uses windows, same reason you probably don't find a fiat panda in the Nürburgring rankings.

[-] sugar_in_your_tea@sh.itjust.works 1 points 9 months ago* (last edited 9 months ago)

K. Everything I've done is basically translating a Matlab script to Python using numpy or tensorflow or something. So we'd go from Matlab taking hours to Python taking minutes. The biggest project was a Monte Carlo simulation of signals produced from explosions (looking for seismographic impact) that takes something like 45 min per run when run on our cloud infra.

So something a little more interesting than plotting an FFT if overlaid signals, but still on the simpler end of the spectrum.

We're nowhere near the point where tuning the OS is interesting, we just use Linux because it's convenient. I wonder how much of the HPC crowd has a similar perspective, at least until you get to the higher end where tuning the OS becomes important.

[-] Zeth0s@lemmy.world 1 points 9 months ago* (last edited 9 months ago)

You don't really need to tune the operating system, you just need a good one. The hpc crowd has a pretty unique perspective. You won't find anyone doing any real hpc on windows, not even Microsoft

[-] Shadywack@lemmy.world 22 points 9 months ago

Combination, and it depends on the game. Dxvk will add latency, but depending on the renderer and how the game runs the reduction in CPU overhead by using dxvk instead of native can provide performance gains, especially on certain CPU's.

On games with a native vulkan renderer, Linux will most often just be faster since you have less system overhead burden. This has been fascinating to see though.

  • First the games started to become playable, but framerates weren't so great.
  • Framerates started to improve
  • Framerates started to become a wash between Windows vs Linux
  • We are progressing into this step: it either runs comparably or better.

The results are mixed right now, and it's going to be real hard to nail down predictability as far as performance goes. More often than not, so long as DRM isn't involved, games run really well on day one. Older games are starting to see a performance uplift and reliability improvements through proton/dxvk/vkd3d.

I'm very happy though that what we're talking about is comparable performance metrics. We use to be content if the shit ran at all.

[-] Zeth0s@lemmy.world 16 points 9 months ago

One comment to add to your post, Linux is better on performances not just because of the less overhead, but because manages resources much effectively. You could have a bloated linux, it still would perform better because resources are properly managed

[-] Shadywack@lemmy.world 9 points 9 months ago

That's an absolutely correct and very relevant point. On any equivalent computational loads, Linux comes out ontop. Better scheduler, better I/O, better stack.

[-] ReverseModule@discuss.tchncs.de 11 points 9 months ago

Proton (DXVK/VKD3D) is faster. The lightness of the system also helps.

[-] Norgur@kbin.social 4 points 9 months ago

I think it's mostly DXVK/Vulkan

[-] halva@discuss.tchncs.de 3 points 9 months ago

cpu bound tasks on linux are usually completed much faster due to just how ridiculously overoptimised linux cpu schedulers are

and dxvk can be faster than dx11 and older, but that's a pretty unusual case

this post was submitted on 26 Oct 2023
772 points (95.4% liked)

Linux Gaming

14340 readers
29 users here now

Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.

This page can be subscribed to via RSS.

Original /r/linux_gaming pengwing by uoou.

Resources

WWW:

Discord:

IRC:

Matrix:

Telegram:

founded 1 year ago
MODERATORS