Re: Initial 6.1 questions
- From: Danial Thom <danial_thom@xxxxxxxxx>
- Date: Tue, 13 Jun 2006 12:48:46 -0700 (PDT)
--- Robert Watson <rwatson@xxxxxxxxxxx> wrote:
On Tue, 13 Jun 2006, Danial Thom wrote:
ticks regarding whether theTwo types of measurements are taken: sampled
intr, idle}, and then samplingsystem as a while is in {user, nice, system,
system measurements are kept in afor individual processes. Right now, the
cp_time. John Baldwin and others havesimple array of tick counters called
per-CPU. The lines at the top ofchanges that make these tick counters
counters. Ticks are measuredtop(1)'s output are derived from those tick
all CPUs. To add cpustaton each CPU, so those are a summary across
make cp_time per-CPU (ie.,support, we need to merge John's patch to
teach the userland tools todifferent counters for different CPUs) and
notice that it adjusts theretrieve them. When you run top you'll
it's doing is sampling themeasurements each refresh. In effect, what
pulling down the new values andchange in tick counts over the window,
"bucket" in the last window.calculating the percentages of ticks in each
99.6% idle, but the cpu idle
That doesn't explain why the Top line shows
threads are showing significant usage.Second on my em controller, yet top
I'm getting a constant 6000 Interrupts /
jumps all over the place; sitting at 99% idlefor 10 seconds, then jumping
to 50%, then somewhere in between. It seemscompletely unreliable. The load
I'm applying is constant.
I can't speak to the details of the
thread/process use sampling model. Top
uses something called the "weighted cpu
percentage" by default; you can switch
to "unweighted" using the -C argument. The top
documentation fails to
document the semantics of the percentages, but
I suspect -C will give you more
of what you expect. The weighted CPU
measurement takes into account process
history, so it takes a while for sudden spike
in CPU use to be fully
reflected, and you may see seemingly
counter-intuitive results, such as the
appearance of greater than 100% CPU use. Try
out -C and see if you see
something that makes more sense?
It seems to work just fine with 1 CPU. Its
equally useless with the -C option in SMP mode.
Here's a snip from 'systat -vmstat 1'
Proc:r p d s w Csw Trp Sys Int Sof
Flt cow 10009 total
24 18353 1 129 156k 1
17108 wire 6: fdc0
7908 act 14: ata
0.4%Sys 0.4%Intr 0.0%User 0.0%Nice 99.2%Idl
7236 inact 20: em0
| | | | | | | | | |
cache 6000 21: em1
473456 free 5 24: bge
6000 interrupts per second and .4% interrupt
usage. Clearly the tools don't work at all in SMP
mode. I don't see how you can do development
without measurement tools that work.
DT
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
freebsd-performance@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-performance
To unsubscribe, send any mail to "freebsd-performance-unsubscribe@xxxxxxxxxxx"
- References:
- Re: Initial 6.1 questions
- From: Robert Watson
- Re: Initial 6.1 questions
- Prev by Date: Re: Initial 6.1 questions
- Next by Date: Re: Initial 6.1 questions
- Previous by thread: Re: Initial 6.1 questions
- Next by thread: Re: Initial 6.1 questions
- Index(es):
Relevant Pages
|
|