4

nvidia-persistenced 常驻

 9 months ago
source link: https://blog.lucien.ink/archives/542/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

nvidia-persistenced 常驻

请注意,本文编写于 92 天前,最后修改于 92 天前,其中某些信息可能已经过时。
本文地址:blog.lucien.ink/archives/542

发现每次执行 nvidia-smi 都特别慢,发现是需要 nvidia-persistenced 常驻才可以,这个并不会在安装完驱动之后自动配置,需要手动设置一个自启。

cat <<EOF >> /etc/systemd/system/nvidia-persistenced.service
[Unit]
Description=NVIDIA Persistence Daemon
Wants=syslog.target

[Service]
Type=forking
ExecStart=/usr/bin/nvidia-persistenced
ExecStopPost=/bin/rm -rf /var/run/nvidia-persistenced

[Install]
WantedBy=multi-user.target
EOF

systemctl daemon-reload
systemctl start nvidia-persistenced
systemctl enable nvidia-persistenced

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK