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

Investigate the bottleneck of majority writes by many clients

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

      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@mongodb.com Lingzhi Deng
            Reporter:
            siyuan.zhou@mongodb.com Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: