Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-20791

Disable THP via MADV_NOHUGEPAGE

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Service Arch

      Calling madvise() with MADV_NOHUGEPAGE (added in Linux 2.6.38) would allow MongoDB to effectively mark regions unsuited for transparent hugepages. On 3.15 kernels and above we can use PR_SET_THP_DISABLE to disable THP process-wide.

      This approach should be more effective than simply instructing users to disable THP via warnings.

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            achille.brighton Achille Brighton
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: