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

Using /etc/rc.local to disable THP results in spurious startup warning

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: manual
    • None

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

      This page suggests disabling THP in /etc/rc.local. However, when mongod is started from an init service, this will usually be earlier in the boot process than /etc/rc.local. This means that THP will still be active when mongod starts, resulting in startup warnings that will no longer be applicable once /etc/rc.local has run.

      It would be useful if there was another, more reliable, way of generically disabling THP that doesn't have this problem.

            Assignee:
            andrew.aldridge@mongodb.com Andrew Aldridge
            Reporter:
            kevin.pulo@mongodb.com Kevin Pulo
            Votes:
            5 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:
              8 years, 51 weeks, 6 days ago