synchronized ServiceContext getters are too slow

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.8.0
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • ALL
    • Service arch 2020-10-05
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Caused by SERVER-51055

      The locking on getter operations is showing up as contention and performance drops in sys-perf (see BF-18938).

      We can do the same job with a simple AtomicWord<uintptr_t> storage implementation and simulating a unique_ptr's ownership semantics.

            Assignee:
            Billy Donahue
            Reporter:
            Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: