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

Transparent Huge pages script does not disables khugepaged/defrag

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: mongodb-3.0
    • Fix Version/s: None
    • Component/s: manual
    • Labels:
      None
    • Environment:
      RHEL.
      Other Linux distributions?
    • Last comment by Customer:
      true
    • Story Points:
      0.25
    • Sprint:
      Docs Q3 W2 (8/16)

      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

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

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                5 years, 11 weeks, 3 days ago
                Date of 1st Reply: