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

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

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理