Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Aug 2012 17:49:55 +0300
From:      Alexander Motin <mav@FreeBSD.org>
To:        lev@FreeBSD.org
Cc:        Adrian Chadd <adrian@freebsd.org>, Doug Barton <dougb@FreeBSD.org>, current@freebsd.org
Subject:   Re: CURRENT as gateway on not-so-fast hardware: where is a bottlneck?
Message-ID:  <502BB713.6000907@FreeBSD.org>
In-Reply-To: <1866034737.20120815152313@serebryakov.spb.ru>
References:  <157941699.20120815004542@serebryakov.spb.ru> <CAJ-Vmon86-FPs4%2BXXkQXAow1jW465pMM2Sj7ZHi_0_E9VYSFSA@mail.gmail.com> <502AE8B5.9090106@FreeBSD.org> <502B775D.7000101@FreeBSD.org> <1849591745.20120815144006@serebryakov.spb.ru> <502B82F4.1090804@FreeBSD.org> <938388715.20120815151149@serebryakov.spb.ru> <502B85C4.5060703@FreeBSD.org> <1866034737.20120815152313@serebryakov.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 15.08.2012 14:23, Lev Serebryakov wrote:
> Hello, Alexander.
> You wrote 15 августа 2012 г., 15:19:32:
>
> AM> I've meant `kern.timecounter`.
> kern.timecounter.tick: 1
> kern.timecounter.choice: TSC(800) i8254(0) dummy(-1000000)
> kern.timecounter.hardware: TSC
> kern.timecounter.stepwarnings: 0
> kern.timecounter.tc.i8254.mask: 65535
> kern.timecounter.tc.i8254.counter: 63995
> kern.timecounter.tc.i8254.frequency: 1193182
> kern.timecounter.tc.i8254.quality: 0
> kern.timecounter.tc.TSC.mask: 4294967295
> kern.timecounter.tc.TSC.counter: 276768292
> kern.timecounter.tc.TSC.frequency: 499912330
> kern.timecounter.tc.TSC.quality: 800
> kern.timecounter.invariant_tsc: 0

So since you have TSC timecounter, the trick with one-shot i8254 mode 
should work for you. Unluckily I was wrong. It should give you more 
correct global CPU usage percents statistics, but neither per-thread CPU 
usage (at least with ULE) nor load averages, as they both still depend 
on hardclock.

> AM> There is python GUI tool /usr/src/tools/sched/schedgraph.py for it.
> AM> Short manual is inside.
>   uh-oh, Python+Tk!  I wonder, will it work on Windows, as I don't have
>   ``headed'' FreeBSD or Linux machines :)
>
>   Will it work with ALQ output from KTR, not with output of ktrdump?

Have no idea what ALQ output looks like. ktrdump output is just a text 
file that script parses.

-- 
Alexander Motin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?502BB713.6000907>