SERVER-31417ClosedFixed

Improve tcmalloc when decommitting large amounts of memory

tcmalloc may occasionally release large amounts of pageheap free memory to the kernel by calling madvise. This can take seconds when the amount of memory involved is many GB. A tcmalloc internal lock is held while this happens, so this can potentially stall many threads, causing widespread latency spikes. There is no direct metric that diagnoses this (SERVER-31380 would provide that), but it can be indirectly inferred to be a likely cause from the following: * tcmalloc pageheap free memory d

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
8.0.0
Components
Server components related to this issue
Internal Code
Labels
Tags and classification
RF36former-quick-winsperf-effort-xlargeperf-improve-productperf-urgency-asapperf-value-essential