Skip to contentSkip to conversation

: [Xenomai-help] Running real time task on one of the cores of

DISCUSSION M. Koehrer 2 participants 3 messages Feb 1, 2007

lore
Share & tools
lore

M. Koehrer

author
#0 lore raw

Hi Jan,

I found it in the latest SVN version but not in the 2.3 Xenomai...
As my system is working currently very stable, I do not want to change the Xenomai version...

Regards

Mathias

Quoted 34 lines
Quoted 3 lines · M. Koehrer

Hi Jan,

Quoted 1 line
Quoted 1 line

I also use rtnet. Unfortunately I am not able to force rtnet (RTDM

based) to run on CPU core 1

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

without patching the RTDM code.
A couple of months ago, I already asked for this issue. Jan, can you tell me the latest news regarding this issue?

The global affinity mask is now part of Xenomai 2.3 (though I haven't tested it again after it was merged).

Ah, I didn't know that! How can I set the affinity mask?

/proc/xenomai/affinity

Quoted 6 lines

Perhaps this is the problem I have...

Quoted 2 lines

What part of RTnet precisely is
resisting to move to CPU 1, or what do you currently have to patch?

Currently I see the rtnet tasks "rtnet-stack" and "rtnet-rtpc" to be

assigned to CPU 0.

Quoted 2 lines

I have patched xenomai/ksrc/skins/rtdm/drvlib.c in the call to xnpod_start_thread(). I replace XNPOD_ALL_CPUS by cpumask_of_cpu(1).

That should be obsolete when issuing

echo 2 > /proc/xenomai/affinity

before you load RTnet.

Jan

Signature · 9 lines
Mathias Koehrer
[email protected]


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  44,85 €  inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2
#1 lore raw
Quoted 4 lines · M. Koehrer

Hi Jan,

I found it in the latest SVN version but not in the 2.3 Xenomai...
As my system is working currently very stable, I do not want to change the Xenomai version...

Oh, indeed, that got merged after the release. Obviously I'm too bleeding-edge focused. :)

Try to extract the diff of #2011 and apply it on your tree. This should fit seamlessly.

Jan

author
#2 lore raw

Hi Jan,

I tried to apply the patch of #2011 to the 2.3 Xenomai and this works fine. I can now determine the CPU to run all real time stuff by writing into /proc/xenomai/affinity.

Thanks a lot.

Mathias

Quoted 10 lines
Quoted 2 lines

I found it in the latest SVN version but not in the 2.3 Xenomai... As my system is working currently very stable, I do not want to change the

Xenomai version...

Oh, indeed, that got merged after the release. Obviously I'm too bleeding-edge focused. :)

Try to extract the diff of #2011 and apply it on your tree. This should fit seamlessly.

Signature · 9 lines
Mathias Koehrer
[email protected]


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  44,85 €  inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2