From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Steve Deiters <SteveDeiters@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Stack size of shadowed thread
Date: Tue, 20 Jul 2010 20:52:58 +0200 [thread overview]
Message-ID: <4C45F08A.6040307@domain.hid> (raw)
In-Reply-To: <181804936ABC2349BE503168465576460F5995EE@exchserver.basler.com>
Steve Deiters wrote:
> What is the stack size of a thread shadowed with rt_task_shadow, or one
> that is already shadowed from main because it is linked against the
> POSIX skin?
>
> Is there any way of adjusting the stack size that will be used when
> shadowing a thread?
This matter is not in the hands of Xenomai. The maximum main thread
stack size is determined by ulimit -s, but is mapped on demand. However
Xenomai faults a few Kbytes to avoid the faults getting in the way, if
the main thread is used as a real-time thread. If you need more, you
should fault the main thread stack yourself.
Non-main thread stack size is determined by the value passed to
pthread_attr_setstacksize when creating the thread with pthread_create.
--
Gilles.
prev parent reply other threads:[~2010-07-20 18:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-20 18:32 [Xenomai-help] Stack size of shadowed thread Steve Deiters
2010-07-20 18:52 ` Gilles Chanteperdrix [this message]
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=4C45F08A.6040307@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=SteveDeiters@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.