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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: Admin
    • None
    • ALL

      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]

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

              Created:
              Updated:
              Resolved: