I am setting up an ambari cluster with 3 virtualbox VMs running Ubuntu 16.04LTS. However I get the below warning:
The following hosts have Transparent Huge P
To disable Transparent Huge Pages (THP) permanently:
Via GRUB options (preferred):
Edit /etc/default/grub
to add transparent_hugepage=never
to the GRUB_CMDLINE_LINUX_DEFAULT
option:
GRUB_CMDLINE_LINUX_DEFAULT="transparent_hugepage=never quiet splash"
After that, run update-grub
command. (Need reboot to take effect)
With rc.local:
Edit /etc/rc.local
and put following script before exit 0
if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
echo never > /sys/kernel/mm/transparent_hugepage/enabled
fi
* To avoid reboot (as mentioned before), you can disable it by # echo never >
/sys/kernel/mm/transparent_hugepage/enabled
command.