-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: manual
-
Labels:None
Hi,
in http://docs.mongodb.org/manual/tutorial/transparent-huge-pages/#using-tuned-and-ktune-necessary-if-you-use-tuned
you say to:
cp -r /etc/tune-profiles/default /etc/tune-profiles/no-thp
this file is not present on redhat/centos 7.x anymore (and maybe on 6.x I've not verified).
A good solution to fix that could be like said on:
http://serverfault.com/questions/688392/disable-thp-and-thp-defrag-on-centos-7-ec2-instance
In particular this reply:
In addition to setting the grub command line, you also need to configure tuned. But not using the instructions you linked to, as they are so full of errors it would take half a day just to explain them all.
Create a custom tuned profile (which I'll call custom), and then set the profile. You will base it on an existing profile, such as virtual-guest if you are running in a virtual machine (EC2 is, of course), or throughput-performance if you are on a physical machine.
Create the directory to hold the custom profile:
mkdir /etc/tuned/custom
Create the custom profile /etc/tuned/custom/tuned.conf, for example:[main]
include=virtual-guest[vm]
transparent_hugepages=never
Now set the profile:tuned-adm profile custom