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
Jemalloc malloc_stats_print doesn't match RSS/VSZ #2785
We're using an app named Varnish, which is an HTTP cache, this app comes with jemalloc (5.3.0).
We recently got multiple OOM kill due to Varnish using too much memory, so we started digging a bit about this issue, and we've found that the stats returned by malloc_stats_print doesn't match the RSS/VSZ reported by the kernel (Linux) :
The jemalloc stats will only account for heap memory allocated through jemalloc (in this case <100MB like you mentioned), while there are still other mappings not through malloc in the process, e.g. directly mmaped regions and thread stacks.
Activity
interwq commentedon Jan 22, 2025
The jemalloc stats will only account for heap memory allocated through jemalloc (in this case <100MB like you mentioned), while there are still other mappings not through malloc in the process, e.g. directly mmaped regions and thread stacks.
Closing but feel free to ask questions.
priesto commentedon Jan 24, 2025
You're right, totally forgot about the other memory regions... 🤦
Thank you for the reply.