All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: "M. Koehrer" <mathias_koehrer@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: Re: [Xenomai-help] Results of xenomai's latency test vs. RTAI's
Date: Mon, 30 Oct 2006 15:40:40 +0100	[thread overview]
Message-ID: <1162219241.5188.21.camel@domain.hid> (raw)
In-Reply-To: <16802252.1162217706570.JavaMail.ngmail@domain.hid>

On Mon, 2006-10-30 at 15:15 +0100, M. Koehrer wrote:
> Hi Philippe,
> 
> I have rebuild my system using V2.2.4 of xenomai.
> Also, I had a look to reuse the kernel configuration from the 2.4.33 RTAI system.
> However, the results are more or less the same.
> The only kernel module I have loaded is the "tg3" network driver, the chipset of the 
> PC (ICH6) is supported by the SMI detection and it is activated.
> 

On such hw, you may want to enable the following:
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_AUTO=y

> I have enclosed my kernel configuration, perhaps this can help to identify an issue.
> I do not have X11 running, it is a text-mode only system that is controlled via telnet from
> another PC.
> 
> I'll try to do a stress test on the RTAI system as well.
> 

You could try running RTAI 3.3 over 2.6.17 with the very same config
file too (Xenomai opts aside, of course), so you could rule out any
configuration problem if the gap still exists.

> Regards
> 
> Mathias
> 
> > > I am currently checking XENOMAI (V2.2.3 on a 2.6.17.7 kernel P4) to see if
> > I can use it
> > > as replacement for a RTAI 3.3-cv application.
> > > The first thing I did was to run the latency test in the the xenomai's
> > testsuite directory.
> > > The results of the worst time latency are really ugly - about 40µs!
> > > On the very same PC I got a value of about 5µs using RTAI 3.3-cv running
> > the RTAI's
> > > user/latency test.
> > > 
> > > My question is now: Why can there be such a huge difference between the
> > two systems on the very same
> > > hardware??
> > > Is there a way to improve this value?
> > > 
> > > The RTAI system uses a 2.4.33 kernel, the XENOMAI uses the 2.6.17.7
> > kernel. Could this
> > > be an issue?
> > > 
> > 
> > Several issues there:
> > 
> > - are you 100% sure that your kernel config file for 2.4.33 is perfectly
> > recycled for 2.6.17, e.g. are all latency killer options as listed in
> > the TROUBLESHOOTING file really disabled? P4 configurations are
> > jitter-prone; some options are know to induce bad latencies.
> > 
> > - worst-case figures do not depend on how fast you get them, the latter
> > information gives you nothing to interpret from. You may want to stress
> > test the box for a longer period of time, using things like e.g. a dd
> > loop, and a compilation in the background (dd if=/dev/zero of=/somefile
> > count=500 bs=1M). "ping" network test is not the worst latency raiser,
> > actually, under some circumstances, it could even hide some latency
> > issues, basically because it favours the code locality in i-cache. Also
> > make sure to measure without X-window interaction in both cases; some
> > graphic card drivers induce latencies, some don't. YMMV.
> > 
> > This said, 40us on a P4 class machine is not an expected value for
> > Xenomai/x86. To give you some reference figures, I have a uniprocessor
> > 2.8Ghz Xeon box (no HT) performing at 15 us worst-case, and an older
> > dual 2.4Ghz Xeon SMP which honours 25 us worst-case in SMP mode. Fact is
> > that to get that, I need to disable a number of ACPI options (except
> > those which are needed to boot properly in SMP mode), and activate the
> > SMI work-around.
> > 
> > And above all, a good starting point would be to send your kernel
> > configuration file, so that we could discuss about facts. Additionally,
> > you may want to upgrade to 2.2.4; 2.2.3 has a FPU issue on some hw.
> > 
> 
> 
> -- 
> Mathias Koehrer
> mathias_koehrer@domain.hid
> 
> 
> Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
> ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
> und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
> nur  44,85 €  inkl. DSL- und ISDN-Grundgebühr!
> http://www.arcor.de/rd/emf-dsl-2
-- 
Philippe.




  reply	other threads:[~2006-10-30 14:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-30 10:05 [Xenomai-help] Results of xenomai's latency test vs. RTAI's latency test M. Koehrer
2006-10-30 10:22 ` Jan Kiszka
2006-10-30 11:05   ` Re: [Xenomai-help] Results of xenomai's latency test vs. RTAI's latency M. Koehrer
2006-10-30 11:39     ` Jan Kiszka
2006-10-30 11:37 ` [Xenomai-help] Results of xenomai's latency test vs. RTAI's latency test Philippe Gerum
2006-10-30 14:15   ` Re: [Xenomai-help] Results of xenomai's latency test vs. RTAI's M. Koehrer
2006-10-30 14:40     ` Philippe Gerum [this message]
2006-10-30 15:34       ` M. Koehrer
2006-10-30 16:23         ` Jan Kiszka
2006-10-30 16:24         ` Gilles Chanteperdrix
2006-10-30 17:44         ` Philippe Gerum
2006-10-30 16:39     ` Jan Kiszka

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=1162219241.5188.21.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=mathias_koehrer@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.