disable 'Transparent Huge Pages (THP)' for Oracle Linux 6.5


 Disable Transparent Huge Pages (THP)

When installing Ambari on CentOS6.x using the Cluster Installer Wizard at the Host Checks step, one or more host checks may fail if you have not disabled Transparent Huge Pages on all hosts. Host Checks warns you when a failure occurs. To disable THP:

Add the following command to your /etc/rc.local file:

RHEL6.5

if test -f /sys/kernel/mm/redhat_transparent_hugepage/defrag; then echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag fi
SLES

if test -f /sys/kernel/mm/transparent_hugepage/defrag; then echo never > /sys/kernel/mm/transparent_hugepage/defrag fi
To confirm, reboot the host. Then, run the following command:

$ cat /sys/kernel/mm/transparent_hugepage/enabled always madvise [never]

No comments:

Size of schema in Oracle database 23AI

  How to find the size of schema in the 23AI ORACLE Database. SQL>  select sum(bytes)/1024/1024 "SIZE_IN_MB" from dba_segments;...