How to Enable Nvidia Persistence-Mode on Boot for Ubuntu 20.04 (Server)
Every Time I Try to Do Nvidia-Smi It Takes a Long Time for It to Show Up; It Turns out There Should Be Persistence Mode Enabled One Easy Way Is to Just Call...
every time I try to do nvidia-smi it takes a long time for it to show up; it turns out there should be persistence mode enabled one easy way is to just call nvidia-smi pm -1. But this does not enable it for boot.
How can I make it work on boot? I tried to run sudo nvidia-persistenced but it's the following to syslog:
kernel: [ 949.165626] NVRM: Persistence mode is deprecated and will be removed in a future release. Please use nvidia-persistenced instead.
nvidia-persistenced: Started (1994)
nvidia-persistenced: Failed to open libnvidia-cfg.so.1: libnvidia-cfg.so.1: cannot open shared object file: No such file or directory
nvidia-persistenced: Shutdown (1994)
nvidia-persistenced: Started (1997)
nvidia-persistenced: Failed to open libnvidia-cfg.so.1: libnvidia-cfg.so.1: cannot open shared object file: No such file or directory
nvidia-persistenced: Shutdown (1997)
nvidia-persistenced: Started (2041)
nvidia-persistenced: Failed to open libnvidia-cfg.so.1: libnvidia-cfg.so.1: cannot open shared object file: No such file or directory
nvidia-persistenced: Shutdown (2041)
1 Answer
The following helped me to resolve error and make persistence daemon:
sudo apt install libnvidia-cfg1-510 #replace 510 with your driver version
then run the following command:
sudo nvidia-persistenced --user USER #replace USER with your username
if you just want to make it presistance for only your current session just run this:
sudo nvidia-smi -pm 1