Skip to contentSkip to conversation

xeno-test updates [rfc patch]

Xenomai-core Applied Jim Cromie 4 participants 9 messages Apr 20, 2006 – Apr 24, 2006

lore
Share & tools
lore

Jim Cromie

author
#0 lore raw

Ive started adding to xeno-test, as outlined previously (plus some)

- now run cyclictest and switch, in addition to latency -t 0,1,2

- changed the prewired -m email-addy to [email protected] will change again when something is formalized.
In meantime, feel free to send results, Ill periodically bundle them, and/or just forward them automatically.

- added cat /proc/xenomai/* /proc/xenomai/*/* to boxstatus(), which is run before and after latency tests.
Note that /proc/ipipe/* is catted in boxinfo(), which is only run before, since the info doesnt change

- moved cat /proc/meminfo to boxstatus, since it changes (a little bit)

- now grep more config-items out of config (for non-verbose mode) latency-killers, PREEMPT, others ?

- now fetch .config from /lib/modules/uname -/build, unless /proc/config.gz is there.

- -v flag gets whole config (from either source)

- boxinfo now runs xeno-info, xeno-config

- added From: <[email protected]> to outgoing email.
This probably isnt good enough, as mailservers generally check real sender IP
against the given domain-name, and reject fakes. Forex, LKML rejected my attempts
to do this there. gmail.com accepted my test msgs, but perhaps cuz they know me from my pop access.

- patch also includes a tweak to prepare-kernel (chmod +w in patch_append)
I added it cuz I like to use lndir to clone source trees
(much smaller, and patch does the right thing - copies file, then modifies local copy. only issue is that it preserves the readonly of the original (preventing inadvertent touches), which breaks the append.) Not sure its universally safe, but it works here.

Dont apply yet, not tested recently.

Qs

- should I run boxstatus just after latency tests or b4 and after (as currently) ?

- /proc/xenomai/* contents are dynamic (ie run by boxstatus) ?

- any bits of boxinfo and boxstatus that should be shuffled around ?

- mail only works if -N andor -L are used.
probably unnecessary limitation. (im lazy)

- check NPTL availability (kinda overkill, since its absence when needed is already detected)

- anything else come to mind ?

prepare-kernel.sh +1 -0
Index: scripts/prepare-kernel.sh
===================================================================
@@ -48,6 +48,7 @@
 patch_append() {
     file="$1"
     if test "x$output_patch" = "x"; then
+	chmod +w "$linux_tree/$file"
         cat >> "$linux_tree/$file"
     else
         if test `check_filter $file` = "ok"; then
xeno-test.in +42 -13

111 lines not on this page · raw message

#1 lore raw
Quoted 2 lines · Jim Cromie

Ive started adding to xeno-test, as outlined previously (plus some)

[...]

Quoted 1 line

- -v flag gets whole config (from either source)

[...]

Quoted 1 line

Dont apply yet, not tested recently.

[...]

When this patch is applied, please also apply the attached patch to the manpage for the new -v option.

Signature · 1 line
Romain LENGLET
ChangeLog +5 -0
@@ -1,3 +1,8 @@
+2006-04-21  Romain Lenglet <[email protected]>
+
+	* doc/man/xeno-test.man.in: Add documentation for the new -v option
+	added to the xeno-test script.
+
 2006-04-20  Jan Kiszka  <[email protected]>
 
 	* ksrc/skins/rtdm/device.[ch], ksrc/skins/rtdm/module.c: Catch
doc/man/xeno-test.man.in +8 -2
@@ -9,11 +9,11 @@
 .\" Xenomai distribution.
 .\"
 .pc
-.TH XENO-TEST 1 "2006-04-19" "@PACKAGE_VERSION@" "Xenomai"
+.TH XENO-TEST 1 "2006-04-21" "@PACKAGE_VERSION@" "Xenomai"
 .SH NAME
 xeno\-test \- Tests and measures the performance of a Xenomai installation
 .SH SYNOPSIS
-\fBxeno\-test\fP [\fB\-w\fP \fIworkloads\fP] [\fB\-d\fP \fIdevice\fP] [\fB\-W\fP \fIcommand\fP] [\fB\-p\fP \fIcommand\fP] [\fB\-L\fP [\fB\-N\fP \fIprefix\fP]] [\fB\-m\fP | \fB\-M\fP \fIemail\fP] [\fB\-s\fP] [\fB\-l\fP \fIsamples\fP] [\fB\-h\fP [\fB\-H\fP \fIcategories\fP] [\fB\-B\fP \fIgranularity\fP]] [\fB\-T\fP \fIseconds\fP [\fB\-q\fP]] [\fB\-\-\fP] [\fIargs\fP] ...
+\fBxeno\-test\fP [\vB\-v\fP] [\fB\-w\fP \fIworkloads\fP] [\fB\-d\fP \fIdevice\fP] [\fB\-W\fP \fIcommand\fP] [\fB\-p\fP \fIcommand\fP] [\fB\-L\fP [\fB\-N\fP \fIprefix\fP]] [\fB\-m\fP | \fB\-M\fP \fIemail\fP] [\fB\-s\fP] [\fB\-l\fP \fIsamples\fP] [\fB\-h\fP [\fB\-H\fP \fIcategories\fP] [\fB\-B\fP \fIgranularity\fP]] [\fB\-T\fP \fIseconds\fP [\fB\-q\fP]] [\fB\-\-\fP] [\fIargs\fP] ...
 .SH DESCRIPTION
 \fBxeno\-test\fP measures the performance of Xenomai, by executing Xenomai's \fBlatency\fP and \fBklatency\fP tests while generating a high workload on the system.
 The default command that is executed to simulate workload (if no alternate command is specified with a \fB-W\fP \fIcommand\fP option) is:
@@ -34,6 +34,9 @@
 .SH OPTIONS
 These following options are specific to \fBxeno\-test\fP:
 .TP
+\fB\-v\fP
+Outputs more verbose tests results on the standard output.
+.TP
 \fB\-w\fP \fIworkloads\fP
 The number of workload commands to execute simultaneously. By default, this number is \fB1\fP.
 .TP
@@ -119,6 +122,9 @@
 .BR uname (1)
 .SH HISTORY
 .TP
+2006-04-21
+Updated to document the new -v option.
+.TP
 2006-04-19
 Updated to document the new -m and -M options.
 .TP
#2 lore raw

Le Vendredi 21 Avril 2006 12:53, Romain Lenglet a écrit :

Quoted 8 lines
Quoted 2 lines · Jim Cromie

Ive started adding to xeno-test, as outlined previously (plus some)

[...]

Quoted 1 line

- -v flag gets whole config (from either source)

Quoted 8 lines

[...]

Quoted 1 line

Dont apply yet, not tested recently.

[...]

When this patch is applied, please also apply the attached patch to the manpage for the new -v option.

Oops. Sorry, I made a typo in the synopsis line.
Please apply this patch instead.

Signature · 1 line
Romain LENGLET
ChangeLog +5 -0
@@ -1,3 +1,8 @@
+2006-04-21  Romain Lenglet <[email protected]>
+
+	* doc/man/xeno-test.man.in: Add documentation for the new -v option
+	added to the xeno-test script.
+
 2006-04-20  Jan Kiszka  <[email protected]>
 
 	* ksrc/skins/rtdm/device.[ch], ksrc/skins/rtdm/module.c: Catch
doc/man/xeno-test.man.in +8 -2
@@ -9,11 +9,11 @@
 .\" Xenomai distribution.
 .\"
 .pc
-.TH XENO-TEST 1 "2006-04-19" "@PACKAGE_VERSION@" "Xenomai"
+.TH XENO-TEST 1 "2006-04-21" "@PACKAGE_VERSION@" "Xenomai"
 .SH NAME
 xeno\-test \- Tests and measures the performance of a Xenomai installation
 .SH SYNOPSIS
-\fBxeno\-test\fP [\fB\-w\fP \fIworkloads\fP] [\fB\-d\fP \fIdevice\fP] [\fB\-W\fP \fIcommand\fP] [\fB\-p\fP \fIcommand\fP] [\fB\-L\fP [\fB\-N\fP \fIprefix\fP]] [\fB\-m\fP | \fB\-M\fP \fIemail\fP] [\fB\-s\fP] [\fB\-l\fP \fIsamples\fP] [\fB\-h\fP [\fB\-H\fP \fIcategories\fP] [\fB\-B\fP \fIgranularity\fP]] [\fB\-T\fP \fIseconds\fP [\fB\-q\fP]] [\fB\-\-\fP] [\fIargs\fP] ...
+\fBxeno\-test\fP [\fB\-v\fP] [\fB\-w\fP \fIworkloads\fP] [\fB\-d\fP \fIdevice\fP] [\fB\-W\fP \fIcommand\fP] [\fB\-p\fP \fIcommand\fP] [\fB\-L\fP [\fB\-N\fP \fIprefix\fP]] [\fB\-m\fP | \fB\-M\fP \fIemail\fP] [\fB\-s\fP] [\fB\-l\fP \fIsamples\fP] [\fB\-h\fP [\fB\-H\fP \fIcategories\fP] [\fB\-B\fP \fIgranularity\fP]] [\fB\-T\fP \fIseconds\fP [\fB\-q\fP]] [\fB\-\-\fP] [\fIargs\fP] ...
 .SH DESCRIPTION
 \fBxeno\-test\fP measures the performance of Xenomai, by executing Xenomai's \fBlatency\fP and \fBklatency\fP tests while generating a high workload on the system.
 The default command that is executed to simulate workload (if no alternate command is specified with a \fB-W\fP \fIcommand\fP option) is:
@@ -34,6 +34,9 @@
 .SH OPTIONS
 These following options are specific to \fBxeno\-test\fP:
 .TP
+\fB\-v\fP
+Produces more verbose tests results.
+.TP
 \fB\-w\fP \fIworkloads\fP
 The number of workload commands to execute simultaneously. By default, this number is \fB1\fP.
 .TP
@@ -119,6 +122,9 @@
 .BR uname (1)
 .SH HISTORY
 .TP
+2006-04-21
+Updated to document the new -v option.
+.TP
 2006-04-19
 Updated to document the new -m and -M options.
 .TP
author
#4 lore raw

[Xenomai-core] Re: xeno-test updates [patch]

In reply to Jim Cromie
Quoted 4 lines · Jim Cromie

Ive started adding to xeno-test, as outlined previously (plus some)

<snipped>, except where noted

Quoted 2 lines

- now run cyclictest and switch, in addition to latency -t 0,1,2

cycletest now has decent options passed in.
I havent given any thought to exposing options thru xeno-test's command line.

Instead, Im thinking of adding statistics, ala latency.
for that, Im also pondering a new -g 100 option to group the tests for stats-calcs, ie given: -g 100 -l 1000 -v
it would compute statistics on 10 sets of 100 cycles, and report 10 lines. Again, this is notional, comments/feedback needed.

Quoted 1 line

- changed the prewired -m email-addy to [email protected]

email options now work w/o actually writing a file. Also changed default location of file writes to /tmp, they no longer get written to $PWD by default

added a -U <url>, completely untested, but mostly lifted from LiveCD This looks necessary, since
my hobby-box doesnt have a working mail setup
my laptop (and presumably yours) doesnt have a FQDN,
which pretty well precludes sending mail to anywhere useful.
(Id bet we could span the unwashed winbloze masses, but wheres
the sport in that ? ;-)

Quoted 4 lines

- now grep more config-items out of config (for non-verbose mode) latency-killers, PREEMPT, others ?

added items per RPMs email.

Im considering stripping the warning issued when CPU_FREQ ia xonfig'd
warning: CONFIG_CPU_FREQ=y may be problematic.
I have it in cuz nothing actually changes (can change) it, so its harmless. (I think) Its easier than making the list complete,
and the .config dump covers the reporting.

Quoted 4 lines

Dont apply yet, not tested recently.

Its reasonbly tested; we can shake out some more with some distributed testing (hint - try it !)

Heres some tests I ran, files got written..

./xeno-test -T 30 -l30 -m
./xeno-test -T 30 -l30
./xeno-test -T 30 -l30 -L
./xeno-test -T 30 -l30 -N foo
./xeno-test -T 30 -l30 -LN bar
./xeno-test -T 30 -l30 -LN buzz -m
./xeno-test -T 5 -l30 -L -m
./xeno-test -T 5 -l30 -N /tmp/box- -m
./xeno-test -T 5 -l30 -N ~/trucklab/ -w2 -W 'dd if=/dev/hda1 of=/dev/null'

Quoted 7 lines

Qs

- should I run boxstatus just after latency tests or b4 and after (as currently) ?

- /proc/xenomai/* contents are dynamic (ie run by boxstatus) ?

Quoted 7 lines

- any bits of boxinfo and boxstatus that should be shuffled around ?

- check NPTL availability (kinda overkill, since its absence when needed is already detected)

- anything else come to mind ?

these are still open, but not crtical.

I hope thats everything for now,
it needs a good shakedown, and I need a beer.

prepare-kernel.sh +1 -0
Index: scripts/prepare-kernel.sh
===================================================================
@@ -48,6 +48,7 @@
 patch_append() {
     file="$1"
     if test "x$output_patch" = "x"; then
+	chmod +w "$linux_tree/$file"
         cat >> "$linux_tree/$file"
     else
         if test `check_filter $file` = "ok"; then
xeno-test.in +101 -37

223 lines not on this page · raw message

#5 lore raw

Re: [Xenomai-core] Re: xeno-test updates [patch]

Quoted 10 lines · Jim Cromie
Quoted 4 lines · Jim Cromie

Ive started adding to xeno-test, as outlined previously (plus some)

<snipped>, except where noted

Quoted 2 lines

- now run cyclictest and switch, in addition to latency -t 0,1,2

Quoted 9 lines

cycletest now has decent options passed in.
I havent given any thought to exposing options thru xeno-test's command line.

Instead, Im thinking of adding statistics, ala latency.
for that, Im also pondering a new -g 100 option to group the tests for stats-calcs, ie given: -g 100 -l 1000 -v
it would compute statistics on 10 sets of 100 cycles, and report 10 lines. Again, this is notional, comments/feedback needed.

This would be mainly useful for running different test scenarii - i.e. one per cycle? - I guess. But then, would not we have problems interpreting the results, since different testcases might lead to unrelated data sets? IOW, how would we use such data sets?

Quoted 6 lines
Quoted 1 line

- changed the prewired -m email-addy to [email protected]

email options now work w/o actually writing a file. Also changed default location of file writes to /tmp, they no longer get written to $PWD by default

Nice for embedded setups.

Quoted 14 lines

added a -U <url>, completely untested, but mostly lifted from LiveCD This looks necessary, since
my hobby-box doesnt have a working mail setup
my laptop (and presumably yours) doesnt have a FQDN,
which pretty well precludes sending mail to anywhere useful.
(Id bet we could span the unwashed winbloze masses, but wheres
the sport in that ? ;-)

Quoted 4 lines

- now grep more config-items out of config (for non-verbose mode) latency-killers, PREEMPT, others ?

Quoted 8 lines

added items per RPMs email.

Im considering stripping the warning issued when CPU_FREQ ia xonfig'd
warning: CONFIG_CPU_FREQ=y may be problematic.
I have it in cuz nothing actually changes (can change) it, so its harmless. (I think) Its easier than making the list complete,
and the .config dump covers the reporting.

Sounds reasonable; in any case, .config would be analyzed in case of problem.

Quoted 8 lines
Quoted 4 lines

Dont apply yet, not tested recently.

Its reasonbly tested; we can shake out some more with some distributed testing (hint - try it !)

Merged, now. Thanks.

Quoted 26 lines

Heres some tests I ran, files got written..

./xeno-test -T 30 -l30 -m
./xeno-test -T 30 -l30
./xeno-test -T 30 -l30 -L
./xeno-test -T 30 -l30 -N foo
./xeno-test -T 30 -l30 -LN bar
./xeno-test -T 30 -l30 -LN buzz -m
./xeno-test -T 5 -l30 -L -m
./xeno-test -T 5 -l30 -N /tmp/box- -m
./xeno-test -T 5 -l30 -N ~/trucklab/ -w2 -W 'dd if=/dev/hda1 of=/dev/null'

Quoted 13 lines

Qs

- should I run boxstatus just after latency tests or b4 and after (as currently) ?

- /proc/xenomai/* contents are dynamic (ie run by boxstatus) ?

- any bits of boxinfo and boxstatus that should be shuffled around ?

- check NPTL availability (kinda overkill, since its absence when needed is already detected)

Quoted 6 lines
Quoted 1 line

- anything else come to mind ?

these are still open, but not crtical.

I think we will discover new stuff to add incrementally, after getting some practical experience on the automated data collection issue.

Quoted 4 lines

I hope thats everything for now,
it needs a good shakedown, and I need a beer.

Eh, I hope you had it by now, otherwise, you must be so damn thirsty... :o>

Signature · 1 line
Philippe.
#3 lore raw
In reply to Romain Lenglet
Quoted 17 lines · Romain Lenglet
Quoted 15 lines · Romain Lenglet
Quoted 2 lines · Jim Cromie

Ive started adding to xeno-test, as outlined previously (plus some)

[...]

Quoted 1 line

- -v flag gets whole config (from either source)

[...]

Quoted 1 line

Dont apply yet, not tested recently.

Quoted 10 lines
Quoted 4 lines

[...]

When this patch is applied, please also apply the attached patch to the manpage for the new -v option.

Oops. Sorry, I made a typo in the synopsis line.
Please apply this patch instead.

Applied, thanks.

Signature · 1 line
Philippe.
author
#6 lore raw

Re: [Xenomai-core] Re: xeno-test updates [patch]

In reply to Philippe Gerum
Quoted 5 lines · Philippe Gerum
Quoted 4 lines · Jim Cromie

cycletest now has decent options passed in.
I havent given any thought to exposing options thru xeno-test's command line.

Quoted 9 lines
Quoted 6 lines

Instead, Im thinking of adding statistics, ala latency.
for that, Im also pondering a new -g 100 option to group the tests for stats-calcs, ie given: -g 100 -l 1000 -v
it would compute statistics on 10 sets of 100 cycles, and report 10 lines. Again, this is notional, comments/feedback needed.

This would be mainly useful for running different test scenarii - i.e. one per cycle? - I guess. But then, would not we have problems interpreting the results, since different testcases might lead to unrelated data sets? IOW, how would we use such data sets?

Several observations led me to this idea.
- in normal mode, the prog rewrites the same display line over and over
it plays-back oddly when you more/cat the file.
- with -v, it prints successive lines, but less info per line (no avg)
which makes sense, since the avg is at the bottom.
- 1000 lines of output is a boat-load, each is individually uninteresting / almost same as others.

with latency, each line/second of the output contains the average of *many* samples 10,000 samples of 100uS measures IIRC, and the inner min,max,avg tell us about the high-frequency jitter,etc in the processes.
Then the multiple samples tell us something about the low-freq jitter. IOW, we get a glimpse into the ergodicity of the noise
(I say that, pretending I _understand_ ergodicity)

Whether it applies / makes sense here, Im not at all sure.

Quoted 6 lines
Quoted 3 lines

I hope thats everything for now,
it needs a good shakedown, and I need a beer.

Eh, I hope you had it by now, otherwise, you must be so damn thirsty... :o>

:-) Ya gotta try this - simple, but highly addictive. A sport we can *all* play.

http://www.wagenschenke.ch/site/homerun.htm

#7 lore raw

Re: [Xenomai-core] Re: xeno-test updates [patch]

Quoted 6 lines · Jim Cromie
Quoted 5 lines · Philippe Gerum
Quoted 3 lines · Jim Cromie

I hope thats everything for now,
it needs a good shakedown, and I need a beer.

Quoted 8 lines
Quoted 3 lines

Eh, I hope you had it by now, otherwise, you must be so damn thirsty... :o>

:-) Ya gotta try this - simple, but highly addictive. A sport we can *all* play.

http://www.wagenschenke.ch/site/homerun.htm

Great thread, absolutely brilliant link! Just forwarded to our stag night crew for preparing the next weekend appropriately (we are going to rock Hamburg with the "victim"). :o)

Jan

author
#8 lore raw

Re: [Xenomai-core] Re: xeno-test updates [patch]

Quoted 21 lines · Jan Kiszka
Quoted 8 lines · Jim Cromie
Quoted 6 lines · Philippe Gerum
Quoted 4 lines · Jim Cromie

I hope thats everything for now,
it needs a good shakedown, and I need a beer.

Quoted 10 lines
Quoted 4 lines

Eh, I hope you had it by now, otherwise, you must be so damn thirsty... :o>

:-) Ya gotta try this - simple, but highly addictive. A sport we can *all* play.

http://www.wagenschenke.ch/site/homerun.htm

Quoted 7 lines

Great thread, absolutely brilliant link! Just forwarded to our stag night crew for preparing the next weekend appropriately (we are going to rock Hamburg with the "victim"). :o)

Jan

I wanna party with you guys !