You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to estimate the number of bytes that have been released back to OS? #2832
Hi, how could one estimate the number of bytes that have been released back to OS in jemalloc? Looks like one part of it would be estimating the amount of muzzy bytes (the pages that have been marked with MADVISE_FREE) across all arenas and all extents. But that will not take into account the pages marked via MADVISE_DONTNEED. Is there is a better stat to estimate this number? (e.g number of bytes purged?)
Activity
LongWei-27 commentedon Oct 11, 2026
I think a better approach would be to use strace to count the munmap and madvise system calls of the corresponding process.