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

synchronized ServiceContext getters are too slow

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

      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@mongodb.com Billy Donahue
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: