{"id":560,"date":"2011-01-28T00:30:38","date_gmt":"2011-12-25T13:51:50","guid":{"rendered":"http:\/\/kraftek.com\/blog\/prstat-va-equivalent-for-linux\/"},"modified":"2011-01-28T00:30:38","modified_gmt":"2011-12-25T13:51:50","slug":"prstat-va-equivalent-for-linux","status":"publish","type":"post","link":"\/blog\/index.php\/prstat-va-equivalent-for-linux\/","title":{"rendered":"&#8220;prstat -va&#8221; equivalent for linux."},"content":{"rendered":"<p>Solaris has &#8220;prstat -va&#8221; when you want to know which process is using %SYS cpu.<br \/>\n#prstat -va<br \/>\nPID USERNAME USR<br \/>\nSYS<br \/>\nTRP TFL DFL LCK SLP LAT VCX ICX SCL SIG PROCESS\/NLWP<br \/>\n4188 rdircio 3.0 0.2 0.0 0.0 0.0 0.0 97 0.0 91 26 826 0 nxagent\/1<br \/>\n19877 root 1.0 0.0 0.0 0.0 0.0 0.0 99 0.0 3 4 115 0 ssh\/1<br \/>\n22010 rdircio 0.2 0.8 0.0 0.0 0.0 0.0 99 0.0 46 4 916 0 prstat\/1<br \/>\nNotice the SYS column.<br \/>\nLinux standard &#8220;top&#8221; does not have that. so we can use &#8220;atop&#8221;: http:\/\/www.atcomputing.nl\/Tools\/atop\/<br \/>\n# atop<br \/>\nPID<br \/>\nSYSCPU<br \/>\nUSRCPU VGROW RGROW USERNAME THR ST EXC S CPU CMD 1\/1<br \/>\n23876 8.18s 1.43s 0K 0K wbmthds 1 &#8212; &#8211; R 100% gam_server<br \/>\n13785 0.14s 0.03s 0K 0K root 1 &#8212; &#8211; S 2% atop<br \/>\nx y z 0.06s 0.02s 0K 0K smmsp 0 NE 0 E 1% &lt;sendmail&gt;<br \/>\nx y z 0.06s 0.01s 0K 0K root 0 NE 0 E 1% &lt;accountunloc&gt;<br \/>\n25971 0.02s 0.01s 0K 0K wbmthds 79 &#8212; &#8211; S 0% awbroker<br \/>\n14113 0.02s 0.00s 0K 0K root 1 &#8212; &#8211; R 0% atop<br \/>\nHope this helps for your performance\/sysstat needs<br \/>\n132\/433<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Solaris has &#8220;prstat -va&#8221; 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-560","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=560"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/560\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=560"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}