All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] what limits number of pSOS tasks using t_create?
@ 2016-05-13 13:27 Marcel Van Mierlo
  2016-06-02 13:44 ` Philippe Gerum
  0 siblings, 1 reply; 9+ messages in thread
From: Marcel Van Mierlo @ 2016-05-13 13:27 UTC (permalink / raw)
  To: xenomai

Hi,


Which parameters limit the number of psos skin tasks that can be created using t_create()? (ARM (Beagle), Xenomai 3.0).

At the moment I am getting ERR_NOTCB back after creating about 118 tasks (just calling t_create not t_start). In production we are hitting the limit at about 70 tasks...though sometimes we can go a bit higher.

>From the documentation I see:

* t_create() returns ERR_NOTCB upon memory allocation failure when
trying to get a task control block from the nucleus heap. There is
no control block limit for tasks.


So I adjusted the following:

CONFIG_XENO_OPT_SYS_HEAPSZ=1024
CONFIG_XENO_OPT_PRIVATE_HEAPSZ=128
CONFIG_XENO_OPT_SHARED_HEAPSZ=128

but increasing (doubling) these made no difference to maximum number of tasks which can be created...


This is the guts of the test:

      for (i = 0; i < limit; i++)
      {
        result = t_create("MAX_THREAD_TEST", 200, 0x1000, 0x1000, T_LOCAL, &tids[i]);
        if (result != 0)
          break;
      }



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-06-09 15:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-13 13:27 [Xenomai] what limits number of pSOS tasks using t_create? Marcel Van Mierlo
2016-06-02 13:44 ` Philippe Gerum
2016-06-06  8:14   ` Marcel Van Mierlo
2016-06-07 15:03     ` Philippe Gerum
2016-06-08  9:11       ` Marcel Van Mierlo
2016-06-09  7:17         ` Philippe Gerum
2016-06-09 12:45           ` Marcel Van Mierlo
2016-06-09 12:52             ` Philippe Gerum
2016-06-09 15:12               ` Marcel Van Mierlo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.