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

Transparent Huge pages script does not disables khugepaged/defrag

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Trivial - P5
    • Resolution: Fixed
    • mongodb-3.0
    • None
    • manual
    • None
    • RHEL.
      Other Linux distributions?
    • 0.25
    • Docs Q3 W2 (8/16)
    • true

    Description

      Hello.
      In the Disable Transparent Huge Pages , under In /etc/rc.local (Alternate) subject the following script is shown.

      if test -f /sys/kernel/mm/transparent_hugepage/khugepaged/defrag; then
      echo 0 > /sys/kernel/mm/transparent_hugepage/khugepaged/defrag
      fi
      if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
      echo never > /sys/kernel/mm/transparent_hugepage/defrag
      fi
      if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
      echo never > /sys/kernel/mm/transparent_hugepage/enabled
      fi

      Running the first echo return an error:

      [root@localhost] echo 0 > /sys/kernel/mm/transparent_hugepage/khugepaged/defrag
      -bash: echo: write error: Invalid argument

      Cating the parameter gives the following result:

      cat /sys/kernel/mm/transparent_hugepage/khugepaged/defrag
      [yes] no

      Which means the right way to change parameter is :

      echo no > /sys/kernel/mm/transparent_hugepage/khugepaged/defrag

      I have tested it on RHEL 6.6, but its probably relevant to other Linux distributions .

      Attachments

        Issue Links

          Activity

            People

              andrew.aldridge@mongodb.com Andrew Aldridge
              genadipost@gmail.com Genadi Postrilko
              Jonathan Dahl Jonathan Dahl
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                6 years, 17 weeks, 4 days ago