Skip to contentSkip to conversation

posix skin thread doesn't respect /proc/xenomai/affinity

Xenomai-core Jan Kiszka 2 participants 3 messages Oct 1, 2007

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Hi Gilles,

almost forgot to report this, didn't find time to dig into it. You can easily check this with cyclictest: affinity mask set to 2, the test will still schedule on CPU0.

Jan

#1 lore raw
Quoted 5 lines · Jan Kiszka

Hi Gilles,

almost forgot to report this, didn't find time to dig into it. You can easily check this with cyclictest: affinity mask set to 2, the test will still schedule on CPU0.

Ok, what is needed at skin level to get it to work ?

Signature · 1 line
					    Gilles Chanteperdrix.
author
#2 lore raw
Quoted 8 lines · Gilles Chanteperdrix
Quoted 5 lines · Jan Kiszka

Hi Gilles,

almost forgot to report this, didn't find time to dig into it. You can easily check this with cyclictest: affinity mask set to 2, the test will still schedule on CPU0.

Ok, what is needed at skin level to get it to work ?

If the user doesn't care about affinity explicitly, the skin should have set the current task's affinity to XNPOD_ALL_CPUS on xnshadow_map (same for xnpod_start_thread):

http://www.rts.uni-hannover.de/xenomai/lxr/source/ksrc/nucleus/shadow.c?v=SVN-trunk#1350

Jan