首页 >>  正文

save+the

来源:baiyundou.net   日期:2024-08-07

作者:annpple

45%off:大鹏YYDS

一、前言

使用环境:Unraid 6.11.1

显卡:Nvidia Tesla P4

待机功耗:7w

二、安装User Scripts插件

CA应用市场搜索安装User Scripts

搜索安装User Scripts插件

三、配置Nvidia Power Save脚本

1.Unraid顶栏插件里左键点击User Scripts进入配置页面

进入配置页

2.添加脚本并配置

#以每小时执行一次省电模式为例

自定义脚本名称

编辑脚本

3.复制以下脚本内容到编辑器

#!/bin/bash
# check for driver
command -v nvidia-smi &> /dev/null || { echo >&2 "nvidia driver is not installed you will need to install this from community applications ... exiting."; exit 1; }
echo "Nvidia drivers are installed"
echo
echo "I can see these Nvidia gpus in your server"
echo
nvidia-smi --list-gpus
echo
echo "-------------------------------------------------------------"
# set persistence mode for gpus ( When persistence mode is enabled the NVIDIA driver remains loaded even when no active processes,
# stops modules being unloaded therefore stops settings changing when modules are reloaded
nvidia-smi --persistence-mode=1
#query power state
gpu_pstate=$(nvidia-smi --query-gpu="pstate" --format=csv,noheader);
#query running processes by pid using gpu
gpupid=$(nvidia-smi --query-compute-apps="pid" --format=csv,noheader);
#check if pstate is zero and no processes are running by checking if any pid is in string
if [ "$gpu_pstate" == "P0" ] && [ -z "$gpupid" ]; then
echo "No pid in string so no processes are running"
fuser -kv /dev/nvidia*
echo "Power state is"
echo "$gpu_pstate" # show what power state is
else
echo "Power state is"
echo "$gpu_pstate" # show what power state is
fi
echo
echo "-------------------------------------------------------------"
echo
echo "Power draw is now"
# Check current power draw of GPU
nvidia-smi --query-gpu=power.draw --format=csv
exit

4.保存脚本配置

保存配置

5.设置生效规则

设置每小时生效和启动阵列时生效

四、总结

简单粗暴,利用脚本执行省电命令,可以自定义生效时间;通过设置2个生效时间,确保在阵列启动时和每小时都生效。本教程适用于所有Nvidia显卡Unraid开启省电模式。

","force_purephv":"0","gnid":"99ad0b395e06bff67","img_data":[{"flag":2,"img":[{"desc":"","height":"507","title":"","url":"https://p0.ssl.img.360kuai.com/t016577517a9708e76e.jpg","width":"600"},{"desc":"","height":"408","title":"","url":"https://p0.ssl.img.360kuai.com/t0163a15d94619c9a10.jpg","width":"600"},{"desc":"","height":"391","title":"","url":"https://p0.ssl.img.360kuai.com/t01370dcede78efc260.jpg","width":"600"},{"desc":"","height":"410","title":"","url":"https://p0.ssl.img.360kuai.com/t01a09895224ab1f9c2.jpg","width":"600"},{"desc":"","height":"250","title":"","url":"https://p0.ssl.img.360kuai.com/t01b0223b1ed5f979a6.jpg","width":"600"},{"desc":"","height":"95","title":"","url":"https://p0.ssl.img.360kuai.com/t010611751d5569af3e.jpg","width":"600"}]}],"original":0,"pat":"art_src_1,sexf,sex4,sexc,disu_label,fts0,sts0","powerby":"hbase","pub_time":1666766841000,"pure":"","rawurl":"http://zm.news.so.com/0ed05024f0544f76c2dcebcb8a33178a","redirect":0,"rptid":"fba2d102d8d068f5","s":"t","src":"什么值得买","tag":[{"clk":"kdigital_1:gpu","k":"gpu","u":""},{"clk":"kdigital_1:显卡","k":"显卡","u":""}],"title":"Unraid Nvidia Power Save使用Nvidia显卡开启省电模式待机只要7w

季家霄1101save sth ( )sb 括号内有什么介词 -
葛印士15549982899 ______ 建议用:save sth. (for) sb.

季家霄1101Save the Sharks!课文翻译 -
葛印士15549982899 ______ 挽救鲨鱼 save,有保存或挽救的意思.sharks就是鲨鱼的复数词.

季家霄1101save the dste是什么意思 -
葛印士15549982899 ______ 应该是:save the date 意思就是:保存日期 save 英[seɪv] 美[sev] vt. 保存; 节省; 储蓄; 解救; vi. 节省; 挽救; 救球; prep. 除…之外; date 英[deɪt] 美[det] n. 约会; 日期,日子; 时代,年代; (北非和西亚常见的海枣树的) 海枣; vt. 过时; 使…显老; 显示出…时代(或年龄); 鉴定…的年代; vt. 与人约会,相约;

季家霄1101save the earth什么意思 -
葛印士15549982899 ______ save the earth:拯救地球. 例句: 1、People must stop doing this.We must save the Earth. 人们必须停止做这.我们必须保留地球. 2、Only by changing the way we live will we be able to save the earth. 只有改变生活方式,我们才能拯救地球. 3、We must save the earth. 我们必须拯救地球.

季家霄1101save和life分别是什么意思 -
葛印士15549982899 ______ save: 1. 救,挽救[(+from)] He saved me from drowning. 他救了我,使我免遭溺死. The doctor saved the child's life. 这位医生挽救了孩子的生命. 2. 节省,省去;避免. life: n. 生活,生命; (c)可数名词 人生 (uc)不可数名词 如:The ...

季家霄1101英语作文 Save the earth 60字左右 -
葛印士15549982899 ______ his is the earth. The green part is land. The blue part is sea. The white part is clouds. Our earth is very beautiful and interesting. There are rivers, streams, seas and lakes. There are hills and mountains. There are woods, jungles and forests. There ...

季家霄1101保持你的体力,等待救援的英语怎么说这是一句话.是saving开头还是save开头?rescue前加the或其他介词或者加s吗? -
葛印士15549982899 ______[答案] Save your energy and wait for resue. 是save,因为这是一个祈使句 就像你平时说的,give me your book,please,give而不是giving.

季家霄1101save the money存在语法错误吗 -
葛印士15549982899 ______ 没有语法错误,意思是:存钱,储蓄 不过一般不用the , 用save money 就可以表示存钱啦. 例句:Children should learn to save (the) money.孩子们应该学会储蓄.

季家霄1101国外喜贴中的SAVE THE DATE是什么意思 -
葛印士15549982899 ______ 意思就是说要您为请柬上的日子留出时间,在那天要按时出席,不要因给其它事情耽误了.以下是我在国外网站上找到的解释:A save the date notice is an item stating the date of a wedding or other formal event. It typically states the date when a ...

季家霄1101save the earth什么意思 -
葛印士15549982899 ______ save the earth拯救地球双语对照词典结果:网络释义1. 拯救地球例句:1.We must save the earth! 我们一定要拯救地球!

(编辑:自媒体)
关于我们 | 客户服务 | 服务条款 | 联系我们 | 免责声明 | 网站地图 @ 白云都 2024