All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Nowacki <j.s.nowacki@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] Stack size of created task
Date: Wed, 13 Jul 2011 12:37:45 +0100	[thread overview]
Message-ID: <4E1D8389.7050305@domain.hid> (raw)

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



             reply	other threads:[~2011-07-13 11:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-13 11:37 Jakub Nowacki [this message]
2011-07-13 11:43 ` [Xenomai-help] Stack size of created task Gilles Chanteperdrix
2011-07-13 13:13   ` Jakub Nowacki
2011-07-13 18:04     ` Gilles Chanteperdrix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E1D8389.7050305@domain.hid \
    --to=j.s.nowacki@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.