madvise with MADV_FREE can result in misleading metrics, as reclaim of those pages happens lazily. There's plenty of examples of projects disabling it for this reason:
Thanks for you report, it's very interesting information.
In fact we are often annoyed by reports about jemalloc 4 & 5.
It might be the solution, it's worth to try in the next minor release.
madvise with MADV_FREE can result in misleading metrics, as reclaim of those pages happens lazily. There's plenty of examples of projects disabling it for this reason:
In fact,
jemalloc
has this example in their own INSTALL.md.We'd like to do the same here in order to ensure process metrics more closely track non-reclaimable anonymous memory.
See our downstream issue.