[SERVER-42051] Investigate the bottleneck of majority writes by many clients Created: 02/Jul/19  Updated: 12/Sep/19  Resolved: 12/Sep/19

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Siyuan Zhou Assignee: Lingzhi Deng
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: Repl 2019-07-29, Repl 2019-08-12, Repl 2019-08-26, Repl 2019-09-09, Repl 2019-09-23
Participants:

 Description   

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.


Generated at Thu Feb 08 04:59:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.