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

Augment tuned/ktune THP method to also disable defrag

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • 01112017-cleanup
    • None
    • None
    • None

    Description

      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 $@
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 18 weeks ago