[SERVER-31380] Add metrics related to tcmalloc acquiring and decommitting memory from system Created: 04/Oct/17 Updated: 30/Oct/23 Resolved: 03/Nov/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Diagnostics, Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | 3.2.19, 3.4.11, 3.6.0-rc3 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Bruce Lucas (Inactive) | Assignee: | Mark Benvenuto |
| Resolution: | Fixed | Votes: | 20 |
| Labels: | SWDI | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Backport Requested: |
v3.4, v3.2
|
||||||||||||
| Sprint: | Platforms 2017-11-13 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
From time to time tcmalloc acquires memory from the system using mmap, and returns it to the system using madvise. These can be expensive operations, and they hold a lock so they can create a bottleneck. There aren't adequate metrics to diagnose issues related to this, and to assess the effect of making changes such as enabling TCMALLOC_AGGRESSIVE_DECOMMIT. The following could be helpful:
|
| Comments |
| Comment by Githook User [ 08/Dec/17 ] |
|
Author: {'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}Message: (cherry picked from commit acfa4b77e4c03dc73b54baedae652478e43740a5) |
| Comment by Githook User [ 04/Dec/17 ] |
|
Author: {'username': 'markbenvenuto', 'email': 'mark.benvenuto@mongodb.com', 'name': 'Mark Benvenuto'}Message: (cherry picked from commit acfa4b77e4c03dc73b54baedae652478e43740a5) |
| Comment by Githook User [ 03/Nov/17 ] |
|
Author: {'name': 'Mark Benvenuto', 'username': 'markbenvenuto', 'email': 'mark.benvenuto@mongodb.com'}Message: |