本文介绍了如何在Ubuntu 16.04LTS中禁用透明大页面(THP)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用3个运行Ubuntu 16.04LTS的虚拟机虚拟机设置ambari集群.但是我收到以下警告:
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 Pages (THP) enabled.
THP should be disabled to avoid potential Hadoop performance issues.
如何在Ubuntu 16.04中禁用THP?
How can I disable THP in Ubuntu 16.04?
推荐答案
您是否尝试过以下命令:
Did you try this command:
sudo su
echo never > /sys/kernel/mm/transparent_hugepage/enabled
?
或者,您可以安装 hugepages
sudo su
apt-get install hugepages
hugeadm --thp-never
如 @Anthony 所述,重新启动后效果不会持续.每次重新启动后,请使用特定于发行版的方法进行操作.
As mentioned by @Anthony, the effect would not persist after a reboot. Use your distribution-specific method to do that every time after reboot.
这篇关于如何在Ubuntu 16.04LTS中禁用透明大页面(THP)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!