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

Disable allocation sampling by default in new TCMalloc

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Service Arch
    • Fully Compatible
    • Service Arch 2024-04-01
    • 7

      In BF-31940, we found that an innocuous allocation was continually causing a segfault when it was randomly selected for sampling by the tcmalloc allocation sampler.

      The bug originates inside the implementation of abseil's stack unwinding utility here (on x86 only), which is called for each sampled allocation. I think that we should just wholesale disable allocation sampling by default in tcmalloc-- we do not utilize it outside of the heap profiler, which will set the sampling rate on its own already, and disabling it could also create some (very minor) perf benefits.

            Assignee:
            erin.mcnulty@mongodb.com Erin McNulty
            Reporter:
            erin.mcnulty@mongodb.com Erin McNulty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: