Re: [Xenomai-core] Re: Test, benchmark

2006-08-19 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > list="a,b,c,d" > for option in `echo $list|sed -e's/,/\n/g'`; do > case $option in > a) > do_this > ;; > b) > do_that > ;; > ... > esac > done What about: save_ifs="$IFS" IFS=, for option

[Xenomai-core] Re: Test, benchmark

2006-08-19 Thread Jan Kiszka
Jim Cromie wrote: > Jan Kiszka wrote: >> Jim Cromie wrote: >> >>> ... >>> just responding to small part now.. >>> >>> this patch adds switchtest, switchbench (and drops switch) and irqbench. >>> >>> each test-prog has a corresponding $XENOT_ >>> with which you can inject new test arguments indivi

Re: [Xenomai-core] Re: Test, benchmark

2006-08-18 Thread Gilles Chanteperdrix
Jim Cromie wrote: > 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... Patch applied without -n, thanks. --

Re: [Xenomai-core] Re: Test, benchmark

2006-08-18 Thread Gilles Chanteperdrix
Jim Cromie wrote: > Offhand, that seems counterintuitive that -n gives lower growth-rate of > total switches, > since its equivalent to a shorter list of 'threadspec's In addition to the threads specified by the 'threadspec's list, switchtest create a thread (named sleeper) that sleep 10 ms ev

[Xenomai-core] Re: Test, benchmark

2006-08-18 Thread Jim Cromie
Jan Kiszka wrote: Jim Cromie wrote: ... just responding to small part now.. this patch adds switchtest, switchbench (and drops switch) and irqbench. each test-prog has a corresponding $XENOT_ with which you can inject new test arguments individually. Most of these can be undef'd, except for

Re: [Xenomai-core] Re: Test, benchmark

2006-08-18 Thread Jan Kiszka
Jim Cromie wrote: > ... > 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' l

Re: [Xenomai-core] Re: Test, benchmark

2006-08-18 Thread Jim Cromie
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 s

[Xenomai-core] Re: Test, benchmark

2006-08-18 Thread Jan Kiszka
Jim Cromie wrote: > ... > just responding to small part now.. > > this patch adds switchtest, switchbench (and drops switch) and irqbench. > > each test-prog has a corresponding $XENOT_ > with which you can inject new test arguments individually. > Most of these can be undef'd, except for XENOT_I

Re: [Xenomai-core] Re: Test, benchmark

2006-08-18 Thread Gilles Chanteperdrix
Gilles Chanteperdrix wrote: > 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. s/cpu/FPU/ -- Gille

Re: [Xenomai-core] Re: Test, benchmark

2006-08-18 Thread Gilles Chanteperdrix
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 cont

[Xenomai-core] Re: Test, benchmark

2006-08-18 Thread Jim Cromie
Jan Kiszka wrote: Hi all, Jim raised these issues nicely to a generic level. I would like to pick it up and add some thoughts. Jim Cromie wrote: ... FWIW, I noted that xeno-test is not running these: - switchbench - switchtest - irqbench Im not sure they belong in xeno-test though, since t

[Xenomai-core] Re: Test, benchmark, demo frameworks

2006-08-16 Thread Jan Kiszka
Jim Cromie wrote: > Jan Kiszka wrote: >> ... >> So, how to proceed? >> > wiki++ > > 1 file at a time - I suppose.. > > I'll start by poaching Hannes' Makefile, bundling it into an examples/ > dir with > my 3-way version of his timer programs. Id like see the target files > appear as 0 len f

[Xenomai-core] Re: Test, benchmark, demo frameworks

2006-08-11 Thread Jim Cromie
Jan Kiszka wrote: Hi all, Jim raised these issues nicely to a generic level. I would like to pick it up and add some thoughts. Jim Cromie wrote: ... FWIW, I noted that xeno-test is not running these: - switchbench - switchtest - irqbench Im not sure they belong in xeno-test though, since t