Skip to contentSkip to conversation

Partial roadmap

Xenomai-core Philippe Gerum 2 participants 4 messages Oct 14, 2005 – Nov 1, 2005

lore
Share & tools
lore
#0 lore raw

This is a partial roadmap for the project, composed of the currently undergoing efforts, and other developments which are already planned to start before Q2 2006. This roadmap will likely be complemented by other tasks over time, this is just a somewhat sketchy vision of the next major steps for which we do have an immediate plan and the resources to achieve them.

Issues related to the usual debugging and extension of existing features or skins are not covered here, Dmitry, Gilles, Jan and the Uni-Hannover crew are usually taking care of these depending on the code in question, with the help from other contributors; let's just consider those issues as implicit, usual business for now. In any case, the Xenomai-core list is open for discussing the matter and filling the gaps in the roadmap.

o Web site.

- Bruno is working on this. His basic idea of the contents is about being clear, simple and informational. Crafting a useful and lively site is something of a daunting and tireless task, so if you feel helping, just drop him a mail.
ETA: October 20 (initial version).

o Xenomai 2.0 release

ETA: October 22.

It's a bit early to define a timeframe for 2.1, we first need to wait for the feedback we get with 2.0. Between both releases, updates (2.0.1 and so on) will be made on a regular basis.

o Automated benchmarking.

- We are still considering the best way to do that; actually, my take is that we would just need to bootstrap the thing and flesh it out over time, writing one or two significant benchmark tests to start with, choosing a tool to plot the collected data and push the results to some web page for public consumption on a regular basis, but so far, we did not manage to spark this. It's still in the short-term plan, though, because we currently have neither metrics nor data to check for basics, and we deeply need both of them now.
ETA: Q4 2005.

o Build system revamping.

- In order to allow binding the Xenomai core statically to the Linux kernel while keeping the ability to have it as loadable modules, we would need to refactor a number of things in the existing build system. We are going to do exactely that, which should make the use of Xenomai in embedded setups more straightforward and efficient.
ETA: Q4 2005.

- Heikki has a plan to merge the ppc32 and ppc64 trees so that we would track the same refactoring effort than the PPC kernel folks are undertaking.
ETA: unspecified.

o Architecture ports.

