Skip to contentSkip to conversation

fusion and its stack limit

Xenomai-core Marco Cavallini 2 participants 2 messages Nov 25, 2005

lore
Share & tools
lore
#0 lore raw

Hi,
with fusion-0.9.1 and VxWorks skin
I am testing the creation of 255 different tasks each with a different priority level from 0 to 254.
I am facing to a problem creating more than 12 tasks with taskSpawn after creating 12 tasks the program fails into thread.c
in function xnthread_init()
at call xnarch_alloc_stack()
returning -ENOMEM.

Can I increase the stack for fusion (and how) ?
TIA

Marco Cavallini
Koan s.a.s. - Bergamo - ITALIA
Embedded and Real-Time Software Engineering
www.koansoftware.com | www.klinux.org

#1 lore raw
Quoted 11 lines · Marco Cavallini

Hi,
with fusion-0.9.1 and VxWorks skin
I am testing the creation of 255 different tasks each with a different priority level from 0 to 254.
I am facing to a problem creating more than 12 tasks with taskSpawn after creating 12 tasks the program fails into thread.c
in function xnthread_init()
at call xnarch_alloc_stack()
returning -ENOMEM.

Can I increase the stack for fusion (and how) ?

There is not enough space in your system heap. Try raising CONFIG_XENO_OPT_SYS_HEAPSZ in the nucleus config menu.

Quoted 13 lines

TIA

Marco Cavallini
Koan s.a.s. - Bergamo - ITALIA
Embedded and Real-Time Software Engineering
www.koansoftware.com | www.klinux.org

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

Signature · 1 line
Philippe.