首页 >>  正文

save+to+download

来源: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":"cache","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

温支青1331你必须记得把文件保存下来翻译 -
富疮侍13982652982 ______ You must remember to save the file down. 这句翻译有点问题,这里不能用down,添加down的话就成画蛇添足了.正确的应该是 You must remember to save the file (也可以用document替代file).完全正确,请采纳.

温支青1331及物动词和不及物动词做主语的时候用什么形式? -
富疮侍13982652982 ______[答案] 一般用ing形式,为动名词做主语,也有的用to do动词不定式做主语.对动词及物或不及物无太大要求. 例 (1).动名词作主语,常表示泛指意义的行为.Seeing is believing.Using the right hand to shake hands is a convention many countries.Talking ...

温支青1331the doctor did what he could to save it.为什么不是what he could do.还有to,can后能加to 吗?请帮帮 -
富疮侍13982652982 ______ 医生做了他所能做的一切去救它.TO表示目的(去救它),直接用原型就不包含这个意思了.可以

温支青1331初二上学期学的哪些词后面+doing,哪些+to do,什么时候用过去式复数 -
富疮侍13982652982 ______[答案] 这个很复杂,我说的不一定全,反正常用的就是下面这些: 一、不定式的基本形式: to+动词原形,有时可以省略to. 二、 动词不定式的特点: (1)没有人称和数的变化,在句子中不能作谓语. (2)动词不定式仍保留动词的特点,可以有自己的宾...

温支青1331"saved up” "saved down" saved on" "saved with"分别是什么意思?? -
富疮侍13982652982 ______ save up 存钱

温支青1331we're trying to save the earth.这里面有什么语法点 -
富疮侍13982652982 ______ 时态:现在进行时(are+trying) 固定搭配:try to do sth 满意请及时采纳,谢谢

温支青1331Save me – Shinedown的歌词 最好是中英文的~ -
富疮侍13982652982 ______ I got a candle 我有一只蜡烛And I've got a spoon 我有一个勺子I live in a hallway with no doors 我活在一个没有门没有房间的大厅里And no rooms Under a windows...

温支青1331以 Save the Earth 为题写一篇英语作文 -
富疮侍13982652982 ______ As time goes by , man is making the earth sick . People cut down too many trees and leave rubbish everywhere . Factories let out their waste without doing anying to it. This has cause some serious problems . Such as, the land is sandy ,the river is ...

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