Skip to contentSkip to conversation

Xenomai scheduler

DISCUSSION Leandro Bucci 2 participants 2 messages Dec 5, 2020 – Dec 7, 2020

lore
Share & tools
lore
#0 lore raw

hi, i have a doubt about the Xenomai scheduler. When I create multiple tasks, are they assigned to the various available system CPUs? if I have two tasks T1 and T2, where T1 has high priority and T2 low priority, and my system has 4 CPUs, does Xenomai assign T1 and T2 to two different processors (to optimize) or does it assign them to the same processor?

#1 lore raw
Quoted 6 lines · Leandro Bucci via Xenomai

hi, i have a doubt about the Xenomai scheduler. When I create multiple tasks, are they assigned to the various available system CPUs? if I have two tasks T1 and T2, where T1 has high priority and T2 low priority, and my system has 4 CPUs, does Xenomai assign T1 and T2 to two different processors (to optimize) or does it assign them to the same processor?

Xenomai does not implement any kind of load-balancing algorithm. It simply takes the CPU the Linux part of the thread was running on during creation. It furthermore accepts any explicit affinity assignments during runtime. So it's up to you to design the optimal RT thread placement for your system.

Jan

Signature · 2 lines
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux