All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Xenomai/rtnet vs. 2.6.21 realtime preempt patch
@ 2007-04-30 14:31 M. Koehrer
  2007-04-30 15:06 ` [Xenomai-help] [RTnet-users] " Jan Kiszka
  0 siblings, 1 reply; 4+ messages in thread
From: M. Koehrer @ 2007-04-30 14:31 UTC (permalink / raw)
  To: rtnet-users, xenomai

Hi everybody,

I have tried the latest 2.6.21 kernel + Ingo Molnar's realtime preempt patch
(see: http://rt.wiki.kernel.org/index.php/RT_PREEMPT_HOWTO)

And I am really amazed about the results.
On my Pentium 4D (dual core) system, 3.2 GHz, I ran the cyclictest
application (which is something similar to the "latency" application of Xenomai/RTAI)
and I get values below 15 microseconds on my PC (for a single task running with 200 microseconds).

Using kernel 2.6.20.4 + Xenomai 2.3.1 I get similar results for the latency application.

That means, that Ingo Molnar has done a real cool job in moving standard linux in the direction
of a real time OS.

However, one thing is not as fine as with Xenomai/rtnet:
I want to do real time UDP communication from a user space application.
Unfortunately, I was not  able to do that as fast as with the Xenomai/rtnet way.
My application does a kind of "ping-pong" with an embedded device that is connected as only
device to eth1 (Intel e1000 adapter).
Using Xenomai/rtnet I get request/response times at about 200 microseconds.

When I run an adapted application on the kernel with the preempt patch using the standard
linux UDP socket functions (sendto, recv), I get request/response times around 1 millisecond.
I have now the assumption that the TCP/IP stack that uses some internal tasks is not running with
real time priority. However, I have no idea how to move that code to real time priority or if it makes
sense to move it as it is probably not possible to handle only communication via a certain ethernet adapter 
with real time priority and all other stuff (house keeping via TCP, different Ethernet adapter) 
with standard priority.
Has anybody an idea about the internal behaviour of this or how to continue here?

Another approach could be to use a modified version of rtnet on base of the preempt patched kernel.
This could allow to use the preempt patch kernel as base for all threads, and the rtnet is used
for real time Ethernet communication...
Is something like this possible or this there a major error in the approach?

Currently, my application is working quite nice using Xenomai/rtnet however there are some
drawbacks like the issue with limited IRQs: Sharing of IRQs between Ethernet-Drivers of rtnet
and non-realtime drivers is not possible (at least I did not manage that...).
A smooth usage of real time features from a "standard" kernel could help here!

Thanks for all feedback on this comment!

Regards

Mathias

-- 
Mathias Koehrer
mathias_koehrer@domain.hid


50€ AMAZON-Einkaufsgutschein bei Bestellung von Arcor-DSL:
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  39,85 €  inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-05-03 17:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-30 14:31 [Xenomai-help] Xenomai/rtnet vs. 2.6.21 realtime preempt patch M. Koehrer
2007-04-30 15:06 ` [Xenomai-help] [RTnet-users] " Jan Kiszka
2007-05-03  7:32   ` M. Koehrer
2007-05-03 17:18     ` Jan Kiszka

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.