关于ubuntu:ubuntu系统调节GPU风扇转速

7次阅读

共计 746 个字符,预计需要花费 2 分钟才能阅读完成。

ubuntu 零碎调节 GPU 风扇转速

查看 NVIDIA GPU 温度和转速

nvidia-smi

有桌面的 ubuntu

能够通过 nvidia-settings 出项图像化界面的设置。

无桌面 ubuntu[headless linux server]

应用 coolgpus 脚本进行调节

https://github.com/andyljones…
装置:
应用 pypi 进行装置

pip install coolgpus

应用用例:

# 将 gpu 风扇转速设置为 99%
sudo $(which coolgpus) --speed 99 99

# 敞开设置
sudo $(which coolgpus)

# 或者也能够设置线性管制
# 这个模式下 20℃以下转速为 5%,20-55℃之间转速为 30%,顺次类推
sudo $(which coolgpus) --temp 20 55 80 --speed 5 30 99

如果须要将 coolgpus 脚本当作一个零碎服务长期运行的话,如果你的服务器采纳 systemd 治理 server 的话,能够在 /etc/systemd/system/coolgpus.service 创立模板

[Unit]
Description=Headless GPU Fan Control
After=syslog.target

[Service]
ExecStart=/home/ajones/conda/bin/coolgpus --kill 
Restart=on-failure
RestartSec=5s
ExecStop=/bin/kill -2 $MAINPID
KillMode=none 

[Install]
WantedBy=multi-user.target

能够通过如下命令进行管制

sudo systemctl enable coolgpus
sudo systemctl start coolgpus
正文完
 0