Re:Mimalloc – A compact general-purpose allocator
by ndesaulniers on Sunday June 23, 2019 @12:37AM
(#20253333)
On Linux, there's a bit of the info you're looking for under /proc/self/*. (Not a great answer; the info under /proc/ isn't exactly well structured, but doesn't change super often).
[ Parent
| on HN ]
Re:Mimalloc – A compact general-purpose allocator
by nh2 on Sunday June 23, 2019 @07:55PM
(#20259497)
/proc doesn't really tell you much about userspace concerns such as "how much memory has the malloc implementation handed out to the program.
It describes only the kernel-userspace parts of memory usage. For example, malloc fragmentation is not inspectable in it.
(If you enable the mallopt() setting that turns each malloc() into a separate mmap(), then it tells you a lot, but that is not a default setting.)