|
|
Subscribe / Log in / New account

What's coming in glibc 2.10

What's coming in glibc 2.10

Posted Apr 19, 2009 17:40 UTC (Sun) by eklitzke (subscriber, #36426)
In reply to: What's coming in glibc 2.10 by welinder
Parent article: What's coming in glibc 2.10

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.


to post comments

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