MongoDB Documentation, Release 3.0.4 kernel <kernel path> <kernel options> transparent_hugepage=never If your system uses grub2 , you can edit the GRUB_CMDLINE_LINUX_DEFAULT value in /etc/default/grub as root to add transparent_hugepage=never to any existing kernel options: GRUB_CMDLINE_LINUX_DEFAULT="<kernel options> transparent_hugepage=never" and subsequently run See your operating system’s documentation for details on the precise location of the grub-legacy or grub2 configuration file. tuned and ktune are dynamic kernel tuning tools that act in accordance with policies set by the system administra- tor. One of the settings available to tuned and ktune is whether or not to use THP. To disable transparent hugepages, you need to edit or create a new profile that sets THP to never . Step 1: Create a new profile If necessary, create a new profile from an existing default profile by copying the relevant directory. In the example we use the default profile as the base and call our new profile no-thp , but you may start with any profile and name the new profile whatever you wish. Step 2: Edit ktune.sh Locate the ktune.sh file in the new profile directory ( /etc/tune-profiles/no-thp/ktune.sh in this case) and add the following: Warning: If you are using tuned and ktune and do not wish to disable them, you must use this method, or tuned may override THP settings configured using either of the other two methods. Step 2: Reboot the system. Using tuned and ktune (Necessary if you use tuned ) Chapter 5. Administration 222 cp -r /etc/tune-profiles/default /etc/tune-profiles/no-thp You may also opt to edit an existing profile. Step 3: Enable the new profile Finally, enable the new profile by issuing: grub2-mkconfig -o <grub2 configuration file location> as root . set_transparent_hugepages never to the start() block of the file, before the return 0 statement. where no-thp should be replaced with the name of the profile you defined, if it is different. tune-adm profile no-thp