Skip to contentSkip to conversation

How many cores Xenomai can support? how to extend to more cores, thanks!

Xenomai-help Lou, Yuanzhi 2 participants 2 messages Nov 17, 2011

lore
Share & tools
lore
#0 lore raw

In Xenomai’s native/task.h define as:

#define T_CPU(cpu) (1 << (24 + (cpu & 7))) /* Up to 8 cpus [0-7] */ #define T_CPUMASK 0xff000000

Which means Xenomai only can support 8 cores at most?

BRs
Lou Yuanzhi

#1 lore raw
Quoted 7 lines · Yuanzhi

InXenomai’s native/task.h define as:

#define T_CPU(cpu) (1 << (24 + (cpu & 7))) /* Up to 8 cpus [0-7] */

#define T_CPUMASK 0xff000000

Which means Xenomai only can support 8 cores at most?

The Xenomai core has no internal limit on the number of cores beyond the one Linux defines by CONFIG_NR_CPUS. However, the locking model we use has a low overhead (code and complexity) with few CPUs used in real-time mode, at the expense of being sub-optimal with a large number of CPUs.

The API you mention simply reflects that fact.

Again: this design affects the number of CPUs used in real-time mode (i.e. primary Xenomai mode), not necessarily the overall number of CPUs present in the system and only available to regular Linux processing.

Quoted 11 lines

BRs

Lou Yuanzhi

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.