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

the unaligned variables in counter.h contribute to high use contention

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.10
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • Platforms 2017-07-10

      In counters.h, the variables with types AtomicUInt32 and AtomicInt64 need to be cache line aligned. as the comment says, "there will be a lot of cache line contention on these." false sharing with these counters creates significant contention when loads are high.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            jvf Jim Van Fleet
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: