how to enable nvidia persistence-mode on boot for ubuntu 20.04 (server)
By Mia Morrison •
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 versionthen run the following command:
sudo nvidia-persistenced --user USER #replace USER with your usernameif you just want to make it presistance for only your current session just run this:
sudo nvidia-smi -pm 1