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

Improve disable transparent huge pages docs when using tuned

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • None
    • manual
    • None
    • Docs Current Sprint
    • true

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                7 years, 26 weeks, 5 days ago