Skip to contentSkip to conversation

10us periodical task (Xenomai vs. RTAI)

Xenomai-help Igor Plyatov 2 participants 2 messages May 22, 2007

lore
Share & tools
lore
#0 lore raw

Hello!

Quoted 6 lines
Quoted 1 line
Quoted 1 line

Is it possible to get 10us period for task in Xenomai or not?

Running a task with a period of 10us is usually considered a bit out of the scope of Xenomai. Nevertheles, there were some recent improvements on Xenomai trunk that might make this possible. It would be interesting if you tested this with trunk and tell us whether it works.

Can somebody recommend applicable opensource RTOS extension for Linux (with support for x86 and ARM)?

Quoted 2 lines

Also note that in order to get ultra-low latencies, you have to properly calibrate the nucleus latency (/proc/xenomai/latency).

How to do this? (Please, navigate me to the rigth documentation or answer in this list).

Quoted 6 lines
Quoted 2 lines
Quoted 2 lines

May be better to use only ADEOS functions for my task, is it faster then RTDM?

Adeos has no notion of a "task", so, you would have to implement your task in an interrupt handler, and yes, you would get better performance (see for example the difference between latency -t 2 and latency -t 1).

Can somebody give me a simple example of fast periodical "task" with usage of only ADEOS functions.

Signature · 1 line
Igor Plyatov
#1 lore raw
Quoted 10 lines · Igor Plyatov

Hello!

Quoted 6 lines
Quoted 1 line
Quoted 1 line

Is it possible to get 10us period for task in Xenomai or not?

Running a task with a period of 10us is usually considered a bit out of the scope of Xenomai. Nevertheles, there were some recent improvements on Xenomai trunk that might make this possible. It would be interesting if you tested this with trunk and tell us whether it works.

Can somebody recommend applicable opensource RTOS extension for Linux (with support for x86 and ARM)?

On this list, we talk about Xenomai. We hope you will try Xenomai trunk and its improvements will suit your needs.

Quoted 4 lines
Quoted 2 lines

Also note that in order to get ultra-low latencies, you have to properly calibrate the nucleus latency (/proc/xenomai/latency).

How to do this? (Please, navigate me to the rigth documentation or answer in this list).

Just run:
echo 5000 > /proc/xenomai/latency
if you want Xenomai to tick 5us in advance. To get an idea of how you should set this latency, run the latency test. Re-run the latency test after having set /proc/xenomai/latency to see the consequences of the value you chose.

Quoted 9 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines

May be better to use only ADEOS functions for my task, is it faster then RTDM?

Adeos has no notion of a "task", so, you would have to implement your task in an interrupt handler, and yes, you would get better performance (see for example the difference between latency -t 2 and latency -t 1).

Can somebody give me a simple example of fast periodical "task" with usage of only ADEOS functions.

Using an RTDM interrupt handler should not be slower than using an Adeos interrupt handler. For an example using RTDM API to register an interrupt handlers, have a look at Xenomai drivers, in the ksrc/drivers directory.

P.S: you do not want to run a 10us periodic task on ARM, do you ? that is impossible.

Signature · 1 line
					    Gilles Chanteperdrix.