Make the global histogram in `Top` lock-free

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Amirsaman Memaripour
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: