Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-5573

Improve disable transparent huge pages docs when using tuned

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • 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

            Assignee:
            andrew.aldridge@mongodb.com Andrew Aldridge
            Reporter:
            emilio.scalise@mongodb.com Emilio Scalise
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              8 years, 46 weeks, 6 days ago