statistical counters from jemalloc - Similar to mall info()

Prajakta praj.jagtap at gmail.com
Mon Oct 19 00:10:03 PDT 2015


Is there a way by which we can get actual number of bytes of data allocated
by JEMALLOC + number of bytes allocated by mmap / bro system call in
jemalloc?

I am looking for counters similar to mallinfo counters in jemalloc.
Using mall info() we get information about memory allocations performed
using malloc.

I need similar counters from jemalloc:
- *hblkhd*:      Number of bytes in blocks currently allocated using mmap(2)
- *uordblks*:  Total number of bytes usd by in-use allocations
- *fordblks*:   Total number of bytes in free blocks.


Out of above 3, I suspect, stats.allocated is similar to uordblks.


Thanks,
Prajakta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jemalloc.net/mailman/jemalloc-discuss/attachments/20151019/7dc50e1b/attachment.html>


More information about the jemalloc-discuss mailing list