Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

/proc/PID/statm vs. top on linux

Status
Not open for further replies.

sedj

Programmer
Aug 6, 2002
5,610
Hi, I realise not a specfically C question, but I thought I'd ask here (rather than the linux/unix forums) as its the kind of thing linux C programmers might know ...

As I understand it, /proc/PID/statm contains the processes memory footprint.

When I cat /proc/PID/statm for a certain process, the 2nd field (I believe to be the current malloc'd memory) is about a quarter of the memory top reckons my process is using ... any ideas ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top