* [Xenomai-help] Stack size of shadowed thread
@ 2010-07-20 18:32 Steve Deiters
2010-07-20 18:52 ` Gilles Chanteperdrix
0 siblings, 1 reply; 2+ messages in thread
From: Steve Deiters @ 2010-07-20 18:32 UTC (permalink / raw)
To: xenomai
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?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Xenomai-help] Stack size of shadowed thread
2010-07-20 18:32 [Xenomai-help] Stack size of shadowed thread Steve Deiters
@ 2010-07-20 18:52 ` Gilles Chanteperdrix
0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2010-07-20 18:52 UTC (permalink / raw)
To: Steve Deiters; +Cc: xenomai
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-07-20 18:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-20 18:32 [Xenomai-help] Stack size of shadowed thread Steve Deiters
2010-07-20 18:52 ` 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.