当前位置:网站首页>Shut down THP of Splunk health check

Shut down THP of Splunk health check

2022-06-11 12:15:00 shenghuiping2001

One 、 brief introduction

   Centos6 Start introducing THP,Centos7 Enabled by default , Used to improve memory performance .

Two 、 explain

   Compete against some databases , Such as Oracle、MariaDB、MongoDB、VoltDB When use , requirement Close this function .

3、 ... and 、 See if... Is enabled

[[email protected] ~]# cat /sys/kernel/mm/transparent_hugepage/defrag
[always] madvise never
[[email protected] ~]# cat /sys/kernel/mm/transparent_hugepage/enabled
[always] madvise never

Four 、 Ban

   edit rc.local Startup file .

[[email protected] ~]# vim /etc/rc.d/rc.local
 Add the following :
if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
echo never > /sys/kernel/mm/transparent_hugepage/enabled
fi
if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
echo never > /sys/kernel/mm/transparent_hugepage/defrag
fi

   Save and exit , And then to rc.local Add executable rights .

[[email protected] ~]# chmod +x /etc/rc.d/rc.local

   The last restart .

--

If it doesn't restart :echo never > /sys/kernel/mm/transparent_hugepage/enabled

Then proceed splunk --> setting --> monitor console --> health check, You will also be prompted to pass .

Otherwise, it will prompt : Here's the picture :( The following figure shows yes 37 platform splunk server No ban THP)

原网站

版权声明
本文为[shenghuiping2001]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/162/202206111201344536.html