PSA: Nvidia has changed their driver persistence method since 319.xx. It now requires a daemon to run at boot.
wiki.archlinux.orghttps://wiki.archlinux.org/index.php/NVIDIA#Driver_PersistenceAbout this post
- Posted
- Archived
- Score
- 64 · 100% up
- Kind
- Link
- ID
- 388fvi
12 comments
Sounds to me like this only matters for a headless system that does stuff like cuda or opencl work.
Yeah, I don't think you'll need this for a normal desktop. See the linked nvidia documentation:
If you run a desktop, you'll always have a GPU client running.
A bit further:
So yes, you don't need it if you run X.
How would this affect Optimus cards? Would presistence have to be enabled for bumblebee to have access to the nvidia GPU?
Persistence is keeping the graphics card running even when you're not using it, kinda the antithesis of bumblebee/Optimus, and shouldn't be necessary nor wanted in such a situation. Thus, no change necessary.
As a noob, may I ask what might happen if we didn't make this change to our Arch system(s)?
As a noob myself - The driver will continue using the legacy persistence method, at least until nvidia has deprecated it. If persistence is diabled, I believe it will take longer for things to load when the GPU 'switches off.'
Now I quote that because I don't really understand when that happens. Obviously during boot and power off, but also maybe when switching VT's? Possibly switching resolutions? Possibly switching to full screen opengl (gaming or whatever)? I would love it if someone would elaborate :)
Nvidia doesn't support KMS, so switch to a VT causes, at the very least, a display driver switch (As the kernel goes back to using the VGA text driver). The Nvidia docs mention a 1 to 3 second switch, which is pretty much what I've noticed when switching from VT to X, so it seems to me like switch between the two causes the GPU to have to be initialized again by the Nvidia driver. In other words, the daemon may make switching between X and a VT much faster (Like it is with KMS), because it should fix the issue that caused the pause.
I was pretty surprised to see this change and didn't see anyone documenting or talking about it. I added it to the wiki. One can read the gory details at http://docs.nvidia.com/deploy/driver-persistence/index.html
Oh thank god. Now I can run cuda on a server without all the awful fighting to get headless working properly.
Well, I tried implementing this on my system and just got a FAIL to start nvidia persistence... during boot.
systemctl status nvidia-persistanced.service ● nvidia-persistanced.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead)
Thought it was interesting there didn't seem to be anything about it on the Arch News page. https://www.archlinux.org/news/