Skip to content

12 comments

Sounds to me like this only matters for a headless system that does stuff like cuda or opencl work.

24 points

Yeah, I don't think you'll need this for a normal desktop. See the linked nvidia documentation:

Generally, if the kernel mode driver is not already running or connected to a target GPU, the invocation of any program that attempts to interact with that GPU will transparently cause the driver to load and/or initialize the GPU. When all GPU clients terminate the driver will then deinitialize the GPU

If you run a desktop, you'll always have a GPU client running.

A bit further:

Under Linux systems where X runs by default on the target GPU the kernel mode driver will generally be initalized and kept alive from machine startup to shutdown, courtesy of the X process.

So yes, you don't need it if you run X.

16 points

How would this affect Optimus cards? Would presistence have to be enabled for bumblebee to have access to the nvidia GPU?

3 points

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.

5 points

As a noob, may I ask what might happen if we didn't make this change to our Arch system(s)?

5 points

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 :)

2 points

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.

2 points

Oh thank god. Now I can run cuda on a server without all the awful fighting to get headless working properly.

2 points

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/

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.