All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Stack size of created task
@ 2011-07-13 11:37 Jakub Nowacki
  2011-07-13 11:43 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 4+ messages in thread
From: Jakub Nowacki @ 2011-07-13 11:37 UTC (permalink / raw)
  To: xenomai

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?)?

Cheers,

Jakub



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

end of thread, other threads:[~2011-07-13 18:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-13 11:37 [Xenomai-help] Stack size of created task Jakub Nowacki
2011-07-13 11:43 ` Gilles Chanteperdrix
2011-07-13 13:13   ` Jakub Nowacki
2011-07-13 18:04     ` Gilles Chanteperdrix

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.