What's the difference between prof_accum on and off?
Jason Evans
jasone at canonware.com
Mon Oct 19 11:51:38 PDT 2015
On Oct 19, 2015, at 12:28 AM, cee1 <fykcee1 at gmail.com> wrote:
> I'm trying the profiling feature of jemalloc. And the option
> prof_accum[1] makes me confused.
>
> What does this option do? Does it make any difference in stat result if enabled?
If prof_accum is enabled, then *cumulative* allocation statistics (number of bytes and objects) are maintained in addition to *current* statistics. You can pass command line flags to jeprof (ne pprof) to tell it to use the cumulative statistics instead of the current statistics. This can be useful for finding hot allocation sites that cause throughput issues (distinct from causing memory bloat).
The reason prof_accum is disabled by default is that otherwise all backtraces associated with sampled allocation events must be preserved, and for applications with high combinatorial complexity in their function call paths, there is no practical bound on how much memory the backtraces will consume.
Jason
More information about the jemalloc-discuss
mailing list