Some Bits: Nelson's log

Linux gaming: GPU overview

I’ve been installing Linux on whatever hardware I happen to have. It’s worked OK on various video cards. But there’s big differences. Most of this post is from the point of view of gaming (Windows games with Proton) but some AI stuff too. No deep expertise here, but I’ve had to learn this all recently and am sharing here.

AMD

AMD GPUs are the best supported in Linux. In general they just work. There’s a reasonable kernel driver built right into the kernel, fringe side features are better supported, and the Mesa user space stuff all does its job well in providing graphics APIs like Vulkan. Valve has invested an enormous amount into supporting AMD cards well in Linux and it shows. Next time I buy a video card, it will be AMD.

The one caveat is AI. Inference does work on AMD, ROCm is a real thing that really works. But there’s a sense the performance isn’t quite as good as with NVidia. I haven’t really tested it carefully.

Intel Arc

These are rumored to work reasonably well for gaming on Linux but they are still rare cards. I have no experience with them. The kernel drivers are part of the regular Linux kernel. Not sure about AI performance.

Nvidia

Oof. This is what I’m saddled with for the high performance cards I have. And the situation is not great. It does all work, and works reasonably well, but it’s such a kludge. I’m grateful to distros like Bazzite or Nobara or CachyOS that take the difficulty out of getting the drivers working. Arch’s docs are helpful info.

The problem is that historically Nvidia’s drivers have been closed source. But they have to run in the kernel. Now they have a more open source driver but only the kernel parts are open source, there’s still a lot of closed user space stuff providing higher level APIs (instead of using Mesa).

So even now there’s some insane thing where you are compiling drivers from source code you get from Nvidia when you install a new Linux kernel. And the kernel has to be signed to boot in Secure Boot, which just makes it more complex. It’s a mess.

There’s at least four flavors of Nvidia GPU driver.

The good ones come from Nvidia. They’re proprietary, but they have good performance. And they do work.

  • The “open” Nvidia drivers. This is the best option and works on cards starting with the 16xx cards and newer (ie: around 2018, Turing architecture and beyond). This driver is under active development by Nvidia, the latest 610 release recently came out. The kernel code is real open source but is only useful in pairing with a bunch of closed user space code.
  • The legacy proprietary Nvidia drivers. These are slowly on the way out but are the only thing that supports older cards like my 1080. I believe these drivers are still supported and getting updates but only limited ones. I think 580 is the last version that will be released?

The bad ones are fully open source and from third parties. They’re not really bad, it’s amazing work, but it’s a lot of reverse engineering and extra effort and their performance is not up to the closed ones.

  • Nouveau with NVK is the main open source driver. Linux systems will install this because it’s easier and license-friendly. But the performance is not great.
  • Nova is a new project to provide a new Nvidia driver in Rust. It’s very new and I think not ready for regular use.

AI inference works great on Nvidia, they pioneered most of the work and are still the leaders in Linux AI.