[Xenomai-help] How many cores Xenomai can support? how to extend to more cores, thanks!

2011-11-16 Thread Lou, Yuanzhi
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  0xff00

Which means Xenomai only can support 8 cores at most?

BRs
Lou Yuanzhi

___
Xenomai-help mailing list
Xenomai-help@gna.org
https://mail.gna.org/listinfo/xenomai-help


Re: [Xenomai-help] How many cores Xenomai can support? how to extend to more cores, thanks!

2011-11-17 Thread Philippe Gerum
On 11/17/2011 01:57 AM, Lou, Yuanzhi wrote:
> InXenomai’s native/task.h define as:
> 
> #define T_CPU(cpu) (1 << (24 + (cpu & 7))) /* Up to 8 cpus [0-7] */
> 
> #define T_CPUMASK 0xff00
> 
> 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.

> 
> BRs
> 
> Lou Yuanzhi
> 
> 
> 
> ___
> Xenomai-help mailing list
> Xenomai-help@gna.org
> https://mail.gna.org/listinfo/xenomai-help


-- 
Philippe.

___
Xenomai-help mailing list
Xenomai-help@gna.org
https://mail.gna.org/listinfo/xenomai-help