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

Make the global histogram in `Top` lock-free

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc5
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Service Arch
    • Fully Compatible
    • v8.0
    • Service Arch 2024-04-29
    • 163

      It holds a mutex-protected StringMap, mapping each NamespaceString to a set of metrics as well as a histogram. Also, it manages a set of histograms, protected by another mutex, for operations against the database without considering the target NamespaceString.

      We can remove the mutex on the set of global histograms by using relaxed atomics. As for the StringMap, we would need RCUs which are not currently available.

            Assignee:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Reporter:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: