1846172 Members
3201 Online
110254 Solutions
New Discussion

ps command

 
Savio Pereira
Occasional Contributor

ps command

Hi Guys,

Thank you for your replies.

The vsz option in the ps command reports the process memory along with the shared objects memory. When I have multiple processes attaching to the same shared libraries or objects, the memory size of the shared objects is added to each such process memory in the ps command.
So if I had 5 processes with actual memory = 5 KB for each process and 10 KB for the shared libraries than ps would report each process to be of size 15 KB.

VSZ option in ps does not take care of this. Any pointers ?

Regards
Savio
Savio_Informix
3 REPLIES 3
Stefan Farrelly
Honored Contributor

Re: ps command


ps is a very basic tool, the only way you can see more detail on exactly what memory/libraries/shared memory a process is using is to use a more advanced tool like glance/gpm.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Brian Watkins
Frequent Advisor

Re: ps command

using the ipcs command may also yield the additional per process information you're looking for...
Martin Johnson
Honored Contributor

Re: ps command

Use "ipcs -m" to get mor information.


HTH
Marty