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

Improve disable transparent huge pages docs when using tuned

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: manual
    • Labels:
      None
    • Last comment by Customer:
      true
    • Sprint:
      Docs Current Sprint

      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

              Assignee:
              andrew.aldridge Andrew Aldridge
              Reporter:
              emilio.scalise Emilio Scalise
              Participants:
              Last commenter:
              Jonathan Dahl Jonathan Dahl
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                6 years, 21 weeks, 4 days ago
                Date of 1st Reply: