SMP CPU Statistics

Erik P. Skaalerud erik at pentadon.com
Sun May 1 15:40:39 PDT 2005


David Rhodus wrote:
I really like the way this is done on hpux.

e.g. output from top

System: rims                                          Sun May  1 10:14:57 2005
Load averages: 0.27, 0.28, 0.28
203 processes: 186 sleeping, 17 running
Cpu states:
CPU   LOAD   USER   NICE    SYS   IDLE  BLOCK  SWAIT   INTR   SSYS
 0    0.05   0.0%   0.0%   0.0% 100.0%   0.0%   0.0%   0.0%   0.0%
 1    0.92   0.0%   0.0%   0.0% 100.0%   0.0%   0.0%   0.0%   0.0%
 2    0.03   0.0%   0.0%   0.0% 100.0%   0.0%   0.0%   0.0%   0.0%
 3    0.08   0.0%   0.0%   0.0% 100.0%   0.0%   0.0%   0.0%   0.0%
---   ----  -----  -----  -----  -----  -----  -----  -----  -----
avg   0.27   0.0%   0.0%   0.0% 100.0%   0.0%   0.0%   0.0%   0.0%
Memory: 167944K (65824K) real, 287548K (111440K) virtual, 1034976K free  Page# 1
/23
CPU TTY    PID USERNAME PRI NI   SIZE    RES STATE    TIME %WCPU  %CPU COMMAND
  3 pts/0 11087 tbailey  154 20  7756K  7852K sleep    1:32  0.85  0.84 rts32
  1 pts/1 11161 connie   154 20  3068K  3164K sleep    0:00  0.67  0.61 rts32
  2 pts/6 11203 connie   154 20  1884K  1976K sleep    0:00  0.71  0.52 rts32
I wonder if someone might consider making these changes to the DFly top.

-DR

Oh! Me like! Alot!

If someone could wrap that into top it would be really nice.

- erik





More information about the Users mailing list