Operating System - HP-UX
1834927 Members
2463 Online
110071 Solutions
New Discussion

Re: how can i list memory usage per user

 
mix_5
Occasional Advisor

how can i list memory usage per user

thank you
4 REPLIES 4
Robert-Jan Goossens
Honored Contributor

Re: how can i list memory usage per user

Hi,

How about
# ipcs -a

Kind regards,

Robert-Jan.
Rajeev  Shukla
Honored Contributor

Re: how can i list memory usage per user

Through ipcs you see the shared memory and semaphore created. You can not see the memory allocated for users coz. memory is allocated to process not to a user.
Probably TOP will be the right command to see memory taken by each process. And to drill down more you can use glance plus.

Rajeev
Stefan Farrelly
Honored Contributor

Re: how can i list memory usage per user

UNIX95= ps -e -o vsz=Kbytes -o ruser -o pid,args=Command-Line | sort -rnk1 | more

This lists all proceses in order of memory usage (highest first)
Im from Palmerston North, New Zealand, but somehow ended up in London...
Vicente Sanchez_3
Respected Contributor

Re: how can i list memory usage per user

Hi,

top -f filename redirects the output to filename. Then you can check the contents.

Regards, Vicente.