|
|
Subscribe / Log in / New account

What's coming in glibc 2.10

What's coming in glibc 2.10

Posted Apr 19, 2009 16:54 UTC (Sun) by welinder (guest, #4699)
Parent article: What's coming in glibc 2.10

mallinfo is the way to monitor how much memory an application is using.
Having to go through XML for that sounds like serious overkill. That
said, there are probably other pieces of information from malloc that
it actually makes sense to provide in xml form.


to post comments

What's coming in glibc 2.10

Posted Apr 19, 2009 17:40 UTC (Sun) by eklitzke (subscriber, #36426) [Link] (2 responses)

Actually you can read the memory usage for a process from /proc (e.g. /proc/PID/statm for a machine readable form). The information given by mallinfo is more detailed stuff about what the memory allocator is actually doing internally, not how much memory your process is using.

What's coming in glibc 2.10

Posted Apr 19, 2009 22:30 UTC (Sun) by oak (guest, #2786) [Link] (1 responses)

Both are needed. Mallinfo tells whether the process is fragmenting its
heap. Checking that may be a performance issue, so needing to parse XML
sounds strange. And if Glibc does allocs for the XML output, it would be
even stranger...

What's coming in glibc 2.10

Posted Apr 19, 2009 23:50 UTC (Sun) by foom (subscriber, #14868) [Link]

Indeed, it seems to me that a sysctl-like API would make more sense.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds