Skip to contentSkip to conversation

maximum number of xenomai processes allowed

DISCUSSION Stéphane Ancelot 2 participants 2 messages Feb 7, 2019

lore
Share & tools
lore
#0 lore raw

Hi,

After running a given amount of xenomai processes, I can no more launch more processes.

They are failing with next message.

  0"000.000| WARNING: [main] pthread_setschedparam failed (prio=-1) 0"000.000| WARNING: [main] setup call cobalt failed 0"000.000| BUG in xenomai_init(): [main] initialization failed, ENOMEM

It looks like there is a limitation on the number of xenomai processes.

Where can I hack it ?

Regards

Steph

#1 lore raw
Quoted 5 lines · Stéphane Ancelot via Xenomai

Hi,

After running a given amount of xenomai processes, I can no more launch more processes.

Quoted 7 lines

They are failing with next message.

  0"000.000| WARNING: [main] pthread_setschedparam failed (prio=-1) 0"000.000| WARNING: [main] setup call cobalt failed 0"000.000| BUG in xenomai_init(): [main] initialization failed, ENOMEM

It looks like there is a limitation on the number of xenomai processes.

No, there is none. Receiving ENOMEM is a hint, more kernel resources such as threads requested by applications translates into more memory needed by the core.

Quoted 3 lines

Where can I hack it ?

There is a configuration switch for this: see CONFIG_XENO_OPT_SYS_HEAPSZ.

Signature · 1 line
Philippe.