“prstat -va” equivalent for linux.

Solaris has “prstat -va” when you want to know which process is using %SYS cpu.
#prstat -va
PID USERNAME USR
SYS
TRP TFL DFL LCK SLP LAT VCX ICX SCL SIG PROCESS/NLWP
4188 rdircio 3.0 0.2 0.0 0.0 0.0 0.0 97 0.0 91 26 826 0 nxagent/1
19877 root 1.0 0.0 0.0 0.0 0.0 0.0 99 0.0 3 4 115 0 ssh/1
22010 rdircio 0.2 0.8 0.0 0.0 0.0 0.0 99 0.0 46 4 916 0 prstat/1
Notice the SYS column.
Linux standard “top” does not have that. so we can use “atop”: http://www.atcomputing.nl/Tools/atop/
# atop
PID
SYSCPU
USRCPU VGROW RGROW USERNAME THR ST EXC S CPU CMD 1/1
23876 8.18s 1.43s 0K 0K wbmthds 1 — – R 100% gam_server
13785 0.14s 0.03s 0K 0K root 1 — – S 2% atop
x y z 0.06s 0.02s 0K 0K smmsp 0 NE 0 E 1% <sendmail>
x y z 0.06s 0.01s 0K 0K root 0 NE 0 E 1% <accountunloc>
25971 0.02s 0.01s 0K 0K wbmthds 79 — – S 0% awbroker
14113 0.02s 0.00s 0K 0K root 1 — – R 0% atop
Hope this helps for your performance/sysstat needs
132/433

Leave a Reply

Your email address will not be published. Required fields are marked *