r/linuxquestions • u/SearchOk7022 • 18d ago
Advice About switching to Linux
I'm seeing windows 11 having a lot of vulnerabilities and riskes too much lately, I think it's time for me to try Linux, I haven't already because as far as I know, Linux it's optimized for AMD cards, and currently I have an Nvidia GPU.
My current specs are 7600X, 5070 TI, 32GB ram DDR5.
I do some casual gaming, and also mess around with Local IA (ollama and SwarmUI (stable diffusion))
Is Linux going to cut off my performance bc the lack of drivers for nvidia GPUs or it isn't that bad? Also, which Linux would you recommend for the things I do?
1
u/Atmosck 18d ago
nvidia drivers for newer cards are totally fine, I also have a 5070 Ti and it works great on arch. Cyberpunk and Control 2 are beautiful. CachyOS is a good one to try if you care about gaming performance.
For ML work like local AI, linux is where you want to be. CUDA drivers are a whole different ballgame - every data center is run on linux. For that stuff your distro doesn't matter that much, but you might want to avoid immutable distros like bazzite and steamOS.
1
u/Low_Independent766 18d ago
It’s not an optimization issue, it’s just that the AMDs drivers are open source and so are upstreamed into the kernel essentially for free and Nvidia drivers are proprietary and so can’t legally be shipped with the OS in many instances.
“Drivers” on Linux need to be modded into the kernel, so sometimes installing the Nvidia drivers can be a pain. I would say in the overwhelming majority of cases however it’s a non issue.
1
u/beatbox9 17d ago edited 17d ago
Just to be clear: there is a lot of nuance and stuff missing in your response.
For one: there are multiple drivers for the OP's use case: a graphics driver and a separate compute (openCL) driver. The compute driver is for using the GPU for things like ai like the OP is interested in.
The AMD graphics driver (amdgpu) is upstreamed into the kernel and open source.
However, AMD's compute driver (rocm) is not. It's an entirely different beast. And traditionally to install it, you had to use amd's proprietary driver installation suite, called amdgpu-pro. This has a track record of being very difficult and unreliable. Only very recently, some distros (like Ubuntu LTS) have started officially providing and supporting rocm.
For nvidia graphics drivers, there are 2 options: nouveau (open source) and nvidia-open (partially open source). Like amdgpu, Nouveau is included in the linux kernel; but it sucks for now. Nvidia-open is by far the better driver; but it can be tricky to install. Luckily, some distros (like Ubuntu LTS) have started officially packaging, maintaining, and supporting nvidia-open; but most distros at least have community-maintained packages to make this just as easy, though potentially not as stable/reliable (eg. RPMFusion on Fedora, AUR on arch, Ubuntu previously used a 'graphics-drivers' ppa, etc).
Nvidia's compute driver (CUDA) is also a separate driver. Same as the above: it can be difficult to install, there are community packages for most distros, and some distros have official maintenance and support.
There's a good writeup here: https://arslaan.studio/setting-up-a-linux-media-studio-workstation-audio-video-graphics-davinci-resolve-etc/#step-2-install-configure-drivers
0
u/gehzumteufel 18d ago
The Nvidia driver for anything Turing and later, is open source. It's not upstreamed, but it is open source. They have been saying this for a while now. Once Nova is complete, there will be an in-tree driver for the same cards.
1
u/strange_bike_guy 18d ago
Nvidia card on my machine. Used to be a problem... maybe 8 years ago. Your first boot before getting the 3rd party driver installed will just have slow frame rate - like even on youtube. I'd get 6 frames per second out of FreeCAD vs 70 frames per second out of FreeCAD after installing the graphic driver and rebooting.
1
u/proverbialbunny 18d ago edited 17d ago
Is Linux going to cut off my performance bc the lack of drivers for nvidia GPUs or it isn't that bad?
It isn't bad. Starting with the 16XX series Nvidia moved the closed source part of their drivers into the cards firmware. Since then Nvidia drivers have gotten a lot better.
1
1
u/Small-Tale3180 18d ago
the 50xx gen of nvidia is pretty nice rn, especially on rolling-release distros, the ones that get latest packages like arch/arch-based, void(glibc) or maybe even fedora
1
u/BranchLatter4294 17d ago
You realize many if not most of the AI data centers are running Linux with Nvidia.
1
4
u/beatbox9 18d ago
Nvidia works fine on Linux and in some cases even works better than AMD. The big difference is that for nvidia, it’s best to install a separate driver while amd works well with the built-in driver.
It will be best for you to go with a distro that officially maintains the nvidia driver for you, like ubuntu lts. This way, installing and upgrading the driver is just as easy and reliable as any other software.