Skip to contentSkip to conversation

xenomai scheduler's ticks period

Xenomai-help Matthieu 2 participants 2 messages Jun 11, 2008

lore
Share & tools
lore

Matthieu

author
#0 lore raw

So, do I have to understand that all skins have their own scheduler ? To schedule at 1ms, 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

#1 lore raw
Quoted 1 line · Matthieu

So, do I have to understand that all skins have their own scheduler ?

Starting with Xenomai 2.4, every skin has its own tick source, yes.

Quoted 6 lines

To schedule at 1ms, 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).

We never even thought about auto module loading usually people know which module they need. Note that it seems that the module auto-loading feature is somewhat deprecated by kernel people, since it is now possible to disable it, and the udev daemon loads all possible modules at boot time instead of waiting that a module is really needed before loading it, thereby killing module auto-loading.

However you should note that /etc/modprobe.conf/something will only work if you use "modprobe" to load module. If you use insmod, the arguments should be passed on insmod command line.

If you use modprobe and the tick_arg parameter does not work, could you post the example program showing the issue you met?

Signature · 1 line
 Gilles