Initial 6.1 questions

Iasen Kostov tbyte at otel.net
Tue Jun 13 16:31:06 UTC 2006


On Tue, 2006-06-13 at 09:08 -0700, Danial Thom wrote:
> 
> --- Robert Watson <rwatson at FreeBSD.org> wrote:
> 
> > 
> > On Tue, 13 Jun 2006, Danial Thom wrote:
> > 
> > > I'm sorry if I missed it, but I don't believe
> > anyone answered this question:
> > >
> > >> Lastly, is there a utility similar to
> > cpustat in
> > >
> > >> DragonflyBSD which shows the per-cpu usage
> > stats?
> > >
> > > I need to gauge the efficiency of SMP for a
> > particular application, and also 
> > > have some way of measuring the effects of
> > code changes.
> > 
> > I didn't answer it because I don't know what
> > output cpustat provides. What 
> > output does cpustat provide on DragonflyBSD?
> 
> Its a simple output such as:
> 
> CPU-0 state:   14.00% user,   0.00% nice,   2.00%
> sys,   6.00% intr, 78.00% idle
> CPU-1 state:   4.00% user,   0.00% nice,   17.00%
> sys,   2.00% intr, 77.00% idle
> 
> Of course, hp-ux type output for top would be
> ideal:
> 
> 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%
> 
> What is the plan for FreeBSD, as I don't see that
> top shows any distribution among cpus?
> 
Probably You've missed the -S option:

last pid: 37969;  load averages:  1.85,  1.92,  2.20
up 1+02:28:38  19:29:53
336 processes: 9 running, 311 sleeping, 1 zombie, 15 waiting
CPU states: 25.0% user,  1.5% nice, 20.6% system,  1.5% interrupt, 51.5%
idle
Mem: 1945M Active, 2793M Inact, 1008M Wired, 307M Cache, 214M Buf, 1690M
Free
Swap: 4096M Total, 408K Used, 4095M Free

  PID USERNAME  THR PRI NICE   SIZE    RES STATE  C   TIME   WCPU
COMMAND
   14 root        1 171   52     0K    16K RUN    0  19.2H 62.99% idle:
cpu0
   13 root        1 171   52     0K    16K RUN    1 810:43 61.77% idle:
cpu1
   11 root        1 171   52     0K    16K RUN    3  17.6H 61.52% idle:
cpu3
   12 root        1 171   52     0K    16K RUN    2 931:34 60.99% idle:
cpu2




More information about the freebsd-performance mailing list