How to disable Transparent Huge Pages (THP) in Ubuntu 16.04LTS

前端 未结 5 1776
南笙
南笙 2021-01-04 01:28

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         


        
5条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-04 02:08

    Below 3 commands fix the issue over Ubuntu(14.x/16.x) and also make it persistent on system boots.

    1. sudo apt-get install hugepages
    2. sudo hugeadm --thp-never
    3. sudo /bin/sed -i '$i /usr/bin/hugeadm --thp-never' /etc/rc.local

提交回复
热议问题