系统:Centos7.2
jDK : 1.8
屏蔽Transparent Hugepage Compaction
系统:Centos7.2
jDK : 1.8
CDH5支持的大多数Linux系统都支持一个叫做transparent hugepage compaction特性。该特性会导致Hadoop的工作负载和性能会严重降低
症状: top或其他系统监控工具显示了system CPU这个类别的CPU处理耗用很大。如果system CPU使用>=30%则你的系统可能会遇到这个问题
怎么做:
注意:接下来的指导中defrag_file_pathname的路径取决于你所用的系统:
•Red Hat/CentOS: /sys/kernel/mm/redhat_transparent_hugepage/defrag
•Ubuntu/Debian, OEL, SLES: /sys/kernel/mm/transparent_hugepage/defrag
1.要确认transparent hugepage compaction是否开启,请通过以下命令查看:
$ cat defrag
|
· [always] never 表示transparent hugepage compaction被启用
· always [never] 表示transparent hugepage compaction未被启用
2.要关闭 transparent hugepage compaction,将一下命令加入/etc/rc.local:
echo never > defrag
|
你也可以直接在Shell中关闭transparent hugepage compaction,不过要注意重启以后就失效了
使用root权限临时关闭transparent hugepage compaction
# echo 'never'
> defrag
|
使用sudo权限临时关闭transparent hugepage compaction
$ sudo sh -c
"echo 'never' > defrag"
发布者:admin,转转请注明出处:http://www.yc00.com/web/1754940228a5218017.html
评论列表(0条)