Given a process, does Linux has a command/tool to find out the memory utilization?

Solaris has pmap and AIX has svmon.
Does Linux has a similar command like those?
[Please no need to mention top, ps, sar ...].
Thanks.
LVL 7
waynezhuAsked:
Who is Participating?
 
smiskConnect With a Mentor Commented:
Hmm...  This may help :

%> cat /proc/`/sbin/pidof <process>`/statm

The results are best explained from http://www.linuxhq.com/kernel/v2.2/doc/proc.txt.html :

The statm file contains more detailed information about the process
memory usage. It contains seven values with the following meanings:

size       total program size
resident   size of in memory portions
shared     number of the pages that are shared
trs        number of pages that are 'code'
drs        number of pages of data/stack
lrs        number of pages of library
dt   number of dirty pages
0
 
MFCRichCommented:
I'm not familiar with pmap or svmon but perhaps what you are looking for is vmstat ( man 8 vmstat ). On my Redhat system it is part of the procps package.
0
 
waynezhuAuthor Commented:
no, not vmstat. Thanks anyway.
0
 
waynezhuAuthor Commented:
That helps. Thanks.
0
 
eggressiveCommented:
This was really helpful for me.
Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.