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

    • Bug
    • Status: Closed
    • Trivial - P5
    • Resolution: Works as Designed
    • None
    • None
    • Admin
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: