Solaris commands for process management -prstat

 prstat – fullscreen view of processes sorted by different criteria, similar to Linux top command
  PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
   502 root       48M   36M sleep   59    0   0:00:09 0.2% Xorg/1
   779 root       68M   12M sleep   58    0   0:00:08 0.1% mixer_applet2/1
   605 noaccess  162M  116M sleep   59    0   0:00:13 0.1% java/18
   783 root       75M   16M sleep   49    0   0:00:03 0.0% gnome-terminal/2
   729 root       12M 9752K sleep   59    0   0:00:04 0.0% gconfd-2/1
  1004 root     3808K 2960K cpu0    59    0   0:00:00 0.0% prstat/1
   734 root     6644K 4008K sleep   59    0   0:00:00 0.0% xscreensaver/1
   760 root       73M   18M sleep   59    0   0:00:03 0.0% gnome-panel/1
   756 root       67M   14M sleep   59    0   0:00:00 0.0% metacity/1
   777 root       71M   15M sleep   59    0   0:00:01 0.0% gnome-netstatus/1
   281 root     3780K 1544K sleep   59    0   0:00:01 0.0% VBoxService/7
     5 root        0K    0K sleep   99  -20   0:00:02 0.0% zpool-rpool/138
   751 root     7076K 3184K sleep   59    0   0:00:00 0.0% gnome-smproxy/1
   866 root     2992K 1772K sleep   37    0   0:00:00 0.0% bash/1
   965 root     4376K 2528K sleep   59    0   0:00:00 0.0% nscd/19
   867 smmsp    9184K 2112K sleep   59    0   0:00:00 0.0% sendmail/1
   559 root     3064K 2064K sleep   59    0   0:00:00 0.0% vold/5
   707 root     4616K 1760K sleep   59    0   0:00:00 0.0% sdt_shell/1
   623 root     1608K 1008K sleep   59    0   0:00:00 0.0% Xsession/1
<snip>
Total: 69 processes, 347 lwps, load averages: 0.02, 0.01, 0.01



The program in default view is less informative that top, but can give you info for zones, projects and even for processes bind to specific processor. Use the -u option to limit display to specific users. Use the -p option to limit display to specific processes

No comments:

Post a Comment

Should I trust AI

 Should I trust AI? So far no, sorry.  I tested for the moment (May, 2025) most advanced model for programming and ask very simple question:...