首页 >>  正文

save+the+people梗

来源: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

奚琰任3077Save什么意思 -
隗贪闹18316965724 ______ save 英 [seɪv] 美 [sev] prep. 除...之外 n. 救援 vi. 节省;挽救 vt. 节省;保存;储蓄;解救 n. (Save)人名;(法)萨夫;(意、保、西、罗、塞、瑞典)萨薇 (女名),萨韦

奚琰任3077用英语复述 让我们一起去拯救大象 -
隗贪闹18316965724 ______ Let's save the elephant together.为你解答,如有帮助请采纳,如对本题有疑问可追问,Good luck!

奚琰任3077save the earth什么意思 -
隗贪闹18316965724 ______ 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. 我们必须拯救地球.

奚琰任3077跪求翻译 save that the example are meant to be correct这句话怎么翻译,save在这里翻译成什么? -
隗贪闹18316965724 ______ 因没有上下文,只好推测一下. 我觉得这里的save并不是动词,而是做连接词.save做连接词时,常在后面接that,意思是“只是”、“除了”.例如:We adopt the similar timetable, save that the break time is shorter. (我们采用了大致相同的时间表,只是休息时间缩短了一点.)楼主看看你的这句话前面他是不是说了一些错误的用法、做法等,然后接着这句话说的就是“只是这里举的例子都是正确的”.如果是这样,我的解释就比较合理了.

奚琰任3077英语问题: I do it as fast as i can - - - save the poor. A.help B.to help C.helping D.helps -
隗贪闹18316965724 ______ 选C绝对错,can+doing的吗.can+do而已吧,网阿宝你的英语是体育老师教的吗?但不是选A,这里不是can+do结构,“回忆里的泪光”是对的 这句子分为两部分,I do it as fast as i can , to help save the poor(不要以为是can+to do,这是错误的) to do 表目的to help save the poor是目的状语 懂了吗?

奚琰任3077save the surface of putting it. -
隗贪闹18316965724 ______ save the surface (of putting it).这个句子是动宾结构,括号中的成分是修饰宾语 surface 的.整句翻译为:它节省了放置时所需的表面积.They bring no noise nor air pollution.The...

奚琰任3077以Save our earth为题写一篇英语作文 -
隗贪闹18316965724 ______ SAVE OUR EARTH The Earth gets more polluted everyday.So Earth Day was founded.Everyspring,people all over the world participate in Earth Day events.They plant tr...

奚琰任3077除非人人们采取措施拯救树木用英语怎么说 -
隗贪闹18316965724 ______ unless people take actions to save the treestake actions on+对……采取措施,加的是采取措施的对象,例如:take actions on the pollutionwood:1,树林2,木材

奚琰任3077save sth ( )sb 括号内有什么介词 -
隗贪闹18316965724 ______ 建议用:save sth. (for) sb.

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