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

--use-system-tcmalloc does not support tcmalloc setParameters and extension

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.3, 3.1.1
    • Component/s: Build, Internal Code
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:

      Description

      There are two runtime parameters for tcmalloc that will have undefined behavior if mongod is compiled with --use-system-tcmalloc:

      	"tcmallocAggressiveMemoryDecommit" : 1,
      	"tcmallocMaxTotalThreadCacheBytes" : NumberLong(1073741824),

      We need to fix the includes in:
      src/mongo/util/tcmalloc_set_parameter.cpp
      src/mongo/util/tcmalloc_server_status_section.cpp

      And ifdef out the extension made to tcmalloc (GetThreadCacheSize())

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: