首页 >>  正文

save+settings是什么意思

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

作者: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

令垄邵4483VB保存问题
宣解宝15343072148 ______ 两种方式: 1.注册表:SaveSetting,GetSetting,DeleteSetting 2.文件操作语句: Open (文件路径) For Output As #1 Print #1 Str

令垄邵4483vb上怎么不用数据库来保存字符(savesetting的用法)
宣解宝15343072148 ______ Public Sub SaveSetting( _ ByVal AppName As String, _ ByVal Section As String, _ ByVal Key As String, _ ByVal Setting As String _ ) 参数 AppName 必需.String 表达式,该设置要应用到的应用程序或项目的名称. Section 必需.String 表达...

令垄邵4483如何了解bios设置 -
宣解宝15343072148 ______ 一、进入BIOS设置和基本选项 开启计算机或重新启动计算机后,在屏幕显示“Waiting……”时,按下“Del”键就可以进入CMOS的设置界面.要注意的是,如果按得太晚,计算机将会启动系统,这时只有重新...

令垄邵4483VB 记住用户名和密码 -
宣解宝15343072148 ______ 要接数据库可以实现.记住用户名和密码按钮:Private Sub Command1_Click() Adodc1.Recordset.MoveFirst Dim n As Byte n = MsgBox("你确定要记住用户名和密码!", 33, "提示:") If n = 1 Then Adodc1.Recordset.AddNew Adodc1....

令垄邵4483怎么删除一个系统 -
宣解宝15343072148 ______ 修改启动顺序:下个easybcd软件,运行,点击“edit boot menu”在弹出的菜单中有“up”“down”“rename”“delete”选项,分别对应“向上移动”“向下移动”“重命名”“删除”的作用,在下面选中...

令垄邵4483在VB6.0中使用SaveSetting语句时,怎么指定路径呀?直接只给出项的名字,默认路径是怎么的? -
宣解宝15343072148 ______ 确实有这么一个默认路径.请新建一个任意项,比如a1b2c3,然后在注册表中搜索此项即找到.

令垄邵4483Settings 是什么意思啊 -
宣解宝15343072148 ______ settings n.镶嵌( setting的名词复数 ); 环境; 装置; (某事、戏剧、小说等的)背景; 以上结果来自金山词霸 例句:1.Normalisation of policy settings is under way elsewhere across asia. 亚洲其它地区的政策环境也在回归正常

令垄邵4483VB如何编写"检验输入密码为纯数字"的代码!急!! -
宣解宝15343072148 ______ text1.MaxLength=6 text1.PasswordChar="*" 在文本框的KeyPress事件里写这些代码:if KeyAscii57 then keyAscii=0 end if 那你通过上边的代码直接让用户只能输入数字不就完了,结果肯定是纯数字

令垄邵4483vb怎么记住上次窗体使用的情况 -
宣解宝15343072148 ______ 在窗体的Form_UnLoad()事件里,用SaveSetting过程保存几个TextBox的内容(保存在系统注册表里).在窗体的Form_Load()事件里,用GetSetting函数恢复这几个内容.例如:(我们假设"密码"这个输入框是Text1) private sub Form...

令垄邵4483vb中怎么保存变量 -
宣解宝15343072148 ______ 最简单的方法,用vb的SaveSetting和GetSetting对注册表进行读写 Public Sub SaveSetting( _ ByVal AppName As String, _ ByVal Section As String, _ ByVal Key As String, _ ByVal Setting As String _ ) 参数 AppName 必需.String 表达式,该...

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