Skip to contentSkip to conversation

xenomai scheduler's ticks period

Xenomai-help Matthieu 2 participants 5 messages Jun 10, 2008 – Jun 15, 2008

lore
Share & tools
lore

Matthieu

author
#0 lore raw

Hi

Is it possible to change the value of the xenomai scheduler's ticks period ? I would like the tasks to be scheduled each 1 millisecond for exemple. I found out xnpod_tick_announce, but I didn't find any documentation and I didn't find the sources.

Thank you in advence

Matthieu

author
#1 lore raw

Well I have to specify a little. My current vxworks application uses tickAnounce() on an interrupt clock handler. I see that this routine is implemented is vxworks skin. Moreover, I'm sure that tickAnnouce is the only way the scheduler is swinging over my PPC. What I have to do is to get a hardware interrupt, or I have simulate a hardware interrupt. Concerning the hardware interrupt, I don't really see what can I use. Concerning the simulation, I think about creating a periodical xenomai rt_task. But the problem is what is the influence of tickAnnouce over this task ? Is there differencies running task over different CPUs ? How can I be sure vxworks tasks are scheduled with tickAnnouce and Xenomai task are schedule normally ?

matthieu

Quoted 3 lines · Matthieu

Hi

Is it possible to change the value of the xenomai scheduler's ticks

period

Quoted 1 line

? I would like the tasks to be scheduled each 1 millisecond for exemple.

I

Quoted 6 lines

found out xnpod_tick_announce, but I didn't find any documentation and I didn't find the sources.

Thank you in advence

Matthieu

#2 lore raw
In reply to Matthieu
Quoted 6 lines · Matthieu

Hi

Is it possible to change the value of the xenomai scheduler's ticks period ? I would like the tasks to be scheduled each 1 millisecond for exemple. I found out xnpod_tick_announce, but I didn't find any documentation and I didn't find the sources.

Xenomai scheduler has no tick period. If you want, you may change a skin period, either by using Kconfig options, or by using module parameters. You will find documentation about the module parameters either by using modinfo or in the text file documenting the skin you want to use.

Signature · 1 line
 Gilles
author
#3 lore raw

So, do I have to understand that all skins have their own scheduler ? To schedule at 1ms, the instriction tickSet(1000) seems to works but specifying option tick_arg=1000 to xeno_vxworks module doesn't ! I thing that I do it in a bad way, endeed I added "options xeno_vxworks tick_arg=1000" to /etc/modprobe.conf/local ... (In fact I must add this module manually, it isn't loaded automatically while a vxworks instruction need to execute).

Matthieu

Quoted 19 lines · Gilles Chanteperdrix
Quoted 3 lines · Matthieu

Hi

Is it possible to change the value of the xenomai scheduler's ticks

period

Quoted 1 line

? I would like the tasks to be scheduled each 1 millisecond for exemple.

I

Quoted 2 lines

found out xnpod_tick_announce, but I didn't find any documentation and I didn't find the sources.

Xenomai scheduler has no tick period. If you want, you may change a skin period, either by using Kconfig options, or by using module parameters. You will find documentation about the module parameters either by using modinfo or in the text file documenting the skin you want to use.

--
Gilles

#4 lore raw
Quoted 7 lines · Matthieu

So, do I have to understand that all skins have their own scheduler ? To schedule at 1ms, the instriction tickSet(1000) seems to works but specifying option tick_arg=1000 to xeno_vxworks module doesn't ! I thing that I do it in a bad way, endeed I added "options xeno_vxworks tick_arg=1000" to /etc/modprobe.conf/local ... (In fact I must add this module manually, it isn't loaded automatically while a vxworks instruction need to execute).

I already answered this mail. You will find my answer in the mailing list archives here:
https://mail.gna.org/public/xenomai-help/2008-06/msg00063.html

Signature · 1 line
					    Gilles.