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

Set a larger default cache size for tcmalloc-google.

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Server Security
    • Fully Compatible
    • Security 2024-04-01, Security 2024-04-15
    • 43

      TCMalloc cache size is 1.5 MB. We should experiment with a larger size for the per cpu caches. This logic needs to set the cache size at CpuCache::Activate() time. The behavior will be controlled by a environment variable
      MONGO_TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES
      We should use similar logic to the gperftools tcmalloc. 

      This behavior cannot be controlled by server parameter since the cpu cache size is determined as part of a C++ static initializer.

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: