Operating System - HP-UX
1753499 Members
4297 Online
108794 Solutions
New Discussion юеВ

ps -ef command and Glance output

 
Sagar Sirdesai
Trusted Contributor

ps -ef command and Glance output

Hi All
I need your suggestion on mt below query.

To find memory utilised by a process I used ps command as below

ps -e -o 'vsz,user,args' | grep .

And I checked with glance the memory utilisation under RSS of the same process.

But both the values (vsz and RSS ) show different values .
Please suggest ...

Thanks and Regards
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: ps -ef command and Glance output

Shalom,

Glance processes performance information from a daemon that is running midaemon. ps -ef does not.

The have totally different calculation methodologies and ways of collecting/sampling data.

Therefore the results vary.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
spex
Honored Contributor

Re: ps -ef command and Glance output

Sagar,

IIRC:
vsz=text+data+stack
RSS=vsz+shared_memory
which implies that vsz <= RSS.

Someone please correct me if I'm wrong.

PCS
Sagar Sirdesai
Trusted Contributor

Re: ps -ef command and Glance output

Thanks for the replies

Sagar