Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
62c00e00
P
Paddle
项目概览
Crayon鑫
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
62c00e00
编写于
12月 05, 2017
作者:
T
tensor-tang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add dimms locator info
上级
e6704535
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
30 addition
and
4 deletion
+30
-4
paddle/scripts/check_env.sh
paddle/scripts/check_env.sh
+30
-4
未找到文件。
paddle/scripts/check_env.sh
浏览文件 @
62c00e00
...
@@ -36,13 +36,39 @@ if [ $numa_nodes -lt $sockets ]; then
...
@@ -36,13 +36,39 @@ if [ $numa_nodes -lt $sockets ]; then
fi
fi
echo
"-------------------------- Memory Information --------------------------"
echo
"-------------------------- Memory Information --------------------------"
echo
"DIMMs max slots :
`
dmidecode |
grep
"Bank Locator"
|
wc
-l
`
"
# dmidecode support start from 2.11
# dmidecode support start from 2.11
num_dimms_installed
=
`
dmidecode |
grep
"Memory Device Mapped"
|
wc
-l
`
max_dimms
=
0
num_clock_configed
=
`
dmidecode |
grep
-i
"Configured Clock Speed"
|grep
-i
"Hz"
|wc
-l
`
num_dimms_installed
=
0
for
dimm_id
in
`
dmidecode |grep Locator|sort
-u
|
awk
-F
':'
'{print $2}'
`
;
do
num_refered
=
`
dmidecode |grep
-c
"
$dimm_id
"
`
# the acutal dimm id should be refered only once
if
[
$num_refered
-eq
1
]
;
then
num_unknown
=
`
dmidecode |
awk
'/'
$dimm_id
'/ {s=1}; {if (s==1) {a[NR]=$0}};
/Manufacturer/ {s=0; for (i in a) print a[i]; delete a}'
|grep
-ic
unknown
`
if
[
$num_unknown
-eq
0
]
;
then
dimms_installed
=
"
$dimms_installed
\n
$dimm_id
"
((
num_dimms_installed++
))
else
dimms_uninstalled
=
"
$dimms_uninstalled
\n
$dimm_id
"
fi
((
max_dimms++
))
fi
done
echo
"Installed DIMM number :
$num_dimms_installed
"
echo
"Installed DIMM number :
$num_dimms_installed
"
num_dimms_mapped
=
`
dmidecode |
grep
"Memory Device Mapped"
|
wc
-l
`
if
[
$num_dimms_installed
-ne
$num_dimms_mapped
]
;
then
echo
"Error: The installed DIMMs number does ont match the mapped memory device:
$num_dimms_mapped
"
fi
num_clock_configed
=
`
dmidecode |
grep
-i
"Configured Clock Speed"
|grep
-ic
"Hz"
`
if
[
$num_dimms_installed
-ne
$num_clock_configed
]
;
then
if
[
$num_dimms_installed
-ne
$num_clock_configed
]
;
then
echo
"Error: installed DIMMs do ont match configured clocks:
$num_clock_configed
"
echo
"Error: The installed DIMMs number does ont match configured clocks:
$num_clock_configed
"
fi
echo
-e
"Installed DIMMs Locator:
$dimms_installed
"
echo
-e
"Not installed DIMMs :
$dimms_uninstalled
"
max_dimm_slots
=
`
dmidecode |
grep
-c
"Bank Locator"
`
echo
"DIMMs max slots :
$max_dimm_slots
"
if
[
$max_dimms
-ne
$max_dimm_slots
]
;
then
echo
"Error: The max dimm slots do not match the max dimms:
$max_dimms
"
fi
fi
echo
"Memory Size :
`
free
-h
|grep
-i
mem |awk
-F
' '
'{print $2}'
|xargs
`
"
echo
"Memory Size :
`
free
-h
|grep
-i
mem |awk
-F
' '
'{print $2}'
|xargs
`
"
echo
"Swap Memory Size :
`
free
-h
|grep
-i
swap |awk
-F
' '
'{print $2}'
|xargs
`
"
echo
"Swap Memory Size :
`
free
-h
|grep
-i
swap |awk
-F
' '
'{print $2}'
|xargs
`
"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录