xenomai scheduler's ticks period
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
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
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
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
Kconfigoptions, 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
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_vxworksmodule doesn't ! I thing that I do it in a bad way, endeed I added "optionsxeno_vxworkstick_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.