From: Jim Cromie <jim.cromie@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: Jan Kiszka <jan.kiszka@domain.hid>, xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] Re: Test, benchmark
Date: Fri, 18 Aug 2006 12:12:35 -0600 [thread overview]
Message-ID: <44E60313.8000803@domain.hid> (raw)
In-Reply-To: <17637.63157.596008.331241@domain.hid>
Gilles Chanteperdrix wrote:
> Jim Cromie wrote:
> > [ 1574.162754] Xenomai: starting RTDM services.
> > cpu 0: 2079 context switches.
> > cpu 0: 4212 context switches.
> > cpu 0: 6336 context switches.
> > cpu 0: 8442 context switches.
> > ...
> > cpu 0: 246981 context switches.
> > cpu 0: 249096 context switches.
> > cpu 0: 250263 context switches.
> > [ 1698.479703] Xenomai: stopping RTDM services.
> >
> > wrt the data emitted, what can we learn from the numbers ?
> > They look to be increasing linearly, with some noise/perturbations.
> > We could do some statistics, but whats useful ?
> > Histogramming, averaging the delta-context-switches ?
> >
> > Also, I see from the help-text that it does many kinds of context switches.
> > Does it make sense to run each kind for a bunch of samples,
> > so that we can see # and variation for each kind of switch ?
>
> No, because one of the threads in the chain of context switches is
> sleeping, otherwise the program would completely block your box. So, the
> figures are largely irrelevant, the only important thing about them is
> that they are increasing, it proves that the test is really switching
> contexts. But the test fails if the value stop increasing, so no, the
> output is useless. Note that if you add the -q option, the program will
> be silent and only print the final count of context switches.
>
> A question: I see that you always use the -n option, do you have
> problems running the test without this option ? When launched with the
> -n option switchtest does not test cpu context switches.
>
>
I think I added it at some point when I wasnt getting output.
It works without the -n too, which should be added via XENOT_SWITCHTEST,
not stuffed in by default. You could just edit it out of patch, if
otherwize satisfied...
fwiw, Im not averse to expanding to XENOTEST_OPTS_<foo>,
if you think thats better (its probly more self-explanatory when found
in an .rc file)
(its obviously trivial to redo the patch, lemme know)
BTW, running without -n, and with -T 120 (same as before)
I get more total context switches:
[ 1075.064980] Xenomai: starting RTDM services.
Testing FPU check routines...
r0: 1 != 2
r1: 1 != 2
r2: 1 != 2
r3: 1 != 2
r4: 1 != 2
r5: 1 != 2
r6: 1 != 2
r7: 1 != 2
FPU check routines OK.
cpu 0: 5727 context switches.
cpu 0: 11477 context switches.
cpu 0: 17227 context switches.
cpu 0: 23000 context switches.
...
cpu 0: 673164 context switches.
cpu 0: 678914 context switches.
cpu 0: 684664 context switches.
cpu 0: 688620 context switches.
[ 708.976879] Xenomai: stopping RTDM services.
Offhand, that seems counterintuitive that -n gives lower growth-rate of
total switches,
since its equivalent to a shorter list of 'threadspec's
Also, 2 possible output change requests:
a - print per-sample measures, not accumulating ones.
this is more consistent with latency, which prints the latencies
seen over the 1-sec sample period
This also feeds better into histogram, w/o adding 'delta' logic to
histogrammer
b - label output lines more in spirit of latency
RTT| 00:00:01 (in-kernel periodic task, 100 us period, priority 99)
RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat
worst
RTD| 4.733| 13.145| 18.518| 0| 4.733|
18.518
RTD| 4.868| 13.169| 24.735| 0| 4.733|
24.735
RTD| 5.014| 13.104| 36.270| 0| 4.733|
36.270
RTD| 4.905| 13.111| 36.394| 0| 4.733|
36.394
I have some misgivings about asking for this :
- current output needs massaging, esp b4 feeding to gnuplot
Someday, I'll sit down and write a script to reformat the data the
way gnuplot wants it,
then we'll have some idea whether current form is sub-optimal.
- Ideally, we'd be using relayfs to collect data.
More library-fodder ??
Lastly, we once had testsuite/README, I suppose it was dropped as being
fatally-out-of-date. Presuming we want a new fresh one, could you add
an empty file to svn, so that we can patch against it ?
thanks
jimc
next prev parent reply other threads:[~2006-08-18 18:12 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-10 1:18 [Xenomai-help] expected output and runtime of switchtest ? Jim Cromie
2006-08-10 11:28 ` Jan Kiszka
2006-08-10 20:38 ` [Xenomai-core] " Jim Cromie
2006-08-11 16:25 ` [Xenomai-core] Test, benchmark, demo frameworks (was: expected output and runtime of switchtest ?) Jan Kiszka
2006-08-11 22:45 ` [Xenomai-core] Re: Test, benchmark, demo frameworks Jim Cromie
2006-08-16 7:12 ` Jan Kiszka
2006-08-18 16:54 ` [Xenomai-core] Re: Test, benchmark Jim Cromie
2006-08-18 17:19 ` Gilles Chanteperdrix
2006-08-18 17:48 ` Gilles Chanteperdrix
2006-08-18 18:12 ` Jim Cromie [this message]
2006-08-18 18:23 ` Jan Kiszka
2006-08-18 19:10 ` Gilles Chanteperdrix
2006-08-18 21:28 ` Gilles Chanteperdrix
2006-08-18 18:02 ` Jan Kiszka
2006-08-18 18:28 ` Jim Cromie
2006-08-19 7:35 ` Jan Kiszka
2006-08-19 12:48 ` Gilles Chanteperdrix
2006-08-13 17:11 ` [Xenomai-core] expected output and runtime of switchtest ? Gilles Chanteperdrix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44E60313.8000803@domain.hid \
--to=jim.cromie@domain.hid \
--cc=gilles.chanteperdrix@xenomai.org \
--cc=jan.kiszka@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.