All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: bboese@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] SMI workaround failed
Date: Tue, 10 Jul 2007 15:31:25 +0200	[thread overview]
Message-ID: <46938A2D.3030009@domain.hid> (raw)
In-Reply-To: <34174.131.173.32.74.1184072898.squirrel@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 2821 bytes --]

bboese@domain.hid wrote:
> Hello.
> 
> I'm very new to Xenomai and Real Time Applications, so please be indulgent.
> 
> I'm using Ubuntu 7.4 on a Pentium IV 3,2 GHz system with 512mb ram. After
> 2 days of learning about kernel compiling, I've managed to compile a
> vanilla 2.6.20 kernel with the Xenomai nucleus.
> 
> At first, I've checked if Adeos is working:
> dmesg | grep I-pipe
> I-pipe 1.7-03: pipeline enabled.

As you already learned how to compile, here is the next chance to
practice: we have Xenomai 2.3.2 with I-pipe 1.8-05 now. :)

> I-pipe: Domain Xenomai registered.
> 
> Then I've checked if Xenomai works properly:
> dmesg | grep Xenomai
> I-pipe: Domain Xenomai registered.
> Xenomai: hal/x86 started.
> Xenomai: real-time nucleus v2.3.1 (One Robot's Dream) loaded.
> Xenomai: SMI-enabled chipset found, enabling SMI workaround.
> Xenomai: SMI workaround failed!
> Xenomai: starting native API services.
> Xenomai: starting POSIX services.
> Xenomai: starting RTDM services.
> 
> And here's a snippet of my .config file for the kernel:
> #
> # SMI workaround
> #
> # CONFIG_XENO_HW_SMI_DETECT_DISABLE is not set
> CONFIG_XENO_HW_SMI_DETECT=y
> CONFIG_XENO_HW_SMI_WORKAROUND=y
> CONFIG_XENO_HW_SMI_ALL=y
> 
> As you can see, I've enabled the workaround. But somehow, it fails.
> 
> I've tried /usr/xenomai/bin/xeno-test, and my latencies are very high.
> Maximum latency circles around 10ms, and average latency is about 0.5 ms.

That is _very_ high and, if true, can even be problematic for an
ordinary non-RT system. Did you disable frequency scaling in your kernel
config (if not, that would break the measurement under Xenomai)?

> I don't think this is normal, I was hoping for much lower latencies for my
> realtime applications. I think SMI skyrockets the latency values, any idea
> why the SMI workaround won't work or how to debug this problem properly ?

You could try switching off individual SMI features, either in your
kernel config or - easier for experimenting - with this userland tool:

http://www.rts.uni-hannover.de/rtaddon/#smictrl
http://www.rts.uni-hannover.de/rtaddon/smictrl.tar.bz2

Maybe just that "switch off everything" is blocked by your hardware.
Moreover, it would be interesting to know your PCI IDs (lspci; lspci -n)
for reference.

> 
> Which latency should I expect with a system like mine (PIV 3,2 GHz) ?

What scenario are you looking for? There is no such thing as "the
latency of box X".

Anyway, the simple latency tests of Xenomai (single task under heavy
cache and IRQ load) should give timed task wakeup latencies below 20 us
or better - but that's fairly hardware setup dependent (a single stall
on PCI activity can cost more than 30 us if you have the "right"
hardware...).

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

  reply	other threads:[~2007-07-10 13:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-10 13:08 [Xenomai-help] SMI workaround failed bboese
2007-07-10 13:31 ` Jan Kiszka [this message]
2007-07-10 14:10   ` bboese

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=46938A2D.3030009@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=bboese@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.