- Analog Devices (http://www.analog.com/) have just offered the project two Blackfin boards (bf533 and bf537) running uClinux, so that we can first port Adeos over this architecture, then the Xenomai core of course.
ETA: Adeos port, Q4 2005. Xenomai port, Q1 2006.

- An ARM port is finally underway (yes, really, for sure, no kidding, I swear it!). For now, what we have is an almost working Adeos/I-pipe patch, on an Integrator CP board running an ARM1136 core. Stelian Pop will tell you more as the work progresses.
ETA: Q1 2006.

o Kernel ports.

- We are going to backport Xenomai over 2.4, initially targeting the PPC architecture. I do believe that Xenomai will progress faster by confronting itself to low-end hardware, which implies that we should also support the kernel architecture which is running most of such hardware, and will likely keep on doing so for a long time. For this task, we will make good use of the boards the Denx's people will give us access to. This task depends on the build system revamping to be achieved.
ETA: Q1 2006.

o Scalability.

- Gilles is going to work on improving the scalability of the timer management code, so that a large number of outstanding timers would be more efficiently supported. This is particularly important when it comes to port telecom-oriented applications from traditional RTOS to Xenomai: those applications could just create an insane number of concurrent timers the way they are usually implemented.
ETA: Q1 2006.

Signature · 1 line
Philippe.
#1 lore raw

[Xenomai-core] Benchmarking Plan [Was: Partial roadmap]

Quoted 6 lines · Philippe Gerum

This is a partial roadmap for the project, composed of the currently

o Web site.

Wiki ++ , eventually

Quoted 13 lines

o Automated benchmarking.

- We are still considering the best way to do that; actually, my take is that we would just need to bootstrap the thing and flesh it out over time, writing one or two significant benchmark tests to start with, choosing a tool to plot the collected data and push the results to some web page for public consumption on a regular basis, but so far, we did not manage to spark this. It's still in the short-term plan, though, because we currently have neither metrics nor data to check for basics, and we deeply need both of them now.
ETA: Q4 2005.

A Xenomai Automatic Benchmarking plan

Goal is to test xenomai performance so we know when something breaks, test it thoroughly enough that we can see / identify systematic, generic, or platform specific bottlenecks.

Benchmarking

wrt bootstrap approach; scripts/xeno-test already runs 2 of 3 testsuite/* tests, and collects the results along with useful platform data. If new testsuite/* stuff gets added, its trivial to call them from xeno-test.

Automatic

Automating the process is trickier than usual, due to need for cross-compile (in some situations), NFS root mounts for remote boxes, remote or scripted reboots, etc. Ive cobbled up a rube-goldberg arrangement, which is out-of-scope for this message, will discuss all that separately.

Characterization

RPM mentioned plotting, I take that to mean heavy use of graphs to characterize and ultimately to predict xenomai performance over a range of criteria, for any given platform.

LiveCD had the right idea wrt this - collecting platform info and performance data on any vanilla PC with a CD-ROM drive. And make this data available on a website, allowing users to compare their results with others done on similar platforms.

LiveCD has a few weaknesses though:

- cant test platforms w/o cdrom
- manual re-entry of data is tedious,
- no collection of platform data (available for automation)
- spotty info about cpu, memory, mobo, etc
- no unattended test (still true?)

These things could be readily fixed, but xeno-test already does everything but the data upload.

The real value of LiveCD was the collection of data across hundreds of different platforms, and its promise was that studying the data would reveal the secrets of better performance on any platform.

A Plan (sort of)

1. xeno-test currently (patch pending) executes following commands, and captures output in a reasonably parseable format; a set of chunks:

- uname -a
- cat /proc/config.gz if -f /proc/config.gz
- cat /proc/cpuinfo
- cat /proc/meminfo
- cat /proc/adeos/* foreach /proc/adeos/*
- cat /proc/ipipe/* foreach /proc/ipipe/*
- xeno-config --v
- xeno-info

The info captured is a fairly complete picture of the platform, it should support careful selection of data-sets for use in analysing, characterizing, and improving xenomai performance.

Several chunks are collected optionally, ex config.gz. Although each chunk has some cost (config.gz kernels are larger, kernels with /proc/ipipe/Linux_stats are slower), Id encourage you to build your kernels with this stuff enabled, as it enriches the data. Besides, with baseline data collected, you can then accurately demonstrate each config-tweak's performance effect, and put it in a nice graph.

also need these:
- xenomai svn revision-level, perhaps as part of xeno-info,config ?
- what else ? Anything added now is info-opportunity later
- testsuite/cruncher ?

2. send your results to xenomai.testout-at-gmail.com

Please run xeno-test, attach the resulting file(s), and send it to above address. This collects data now, we can decide where to host it when website is up. Obviously, an official gna.org ML might be more appropriate.

# run something like this
xeno-test -T300 -sh -w2 -L -N ~/xenotest-outputs/foo

xeno-test will write all test output to a file:
~/xenotest-outputs/foo-$timestamp. The timestamp gives unique-ness, and you can choose which files 'look right' after inspecting several trial-runs

FWIW - I could poach LiveCD code to upload to LiveCD site. That might be handy if it doesnt break the process that populates the data onto the web-page (which must parse for the data).

3. mail handler

Ive previously written a mail-bot to do poll a pop-mbox, and collect attachments. I just need to dredge it out or rewrite it. Once I do, I'll just run it on that inbox to collect your results. Eventually, the data will be uploaded somewhere for everyone to peruse.

If we go with a xenotest-results-at-gna.org, I can just subscribe my new acct to the new list :-)

4. xeno-test output parser

Ive written a parser to chop the formatted output into chunks, and then parse some of those chunks into hashes. Soon Ill define some matching db-tables for the (well mannered) data

'well mannered' means lots of limitations atm;

- /proc/ipipe/Linux-stats parse into pairs of IRQ => CPU0 prop-times
- such data is only comparable across kernels with eq IRQ maps
- currently wont handle CPU1, SMP data
- /proc/interrupts is slightly better parsed.
- no detail-parse at all for top-data, needed?

prototype only, but its hackable (perl), and Im happy to graft all sorts of horrible experiments on it provisionally to see whats useful. Hopefully a plugin refactoring will become obvious wo too much work.

5. Data-Base

The data extracted above needs to be written to a database, perhaps in multiple, increasingly cooked, redundant forms. Point is, we can do it incrementally, a chunk at a time.

- store chunks as raw-text, along w indexing
- write a query to replicate full-report text from the chunks
- many chunk-types have table designed to match
- some chunk-types insert 1 row into chunk-typeX-table, others 2+
- latency-data has lots of data
--- raw interval data (min, avg, max, ovfl)
--- histograms of data (for min, avg, max)
- chunk-types index VS md5(raw-text)
-- ok: uname - semi-regular, (various kernel suffixes)
-- ok: /prc/cpuinfo - almost (fuzz on mhz, bogomips)
-- no: /proc/config.gz - contains arbitrary date, reveals no commonality

At first, I dont plan on much data-normalization, indexification. Id like to be able to later go back, and 'histogram' each field; many will have a discrete set of values (ex: config setting of CONFIG_PREEMPT, presense of /proc/ipipe/Linux_stats, etc)

makefile-esque production semantics would be useful here, esp as a cross-check against same implemented in the DB.

6. Plotting

The best use of any collected data is to graph it many different ways, and so to understand it. Gnuplot is a clear choice for this. (maybe Octave?)

Biggest issue is preparing data for gnuplot, which seems to want files of space/tab-separated data. We'll have to provide some db-extract mechanism (or direct from file-set, using parser+plugin) to select the right data for each plot, format it accordingly, and run the plot.

Ive yet to try to plot anything from my collected files, so I dont have real insight into the issues/difficulties. But heres a few hastily-concieved examples:

judging the data-set itself:

- select count(*) from .. where X group.by Y
- see dist of samples across Y
- identify strongly bucketized vars
- ex:
-- how many of each cpuinfo.model-name ? (expect finite set)
-- how many of each cpuinfo.cpu-mhz foreach above ? (1..dozen foreach model) -- how many old cpuinfo.steppings ? (curiosity)
--- select count(*)
--- group by cpuinfo.model_name
--- having count(cpuinfo.stepping) > 1

looking for performance factors:

- correlations (outputs vs inputs/features)
- boolean features should correlate strongly if related
- multi-val features too
- ex:
-- max-latency vs bogo-mips foreach arch/cpu-type

- histograms of correlated variables (as idenfified above) -- display for hints wrt causes

- for variables/fields with certian value-distributions,
-- group-by those fields
-- plot, and look for clustering
-- when kernel.config.PREEMPT becomes a queryable-field, analysis flows --- =PREEMPT_NONE, =PREEMPT_RT, etc... with

- curve fitting vs data subsets
-- posit: latency is-inverse-to bogo-mips
-- hypothesize: latency * bogo-mips == quality-metric-weak -- graph it, per cputype
-- select different subsets of cputype
--- x86, 586 +/- TSC, MMX, GENERIC, etc..
--- does spread narrow as subset is narrowed ?

GOALS - MILESTONES

0. that which is measured, is quantitatively improved (fact, not goal)

1. rich, automatically collected data makes it possible to compare data from different people.

Most of us are stuck with 1 platform, so its difficult to find out what effects clock-rate has on latency, for a given platform. IOW, what is the "latency vs clock-rate" (Lat-v-clk)

With pooled data, for common PC platforms at least (ex p4, k8), we can collect a large pool of data, enough to make predictions about Lat-v-clk. Graphs are encouraged.

2. Repeat for Lat = f(clk-rate, mem-size) over (select ..) Plot as elevation-map

3. Somebody hacks the cpufreq clock-control, and reruns the test on a progressively throttled cpu. This represents a (more) highly controlled study, and comes with lots of pretty graph jpegs showing the effect clearly. This becomes pseudo-reference data.

4. Somebody examines predictions against ref3-data. Start actually doing the analysis that I handwaved in L<Plotting>

5. Others start to repeat earlier experiments, attempting to replicate the results. Where differences persist, they collaborate to distinguish the reasons. We improve our understanding of the tests, and the processes around them.

6. people explore xeno-test options.

They run batteries of tests while varying -options, and create many graphs which illustrate various performances:

- what happens when sampling period shrinks towards the max-latency seen in the previous test-run ? Does xenomai panic, muddle on, error-out, give proper warning, etc ??

- whats the histogram look like when number of buckets is greatly increased ? Does it start to look like a comb with lots of broken teeth ? Can it be adequately smoothed by a plotting function ?

- what kind of results can you get from using -W "$command $args" with the wide range of benchmark tests (which themselves serve as a workload).

7. people hack parse-testout.pl.

Each person in 6 should consider hacking the chunk-specific text processing into parse-testout.pl. I'll look for a workable plug-in scheme to simplify & extend how and what can be done. We get use-cases at least, maybe bits of automation, and probably a workable alpha version. (Ill try this at some point)

8. Patterns of analysis emerge, and develop into a "howto gnuplot your xenotest-perfdata". With these, we better understand what the automation must do.

Presumably this is gnuplot centric; we start with a gnuplot script, and template/parametrize it. With it, some plugin code to prep the data-files to produce plots.

This is also where Im most uncertain how things will look.

9. workable plotting automation ?

10. Growing sample-set attracts study

Growth of a quality-assessable dataset, and workable automation (9) lures hackers to madly correlate performance numbers against possible causal factors. Much of this is likely in x86 data, since platform is so widely available.

11. somebody rewrites xeno-test

Its currently in bash, and (prolly) uses constructs that wont work on busybox. It also has some bugs in workload management.

12. and I want a pony.

NOTES

theres a difference between benchmarks and tests, and Ive munged things already by saying test until now. But calling everything a benchmark is just as clumsy.

Tests are things that can pass or fail, good ones give an indication of what broke. Ideally, a test demonstrates that a bug exists, and that the patch it was submitted with fixes that bug. Then the test gets added to the regression-test framework that uses them to guard against breakage. (hey - I said ideally).

Turning benchmark tests into regression tests is easy - once we know how a given platform *should* perform. Obviously, thats the goal stated at the top.

COMMENTS ?

Lets pretend that we're developing content for a wiki ;-)

Im accepting 2 kinds of comments

- those where you change the subject
- the rest ;-)

Im making the inference that if you change the message-subject;

- you think the topic is a proto-wiki-node (not necessarily a page)
- youre keeping the message on that topic
- youre actively adapting subjects on such threads that you participate in -- we strike balance on node-growth rate (is there a just right ?)

if you dont change subject,
- above rules dont apply, stream of conciousness is fine.
- or youre adding to / correcting the previous 'wiki-node'

I dont prefer either kind of post a-priori; this is an experiment in social/community self-organization on an ML. Its not supposed to be laborious. Lets see what happens.

tia
jimc

#2 lore raw

[Xenomai-core] Re: Benchmarking Plan

Hi Jim,

Quoted 7 lines · Jim Cromie
Quoted 2 lines · Philippe Gerum

This is a partial roadmap for the project, composed of the currently

Ah! I just _knew_ you would jump in as expected. The teasing worked :o)

Quoted 4 lines
Quoted 2 lines

o Web site.

Wiki ++ , eventually

Yes, separate issue to deal with Bruno and anyone who has some thoughts about how to efficiently help people using Xeno, especially newcomers.

Quoted 17 lines
Quoted 13 lines

o Automated benchmarking.

- We are still considering the best way to do that; actually, my take is that we would just need to bootstrap the thing and flesh it out over time, writing one or two significant benchmark tests to start with, choosing a tool to plot the collected data and push the results to some web page for public consumption on a regular basis, but so far, we did not manage to spark this. It's still in the short-term plan, though, because we currently have neither metrics nor data to check for basics, and we deeply need both of them now.
ETA: Q4 2005.

Quoted 7 lines

A Xenomai Automatic Benchmarking plan

Goal is to test xenomai performance so we know when something breaks, test it thoroughly enough that we can see / identify systematic, generic, or platform specific bottlenecks.

Yes; as a corollary, a tool to routinely, better and earlier check whether we are on the good track or not regarding core updates without having to wait for a blatant breakage to send us the wake up call.

Quoted 6 lines

Benchmarking

wrt bootstrap approach; scripts/xeno-test already runs 2 of 3 testsuite/* tests, and collects the results along with useful platform data. If new testsuite/* stuff gets added, its trivial to call them from xeno-test.

Indeed; xeno-test has always been meant to provide a simple client-side tool available from regular Xenomai distros for running tests/benchmarks that could be extended over time. The idea underlying this being that giving people easy means to send us the test data output by plain simple standard stuff they find in their Xeno distro is way more efficient than asking them to connect to some site and download specialized tools to do that. The extra middle step is often the one too many that kills the initial incentive to help.

Quoted 9 lines

Automatic

Automating the process is trickier than usual, due to need for cross-compile (in some situations), NFS root mounts for remote boxes, remote or scripted reboots, etc. Ive cobbled up a rube-goldberg arrangement, which is out-of-scope for this message, will discuss all that separately.

Quoted 6 lines

Characterization

RPM mentioned plotting, I take that to mean heavy use of graphs to characterize and ultimately to predict xenomai performance over a range of criteria, for any given platform.

At least characterize the current state, yes.

Quoted 8 lines

LiveCD had the right idea wrt this - collecting platform info and performance data on any vanilla PC with a CD-ROM drive. And make this data available on a website, allowing users to compare their results with others done on similar platforms.

LiveCD has a few weaknesses though:

- cant test platforms w/o cdrom

I also think that's a serious issue. Aside of the hw availability problem (e.g. non-x86 eval boards), having to burn the CD is one step too many when time is a scarce resource. It often prevents to run it as a fast check procedure even in the absence of any noticeable problem. IOW, you won't burn a CD to run the tests unless you are really stuck with some issue. So a significant part of the interest of having a generic testsuite is lost: you just don't discover potential problems before the serious breakage is already in the wild.

Quoted 4 lines

- manual re-entry of data is tedious,
- no collection of platform data (available for automation)
- spotty info about cpu, memory, mobo, etc
- no unattended test (still true?)

- unfiltered preposterous data. Sometimes, data sent are just rubbish because of well-known hw-related dysfunctioning or misuse of the LiveCD. This perturbates the results uselessly.

- difficulties so far to really get a sensible digested information out of the zillions of results, aside of very general figures (e.g. best performer). But this is more an issue of lack of data post-processors than of the LiveCD infrastructure itself.

Quoted 8 lines

These things could be readily fixed, but xeno-test already does everything but the data upload.

The real value of LiveCD was the collection of data across hundreds of different platforms, and its promise was that studying the data would reveal the secrets of better performance on any platform.

Additionally, LiveCD is a really great tool when it comes to help people figuring out whether their respective box or brain have a problem with the tested software, i.e. by automatically providing a sane software (kernel+rtos) configuration and the proper way to run it quite easily, a number of people could determine if their current lack of luck comes from their software configuration, or rather from a more serious problem.

Quoted 6 lines

A Plan (sort of)

1. xeno-test currently (patch pending) executes following commands, and captures output in a reasonably parseable format; a set of chunks:

[snip]

Quoted 2 lines

also need these:
- xenomai svn revision-level, perhaps as part of xeno-info,config ?

Ok, Gilles is handling this.

Quoted 3 lines

- what else ? Anything added now is info-opportunity later
- testsuite/cruncher ?

The cruncher measures the impact of using the interrupt shield, but this setting is now configured out by default since a majority of people don't currently need it. Shield cost/performances are still useful to know though.

Quoted 7 lines

2. send your results to xenomai.testout-at-gmail.com

Please run xeno-test, attach the resulting file(s), and send it to above address. This collects data now, we can decide where to host it when website is up. Obviously, an official gna.org ML might be more appropriate.

Will appear soon.

Quoted 12 lines
# run something like this
xeno-test -T300 -sh -w2 -L -N ~/xenotest-outputs/foo

xeno-test will write all test output to a file:
~/xenotest-outputs/foo-$timestamp. The timestamp gives unique-ness, and you can choose which files 'look right' after inspecting several trial-runs

FWIW - I could poach LiveCD code to upload to LiveCD site. That might be handy if it doesnt break the process that populates the data onto the web-page (which must parse for the data).

As said before, the problem that currently exists with LiveCD's data, is that the results are cripled with irrelevant stuff, either because some people just tried it out over a simulator (ahem...), or had a serious hw-generated latency issue that basically made the whole run useless (mostly x86 issues: e.g. SMI stuff, legacy USB emulation, powermgmt, cpufreq artefacts etc.).

Quoted 16 lines

3. mail handler

Ive previously written a mail-bot to do poll a pop-mbox, and collect attachments. I just need to dredge it out or rewrite it. Once I do, I'll just run it on that inbox to collect your results. Eventually, the data will be uploaded somewhere for everyone to peruse.

If we go with a xenotest-results-at-gna.org, I can just subscribe my new acct to the new list :-)

4. xeno-test output parser

Ive written a parser to chop the formatted output into chunks, and then parse some of those chunks into hashes. Soon Ill define some matching db-tables for the (well mannered) data

Quoted 8 lines

'well mannered' means lots of limitations atm;

- /proc/ipipe/Linux-stats parse into pairs of IRQ => CPU0 prop-times
- such data is only comparable across kernels with eq IRQ maps
- currently wont handle CPU1, SMP data
- /proc/interrupts is slightly better parsed.
- no detail-parse at all for top-data, needed?

I'm not sure that per-process data would help, just because those are way too volatile and fragmented to be interpreted rationally over a long test period; maybe using per-subsystem data (e.g. /proc/sys crowd) at some point in time would better help.

Quoted 4 lines

prototype only, but its hackable (perl), and Im happy to graft all sorts of horrible experiments on it provisionally to see whats useful. Hopefully a plugin refactoring will become obvious wo too much work.

Warning people: JimC belongs to some kind of hybridization between a Perl Monger and a Real-timer; and the resulting entity is about to go wild... :o>

Quoted 19 lines

5. Data-Base

The data extracted above needs to be written to a database, perhaps in multiple, increasingly cooked, redundant forms. Point is, we can do it incrementally, a chunk at a time.

- store chunks as raw-text, along w indexing
- write a query to replicate full-report text from the chunks
- many chunk-types have table designed to match
- some chunk-types insert 1 row into chunk-typeX-table, others 2+
- latency-data has lots of data
--- raw interval data (min, avg, max, ovfl)
--- histograms of data (for min, avg, max)
- chunk-types index VS md5(raw-text)
-- ok: uname - semi-regular, (various kernel suffixes)
-- ok: /prc/cpuinfo - almost (fuzz on mhz, bogomips)
-- no: /proc/config.gz - contains arbitrary date, reveals no commonality

Quoted 8 lines

At first, I dont plan on much data-normalization, indexification. Id like to be able to later go back, and 'histogram' each field; many will have a discrete set of values (ex: config setting of CONFIG_PREEMPT, presense of /proc/ipipe/Linux_stats, etc)

makefile-esque production semantics would be useful here, esp as a cross-check against same implemented in the DB.

Generally speaking, I guess that your idea is to collect sensible raw data first, and devise how to process combiantions of them later. Sounds ok for me, and I especially like the idea of providing a specialized ML for that which would be processed by a bot', since anyone would have unlimited access to the data, which might trigger some incentive for anyone to craft other/better digested figures.

Quoted 7 lines

6. Plotting

The best use of any collected data is to graph it many different ways, and so to understand it. Gnuplot is a clear choice for this. (maybe Octave?)

No idea. I'll come back discussing this issue when I'm older...

Quoted 40 lines

Biggest issue is preparing data for gnuplot, which seems to want files of space/tab-separated data. We'll have to provide some db-extract mechanism (or direct from file-set, using parser+plugin) to select the right data for each plot, format it accordingly, and run the plot.

Ive yet to try to plot anything from my collected files, so I dont have real insight into the issues/difficulties. But heres a few hastily-concieved examples:

judging the data-set itself:

- select count(*) from .. where X group.by Y
- see dist of samples across Y
- identify strongly bucketized vars
- ex:
-- how many of each cpuinfo.model-name ? (expect finite set) -- how many of each cpuinfo.cpu-mhz foreach above ? (1..dozen foreach model)
-- how many old cpuinfo.steppings ? (curiosity)
--- select count(*)
--- group by cpuinfo.model_name
--- having count(cpuinfo.stepping) > 1

looking for performance factors:

- correlations (outputs vs inputs/features)
- boolean features should correlate strongly if related
- multi-val features too
- ex:
-- max-latency vs bogo-mips foreach arch/cpu-type

- histograms of correlated variables (as idenfified above) -- display for hints wrt causes

- for variables/fields with certian value-distributions,
-- group-by those fields
-- plot, and look for clustering
-- when kernel.config.PREEMPT becomes a queryable-field, analysis flows --- =PREEMPT_NONE, =PREEMPT_RT, etc... with

Quoted 8 lines

- curve fitting vs data subsets
-- posit: latency is-inverse-to bogo-mips
-- hypothesize: latency * bogo-mips == quality-metric-weak -- graph it, per cputype
-- select different subsets of cputype
--- x86, 586 +/- TSC, MMX, GENERIC, etc..
--- does spread narrow as subset is narrowed ?

We should make sure to not base all the reasoning on a lo latency / hi cpufreq correlation: this just happens to be wrong, especially x86-wise. Actually, a lot of recent x86 platforms with insanely high CPU freqs are really out of luck when it comes to perform decently in real-time mode, just because the trend of "optimization" is just about killing any determinism one would expect from his hw, by various ugly tricks often aimed at making gamers happy.

Quoted 97 lines

GOALS - MILESTONES

0. that which is measured, is quantitatively improved (fact, not goal)

1. rich, automatically collected data makes it possible to compare data from different people.

Most of us are stuck with 1 platform, so its difficult to find out what effects clock-rate has on latency, for a given platform. IOW, what is the "latency vs clock-rate" (Lat-v-clk)

With pooled data, for common PC platforms at least (ex p4, k8), we can collect a large pool of data, enough to make predictions about Lat-v-clk. Graphs are encouraged.

2. Repeat for Lat = f(clk-rate, mem-size) over (select ..) Plot as elevation-map

3. Somebody hacks the cpufreq clock-control, and reruns the test on a progressively throttled cpu. This represents a (more) highly controlled study, and comes with lots of pretty graph jpegs showing the effect clearly. This becomes pseudo-reference data.

4. Somebody examines predictions against ref3-data. Start actually doing the analysis that I handwaved in L<Plotting>

5. Others start to repeat earlier experiments, attempting to replicate the results. Where differences persist, they collaborate to distinguish the reasons. We improve our understanding of the tests, and the processes around them.

6. people explore xeno-test options.

They run batteries of tests while varying -options, and create many graphs which illustrate various performances:

- what happens when sampling period shrinks towards the max-latency seen in the previous test-run ? Does xenomai panic, muddle on, error-out, give proper warning, etc ??

- whats the histogram look like when number of buckets is greatly increased ? Does it start to look like a comb with lots of broken teeth ? Can it be adequately smoothed by a plotting function ?

- what kind of results can you get from using -W "$command $args" with the wide range of benchmark tests (which themselves serve as a workload).

7. people hack parse-testout.pl.

Each person in 6 should consider hacking the chunk-specific text processing into parse-testout.pl. I'll look for a workable plug-in scheme to simplify & extend how and what can be done. We get use-cases at least, maybe bits of automation, and probably a workable alpha version. (Ill try this at some point)

8. Patterns of analysis emerge, and develop into a "howto gnuplot your xenotest-perfdata". With these, we better understand what the automation must do.

Presumably this is gnuplot centric; we start with a gnuplot script, and template/parametrize it. With it, some plugin code to prep the data-files to produce plots.

This is also where Im most uncertain how things will look.

9. workable plotting automation ?

10. Growing sample-set attracts study

Growth of a quality-assessable dataset, and workable automation (9) lures hackers to madly correlate performance numbers against possible causal factors. Much of this is likely in x86 data, since platform is so widely available.

11. somebody rewrites xeno-test

Its currently in bash, and (prolly) uses constructs that wont work on busybox. It also has some bugs in workload management.

12. and I want a pony.

NOTES

theres a difference between benchmarks and tests, and Ive munged things already by saying test until now. But calling everything a benchmark is just as clumsy.

Tests are things that can pass or fail, good ones give an indication of what broke. Ideally, a test demonstrates that a bug exists, and that the patch it was submitted with fixes that bug. Then the test gets added to the regression-test framework that uses them to guard against breakage. (hey - I said ideally).

Quoted 4 lines

Turning benchmark tests into regression tests is easy - once we know how a given platform *should* perform. Obviously, thats the goal stated at the top.

I understand "the plan behind the plan" to be able to somehow predict that some particular sw / hw combo would work and help people figuring out which platform they might want to build their RT solution over using Xeno, and it would be quite an achievement to do that.

For the time being though, I'd suggest that we focus on gathering raw data and digest them according to a few simple metrics first; I'm pretty sure that once a sane and simple infrastructure to do that is in place, we should be able to flesh out the available results. As usual, the key issue is to make such process of producing and using this data becoming a routine; once people get used to something, they tend to improve it quite naturally.

Quoted 31 lines

COMMENTS ?

Lets pretend that we're developing content for a wiki ;-)

Im accepting 2 kinds of comments

- those where you change the subject
- the rest ;-)

Im making the inference that if you change the message-subject;

- you think the topic is a proto-wiki-node (not necessarily a page)
- youre keeping the message on that topic
- youre actively adapting subjects on such threads that you participate in -- we strike balance on node-growth rate (is there a just right ?)

if you dont change subject,
- above rules dont apply, stream of conciousness is fine.
- or youre adding to / correcting the previous 'wiki-node'

I dont prefer either kind of post a-priori; this is an experiment in social/community self-organization on an ML. Its not supposed to be laborious. Lets see what happens.

tia
jimc

Signature · 1 line
Philippe.
#3 lore raw

[Xenomai-core] Re: Benchmarking Plan

Quoted 5 lines · Philippe Gerum
Quoted 3 lines
Quoted 2 lines

This is a partial roadmap for the project, composed of the currently

Ah! I just _knew_ you would jump in as expected. The teasing worked :o)

well done ! Its the mark of a great leader to get folks to do what he wants,
while making them think its their idea ;-)

(and I imagine thats why you ccd Takis too :-)

[lots of snippage, thruout]

Quoted 8 lines
Quoted 4 lines

LiveCD has a few weaknesses though:

- cant test platforms w/o cdrom

I also think that's a serious issue. Aside of the hw availability problem (e.g. non-x86 eval boards), having to burn the CD is one step too many when time is a scarce resource. It often prevents to run it as a fast check procedure even in the absence of any noticeable problem. IOW, you won't burn a CD to run the tests unless you are really stuck with some issue. So a significant part of the interest of having a generic testsuite is lost: you just don't discover potential problems before the serious breakage is already in the wild.

One thing that would help expand LiveCD's usefullness is to be able to :

- mount pirt.iso in loopback on a host (my laptop),
- export it via NFS to box-under-test,
- use pxelinux to feed LiveCD's kernel(s?) to box when it boots.

I tried to do this, and IIRC ran into trouble with absolute symlinks
from /etc.ro to /etc. The absoluteness fouls things when the ISO
is mounted on forex: /media/cd.

I poked a bit at trying to convince NFS to resolve them as if they were used within a chroot jail, but I dont know enough about that.

Quoted 4 lines
Quoted 3 lines

- manual re-entry of data is tedious,
- no collection of platform data (available for automation)
- spotty info about cpu, memory, mobo, etc

which is largely user-supplied, so it can be wrong.

Quoted 6 lines
Quoted 1 line

- no unattended test (still true?)

- unfiltered preposterous data. Sometimes, data sent are just rubbish
because of well-known hw-related dysfunctioning or misuse of the LiveCD. This perturbates the results uselessly.

Any ideas on how to reject these outliers ? (defer til we have statistical analysis in place ?)

Quoted 3 lines

- difficulties so far to really get a sensible digested information
out of the zillions of results, aside of very general figures (e.g. best performer). But this is more an issue of lack of data post-processors than of the LiveCD infrastructure itself.

yep. And we *need* platform data to start to categorize them by platform, important config choices, etc. We should see narrower ranges of results, and be more able to reject the junk.

<snip>

Quoted 2 lines

Additionally, LiveCD is a really great tool when it comes to help people figuring out whether their respective box or brain have a problem with the tested software, i.e. by automatically providing a sane software (kernel+rtos) configuration and the proper way to run it quite easily, a number of people could determine if their current lack of luck comes from their software configuration, or rather from a more serious problem.

yeah. pre-built world saves a lot of early thrashing.

Quoted 5 lines
Quoted 2 lines

- testsuite/cruncher ?

The cruncher measures the impact of using the interrupt shield, but this setting is now configured out by default since a majority of people don't currently need it. Shield cost/performances are still useful to know though.

OK. adding 1 call to cruncher is simple. Over time we *may* collect enough data to
make some A (shields up!) vs B (shields down!) comparisons. But I dont see the data to distinguish A, B - dont we need the xeno/ipipe equivalent of /proc/config.gz to do this ?

wrt testsuite/README cruncher notes, is this useful info ?

(manual insmods here...)

soekris:/usr/realtime/2.6.14-ski9-v1/testsuite/cruncher# cruncher
Calibrating cruncher...11773, done -- ideal computation time = 10023 us.
1000 samples, 1000 hz freq (pid=4183, policy=SCHED_FIFO, prio=99)
--------
Nanosleep jitter: min = 60 us, max = 192 us, avg = 77 us
Execution jitter: min = 39 us (0%), max = 72 us (0%), avg = 51 us (0%)
--------
Segmentation fault
soekris:/usr/realtime/2.6.14-ski9-v1/testsuite/cruncher# run
*
*
* Type ^C to stop this application.
*
*
Calibrating cruncher...11769, done -- ideal computation time = 10018 us.
1000 samples, 1000 hz freq (pid=4260, policy=SCHED_FIFO, prio=99)
--------
Nanosleep jitter: min = 62 us, max = 195 us, avg = 79 us
Execution jitter: min = 46 us (0%), max = 77 us (0%), avg = 57 us (0%)
--------
Quoted 5 lines
Quoted 3 lines

2. send your results to xenomai.testout-at-gmail.com Obviously, an official gna.org ML might be more appropriate.

Will appear soon.

should this wait til xeno-test is upgraded to produce good data ? ie prevent early bogus data from being submitted.

<snip>

Quoted 2 lines

As said before, the problem that currently exists with LiveCD's data, is that the results are cripled with irrelevant stuff, either because some people just tried it out over a simulator (ahem...), or had a serious hw-generated latency issue that basically made the whole run useless (mostly x86 issues: e.g. SMI stuff, legacy USB emulation, powermgmt, cpufreq artefacts etc.).

I added a few /proc/config.gz related checks for CPU-FREQ, X86-GENERIC, can you suggest additional checks ?

Quoted 15 lines
Quoted 9 lines

4. xeno-test output parser

- /proc/ipipe/Linux-stats parse into pairs of IRQ => CPU0 prop-times
- such data is only comparable across kernels with eq IRQ maps
- currently wont handle CPU1, SMP data
- /proc/interrupts is slightly better parsed.
- no detail-parse at all for top-data, needed?

I'm not sure that per-process data would help, just because those are way too volatile and fragmented to be interpreted rationally over a long test period; maybe using per-subsystem data (e.g. /proc/sys crowd) at some point in time would better help.

Quoted 7 lines
Quoted 4 lines

prototype only, but its hackable (perl), and Im happy to graft all sorts of horrible experiments on it provisionally to see whats useful. Hopefully a plugin refactoring will become obvious wo too much work.

Warning people: JimC belongs to some kind of hybridization between a Perl Monger and a Real-timer; and the resulting entity is about to go wild... :o>

go off the deep end ? into shark infested waters ?

Quoted 3 lines

Generally speaking, I guess that your idea is to collect sensible raw data first, and devise how to process combiantions of them later. Sounds ok for me, and I especially like the idea of providing a specialized ML for that which would be processed by a bot', since anyone would have unlimited access to the data, which might trigger some incentive for anyone to craft other/better digested figures.

yup. inspired by LiveCD, and your reaction to it.

Quoted 3 lines

We should make sure to not base all the reasoning on a lo latency / hi cpufreq correlation: this just happens to be wrong, especially x86-wise. Actually, a lot of recent x86 platforms with insanely high CPU freqs are really out of luck when it comes to perform decently in real-time mode, just because the trend of "optimization" is just about killing any determinism one would expect from his hw, by various ugly tricks often aimed at making gamers happy.

pentium 4's 31 stage instruction-processing pipeline ? :-O

Im not suggesting its a good measure, but that it would make an interesting graph. latency vs mhz, with data-points colored per the CPU type.
K6 - navy-blue, K7-royal-blue, K8- sky-blue, P2 - lime-green, P3 - mint-green, P4 - forest green

Quoted 4 lines

I understand "the plan behind the plan" to be able to somehow predict that some particular sw / hw combo would work and help people figuring out which platform they might want to build their RT solution over using Xeno, and it would be quite an achievement to do that.

For the time being though, I'd suggest that we focus on gathering raw data and digest them according to a few simple metrics first; I'm pretty sure that once a sane and simple infrastructure to do that is in place, we should be able to flesh out the available results. As usual, the key issue is to make such process of producing and using this data becoming a routine; once people get used to something, they tend to improve it quite naturally.

agreed. Its all blue-sky dreaming atm, and subject to ongoing reality checks, and ongoing discussion ( in little trickles )

jimc