Disable THP via MADV_NOHUGEPAGE

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Storage
    • Workload Scheduling
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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:
            Unassigned
            Reporter:
            Achille Brighton (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: