Quote:
Originally posted by shibz
#ps -e -o pid,vsz,rss grep 21941 gives an output like,
PID VSZ RSS
21941 136168 116408
and the #pmap -x 21941 give the summary as ,
(Kb) (Resident) (Shared) (Private )
total Kb 135424 122320 16736 105584
Any clue why the memory info is different...
Thanks in advance...
When you posted this question, I tried the commands on a sample process on a 2.6 machine and both commands agreed. So I just moved on since I didn't have anything useful to say.
But I just downloaded memtool and the docs say:
Quote:
Solaris 2.6, 7 and 8 has a bug in pmap -x which will over-estimate the amount of private memory for a process. The MemTool pmem command should be used in place of pmap -x for accurate memory analysis.
I found the instructions to obtain memtool
here. Click on "cool tools"; then "memtool". Also on that page, click on "pmap -x", where you will find:
Quote:
The following pmap bugids are resolved in Solaris 9:
4182712 pmap -x values for MAP_SHARED (text) segments is incorrect
4311136 pmap -x always displays ISM segments as 'private'
4449780 pmap -x doesn't provide reasonable output sometimes
4462729 pmap should also show swap reservation information
4419353 /proc//xmap extension
So you may be right about pmap.