Investigate the bottleneck of majority writes by many clients

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Repl 2019-07-29, Repl 2019-08-12, Repl 2019-08-26, Repl 2019-09-09, Repl 2019-09-23
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-40250 showed the high contention on the same mutex under heavy concurrent w:majority writes. The user reported 7% CPU usage with 256 threads inserting small documents on a 16-core machine. The bottleneck was _wakeReadyWaiters_inlock which implements a naive O(N) algorithm to examine waiters, where N is the total number of all pending and ready waiters. 

      We need to verify the bottleneck in a 2-node or 3-node replica set and add Genny test to evergreen.

            Assignee:
            Lingzhi Deng
            Reporter:
            Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: