[SunHELP] how to ps
DAUBIGNE Sebastien - BOR ( SDaubigne@bordeaux-bersol.sema.slb.com )
SDaubigne at bordeaux-bersol.sema.slb.com
Thu Jul 18 08:13:02 CDT 2002
ps -o pid,osz,rss,pcpu,args -p <pid>
will print the virtual/resident memory and CPU percentage.
See "man ps" for the signification of osz/rss/pcpu.
Be careful as "rss" includes memory pages shared with other process (shared
exec/library, IPC shared memory segments, cow pages, mapped files, ...).
The "/usr/proc/bin/pmap -x <pid>" command will show various useful
informations like private memory .
I suggest to download and install "Memtool" if you want to gather
additionnal informations related to memory usage (see sun.com).
Note : pmap reports private memory wrongly on Solaris 2.6, see Memtool's
"pmem" as a replacement.
---
Sebastien DAUBIGNE
sdaubigne at bordeaux-bersol.sema.slb.com <mailto:sebastien.daubigne at sema.fr>
- (+33)5.57.26.56.36
SchlumbergerSema - SGS/DWH/Pessac
-----Message d'origine-----
De: Simon Jespersen [SMTP:shj at pine.dk]
Date: jeudi 18 juillet 2002 12:10
: Sun solaris help list
Objet: [SunHELP] how to ps
Hi how do i run a ps command thats shows the amount of memory taken
by the
process., and optioally the amount of cpu usage
Kind regards
Simon Jespersen
Project engineer
Pine Tree Systems A/S
Damhaven 5d
DK-7100 Vejle
Email: shj at pine.dk
Phone: +4575724477
_______________________________________________
SunHELP maillist - SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp
More information about the SunHELP
mailing list