[SERVER-82056] Investigate and fix slow bulkWrite addition of insert replies. Created: 10/Oct/23  Updated: 29/Oct/23  Resolved: 16/Oct/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.0-rc0

Type: Task Priority: Major - P3
Reporter: Vishnu Kaushik Assignee: Sean Zimmerman
Resolution: Fixed Votes: 0
Labels: milestone-4
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-76662 bulkWrite perf testing against vector... Closed
is related to SERVER-82054 Investigate and fix slow bulkWrite re... Closed
is related to SERVER-82055 Investigate and fix slow bulkWrite re... Closed
Assigned Teams:
Replication
Backwards Compatibility: Fully Compatible
Sprint: Repl 2023-10-16, Repl 2023-10-30
Participants:

 Description   

The addInsertReplies method here takes about 2% of the total time that the bulkWrite thread spends.

In a patch in which I commented out this method, along with populateCursorReplies, I saw a significant performance raise.

See SERVER-76662 for flame graphs.



 Comments   
Comment by Githook User [ 16/Oct/23 ]

Author:

{'name': 'seanzimm', 'email': 'sean.zimmerman@mongodb.com', 'username': 'seanzimm'}

Message: SERVER-82056: Don't unnecessarily store bulkWrite replies
Branch: master
https://github.com/mongodb/mongo/commit/a47b1e2e4adf3cacbff406009c95359dacab45f5

Generated at Thu Feb 08 06:48:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.