On 07/13/2011 01:37 PM, Jakub Nowacki wrote:
> Hi,
>
> I had a slight problem with freezing tasks in RTXI using Xenomai.
> Namely, task was working normally for some time and then froze, but just
> RTXI/task not the whole system. I've found that it was caused by the
> stack size of a task set to 2000B during the creation. Changing it to 0,
> i.e., automatic stack size fixed the freezing. My question is what is a
> preferred value there? Before on the list I asked about a problem with
> the stack size in the kernel being to small for switchtest to run
> properly on i7 machine. There, one of the answers was that safe bet is
> 8kB for 64-bit machine. I'm not sure should I leave the stack size in
> rt_task_create to 0 or to some high value or it should be machine
> dependent? What is being put on this stack and how to determine it's
> size depending on the complexity of the task (number of vars?)?
The stack size of a task is highly dependent on what the task does, and
a little bit less on the architecture. There is no generic answer.
The problem with switchtest was not the task size, but the number of
kernel stacks which were available in the kernel threads stacks pool.
That is an entirely different issue.
--
Gilles.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help