* [Xenomai-help] [ARM_MV 88F6290] Task limit, msg receive error
@ 2009-11-04 9:02 Didenko Sergey
2009-11-04 10:36 ` Gilles Chanteperdrix
0 siblings, 1 reply; 3+ messages in thread
From: Didenko Sergey @ 2009-11-04 9:02 UTC (permalink / raw)
To: xenomai
[-- Attachment #1: Type: text/plain, Size: 686 bytes --]
Dear Experts
we are facing 2 problems now:
1) in our test application (very simple one) we can create maximum 50 tasks,
next task is failed to create with error *12*
*- Is there any task number limit?*
*- what does 12 mean?*
2) in our project (originally developed for VxWorks), msgQReceive
function returns
-1 and sets errno to 4
*We think that it might be related to XNBREAK thread's flag.*
Current settings are:
CONFIG_XENO_OPT_SYS_HEAPSZ=256
CONFIG_XENO_OPT_SYS_STACKPOOLSZ=128
- we did verify that total stack size of created VxWorks's tasks is about 60
KB
- we did verify that message queue's ID and task's ID were valid.
*- any idea why function msgQReceive fails ?*
Sergey
[-- Attachment #2: Type: text/html, Size: 2535 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] [ARM_MV 88F6290] Task limit, msg receive error
2009-11-04 9:02 [Xenomai-help] [ARM_MV 88F6290] Task limit, msg receive error Didenko Sergey
@ 2009-11-04 10:36 ` Gilles Chanteperdrix
2009-11-06 1:49 ` Sergey Didenko
0 siblings, 1 reply; 3+ messages in thread
From: Gilles Chanteperdrix @ 2009-11-04 10:36 UTC (permalink / raw)
To: Didenko Sergey; +Cc: xenomai
Didenko Sergey wrote:
> Dear Experts
Hi, you do not need to flatter us to get answers :-)
>
> we are facing 2 problems now:
>
> 1) in our test application (very simple one) we can create maximum 50
> tasks, next task is failed to create with error *12*
> *- Is there any task number limit?*
> *- what does 12 mean?*
Please read the TROUBLESHOOTING guide which comes with Xenomai, for the
question about the task number limit.
For the error codes, see:
http://www.xenomai.org/index.php/Resolving_Error_Codes
>
> 2) in our project (originally developed for VxWorks), msgQReceive
> function returns -1 and sets errno to 4
> *We think that it might be related to XNBREAK thread's flag.*
Yes, error 4 is EINTR, it means that msgQReceive was interrupted by a
signal. We can only tell you whether this is normal if you tell us in
exactly what conditions you get this error (a test case reduced to the
minimum would be welcome).
--
Gilles
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] [ARM_MV 88F6290] Task limit, msg receive error
2009-11-04 10:36 ` Gilles Chanteperdrix
@ 2009-11-06 1:49 ` Sergey Didenko
0 siblings, 0 replies; 3+ messages in thread
From: Sergey Didenko @ 2009-11-06 1:49 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 1832 bytes --]
2009/11/4 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
> Didenko Sergey wrote:
> > Dear Experts
>
> Hi, you do not need to flatter us to get answers :-)
>
Then, who are you if not the experts in Xenomai?
Do not be so modest ;-)
> >
> > we are facing 2 problems now:
> >
> > 1) in our test application (very simple one) we can create maximum 50
> > tasks, next task is failed to create with error *12*
> > *- Is there any task number limit?*
> > *- what does 12 mean?*
>
> Please read the TROUBLESHOOTING guide which comes with Xenomai, for the
> question about the task number limit.
>
So, to solve that problem we did try, as guide says: "A work-around consists
of setting a
lower user-limit for initial stack allocation, like calling "ulimit
-s <initial-size-in-kbytes>" in your parent shell before running
your application", but it did not help at all.
We were able to increase the number of created tasks by increasing the value
of CONFIG_XENO_OPT_SYS_HEAPSZ and CONFIG_XENO_OPT_REGESTRY_NRSLOTS in
configuration for kernel.
For instance, in our test application, finally, we were able to create up to
500 tasks (stack is 10 KB) when options were like
CONFIG_XENO_OPT_SYS_HEAPSZ = 4096
CONFIG_XENO_OPT_REGESTRY_NRSLOTS = 1024
> For the error codes, see:
> http://www.xenomai.org/index.php/Resolving_Error_Codes
>
> >
> > 2) in our project (originally developed for VxWorks), msgQReceive
> > function returns -1 and sets errno to 4
> > *We think that it might be related to XNBREAK thread's flag.*
>
> Yes, error 4 is EINTR, it means that msgQReceive was interrupted by a
> signal. We can only tell you whether this is normal if you tell us in
> exactly what conditions you get this error (a test case reduced to the
> minimum would be welcome).
>
> It was our application's problem, now it is solved.
Sergey
[-- Attachment #2: Type: text/html, Size: 2796 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-06 1:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-04 9:02 [Xenomai-help] [ARM_MV 88F6290] Task limit, msg receive error Didenko Sergey
2009-11-04 10:36 ` Gilles Chanteperdrix
2009-11-06 1:49 ` Sergey Didenko
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.