From: Jan Kiszka <jan.kiszka@domain.hid>
To: Serge Noiraud <serge.noiraud@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Linux + PREEMPT_RT + LTTng + Xenomai
Date: Mon, 11 Sep 2006 19:03:55 +0200 [thread overview]
Message-ID: <450596FB.3000901@domain.hid> (raw)
In-Reply-To: <1157992308.4991.34.camel@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1590 bytes --]
Philippe Gerum wrote:
> On Mon, 2006-09-11 at 14:18 +0200, Serge Noiraud wrote:
>
> [...]
>
>> I would like Xenomai manage IRQs for some specific cards.
>> The others could be managed by linux-rt.
>> If I understand correctly how it works, I must rewrite my drivers. is it correct ?
>>
>
> "Adapt" them would be more appropriate. Xenomai's RTDM layer usually
> makes this quite straightforward.
>
You may want to have a look at the irqbench driver (+ user-space
front-end), both for usage reference and as a test case for what is
feasible on your hardware with Adeos/Ipipe and Xenomai.
This benchmark contains a special mode ("-t 3") to let the IRQ handler
run inside a separate high-prio Adeos domain. It will even preempt
Xenomai in this mode. If you only have to interact with hardware in your
IRQ handlers or if operations on data structures can be made lock-less,
this variant will most probably give you the ultimate latency numbers.
With this test, I recently measured worst-case latencies under heavy I/O
load of < 50 us -- on an ancient Pentium-I 133 MHz.
But one has to keep in mind that latencies below 30-40 us are heavily
influenced by hardware effects like PCI bus contention. It will require
some thorough bus design and I/O load management as well. I once ran a
user-space periodic task at 50 KHz on my notebook (P-M, 1.3 GHz). Worked
fine for hours while I continued working with that box -- until some
mail arrived that triggered a nice sound playback which raised a usual
latency spike of 40 us (i.e. an overflow here)...
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
prev parent reply other threads:[~2006-09-11 17:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-07 12:45 [Xenomai-help] Linux + PREEMPT_RT + LTTng + Xenomai Serge Noiraud
2006-09-07 13:01 ` Jan Kiszka
2006-09-11 12:18 ` Serge Noiraud
2006-09-11 13:30 ` Philippe Gerum
2006-09-11 16:31 ` Philippe Gerum
2006-09-11 17:03 ` Jan Kiszka [this message]
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=450596FB.3000901@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=serge.noiraud@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.