OpenVZ Forum


Home » General » Support » determining per process memory usage
determining per process memory usage [message #42977] Fri, 24 June 2011 06:41
M.K. is currently offline  M.K.
Messages: 1
Registered: June 2011
Junior Member
Hi. I'm working on a process logger primary intended for use on a an openVZ slice. This reads various statistics from /proc/[pid]/ and logs them over time; the interval is in minutes, so, eg, a process can be polled every quarter of an hour perpetually.

None of the familiar memory related stats -- virtual, resident, stack+data, etc -- is very closely related to the amount the process contributes to openVZ's used/free "allocated" memory total. However, it seems to me this is almost exactly the figure reported by pmap -d as "writable/private", which is simply a total of the private blocks with write permission from /proc/[pid]/maps.

Can anyone confirm or deny this? I'm willing to open source the code (C) and make it freely available to other openVZ users as this seems a useful thing to watch and a simple way to do it -- if that figure is as valid as I think it is.

Previous Topic: No package vzpkg, vzyum, vzrpm43-python and vzrpm44-python available
Next Topic: No networking, tried everything
Goto Forum:
  


Current Time: Wed May 08 01:06:45 GMT 2024

Total time taken to generate the page: 0.01457 seconds