[SERVER-85591] Optimize currentOp document source to reduce (re)allocations Created: 23/Jan/24 Updated: 06/Feb/24 |
|
| Status: | In Progress |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Yujin Kang Park | Assignee: | Yujin Kang Park |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Catalog and Routing
|
||||||||
| Sprint: | CAR Team 2024-02-05, CAR Team 2024-02-19 | ||||||||
| Participants: | |||||||||
| Description |
|
We have observed that the latency for $currentOp can be very high when the system is under memory pressure. Off-cpu analysis showed time is spend on the memory allocator, growing the BSON object builder buffer. We should optimise to minimise or eliminate memory reallocations. |