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

前端 未结 5 1742
南笙
南笙 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:19

    Did you try this command:

    sudo su
    echo never > /sys/kernel/mm/transparent_hugepage/enabled
    

    ?

    Alternatively, you may install hugepages

    sudo su
    apt-get install hugepages
    hugeadm --thp-never
    

    As mentioned by @Anthony, the effect would not persist after a reboot. Use your distribution-specific method to do that every time after reboot.

提交回复
热议问题