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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 3.0.3, 3.1.1
    • Affects Version/s: None
    • Component/s: Build, Internal Code
    • None
    • Fully Compatible
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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())

            Assignee:
            Andrew Morrow (Inactive)
            Reporter:
            Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: