From: Jan Kiszka <jan.kiszka@domain.hid>
To: Antoine Nourry <nourry@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] About HARD real time... and USB
Date: Tue, 02 Jun 2009 22:03:56 +0200 [thread overview]
Message-ID: <4A2585AC.8040107@domain.hid> (raw)
In-Reply-To: <4A23D8C7.4020208@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 2184 bytes --]
Antoine Nourry wrote:
>
>> The current roadmap is to let Xenomai 3 come in two flavors: one based
>> on PREEMPT-RT (Xenomai/Solo), the other (Xenomai/Duo) using Adeos/I-pipe
>> and a second scheduler like Xenomai 2 does, but supporting much less
>> legacy than the latter (no kernel 2.4, no in-kernel RT applications
>> etc.). So depending on your requirements and PREEMPT-RT's progress,
>> you'll be able to chose the fitting platform or even switch between them
>> without too much effort.
>>
>> Jan
>>
>>
> Thanks again Jan.
>
> Another point; for RT USB developers, do you think we could use Linux
> native USB stack with PREEMPT_RT in the same way as Xenomai / USB4RT ?
I haven't reviewed the code path of a typical urb in mainline recently,
but I bet the usual two issues exist:
- Shared (soft-)IRQ and/or workqueue threads with uncritical code
(either other USB drivers or even totally unrelated kernel
subsystems). In order to achieve reasonable latencies, you need to
boost their prios, but that can quickly cause priority inversion,
thus other latencies.
- No resource isolation, ie. dynamic buffer allocation which can hit
temporary shortages or contentions, raising latencies or even
letting some requests fail.
Moreover you may face troubles as mainline USB is (reasonably) concerned
about hotplug, thus may perform management jobs while you try to acquire
some data at high frequencies and react on the data in real-time.
>
> I'm pleased with this last solution but the USB4RT bug (need to send a
> command twice) is a real problem for performances (i'd like to increase
> my acquisition rate within a fixed cycle). My only approach to real time
> for the moment is USB driver, and in the Open world i cannot find what
> could be the "right" or "best" solution...
It's a pity, this bug now exists for, hmm, 3 years? But as long as no
one feels the need to dive into it, understand and fix it, this won't
change. Maybe one could even analyze this inside QEMU/KVM, also looking
at the virtual host controller state when the problems shows up. But it
still takes someone to /do/ this.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
next prev parent reply other threads:[~2009-06-02 20:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-21 16:22 [Xenomai-help] About HARD real time Antoine Nourry
2009-06-01 10:54 ` Jan Kiszka
2009-06-01 13:33 ` [Xenomai-help] About HARD real time... and USB Antoine Nourry
2009-06-02 20:03 ` Jan Kiszka [this message]
2009-06-02 9:09 ` [Xenomai-help] About HARD real time Philippe Gerum
2009-06-02 22:40 ` Martin Shepherd
2009-07-02 14:19 ` Philippe Gerum
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=4A2585AC.8040107@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=nourry@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.