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

After disabling transparent huge pages via rc.local mongodb shell warns about THP being enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Admin
    • Labels:
      None
    • Operating System:
      ALL

      Description

      When disabling transparent huge pages on server start up via /etc/rc.local warnings about THP being enabled are presented when starting the mongo shell and in the mongodb.log.

      Because commands in rc.local are executed at the end of the multiuser run level which mongodb starts the mongo server reports that transparent huge pages are still enabled even though they had been disabled.

      $ tail /var/log/mongodb/mongodb.log

              • SERVER RESTARTED *****
                ...
                2015-02-27T13:32:22.946-0800 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
                2015-02-27T13:32:22.946-0800 I CONTROL [initandlisten] ** We suggest setting it to 'never'
                2015-02-27T13:32:22.946-0800 I CONTROL [initandlisten]
                2015-02-27T13:32:22.946-0800 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
                2015-02-27T13:32:22.946-0800 I CONTROL [initandlisten] ** We suggest setting it to 'never'

      $ cat /sys/kernel/mm/transparent_hugepage/enabled
      always madvise [never]

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ramon.fernandez Ramon Fernandez Marina
              Reporter:
              Pablosquared Paul Gaynor [X]
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: