posix skin thread doesn't respect /proc/xenomai/affinity
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
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.
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