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

Augment tuned/ktune THP method to also disable defrag

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • 01112017-cleanup
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      http://docs.mongodb.org/manual/tutorial/transparent-huge-pages/

      This will allow the existing THP guide of "do the init script, and maybe also do tuned/ktune (if necessary)" to be simplified back down to just "do the init script or tuned/ktune (as appropriate)".

      The RHEL6 method is TBD.

      The RHEL7 method will be the following (or substantially similar):

      [main]
      include=virtual-guest
       
      [vm]
      transparent_hugepages=never
       
      [script]
      script=script.sh
      

      Then create the script /etc/tuned/no-thp/script.sh with the following contexts, and give it execution rights.

      #!/bin/sh
       
      . /usr/lib/tuned/functions
       
      start() {
          echo never > /sys/kernel/mm/transparent_hugepage/defrag
          return 0
      }
       
      stop() {
          return 0
      }
       
      process $@
      

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            kevin.pulo@mongodb.com Kevin Pulo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              8 years, 28 weeks, 3 days ago