overview/history of resident memory usage

Posted by kapet on Stack Overflow See other posts from Stack Overflow or by kapet
Published on 2010-12-25T20:51:19Z Indexed on 2010/12/25 20:54 UTC
Read the original article Hit count: 225

Filed under:
|

I have a fairly complicated program (Python with SWIG'ed C++ code, long running server) that shows a constantly growing resident memory usage. I've been digging with the usual tools for the leak (valgrind, Pythons gc module, etc.) but to no avail so far. I'm a bit afraid that the actual problem is memory fragmentation within Python and/or libc managed memory.

Anyway, my question is more specific right now: Is there a tool to visualize resident memory usage and ideally show how it develops over time? I think the raw data is in /proc/$PID/smaps but I was hoping there's some tool that shows me a nice graph of the amounts used by mmap'ed files vs. anonymous mmap'ed memory vs. heap over time so that it's easier to see (literally) what's changing. I couldn't find anything though.

Does anybody know of a ready to use tool that graphs memory usage over space and time in an intuitive way?

© Stack Overflow or respective owner

Related posts about linux

Related posts about memory-management