On Thu, Apr 10, 2008 at 7:52 PM, jeff koftinoff <[EMAIL PROTECTED]> wrote:
> Gilles Chanteperdrix wrote:
>
> >
> > It looks we are wrong. The main thread stack remains allocated
> > on-demand, even though the process is mlocked. It must be some recent
> > kernel evolution
> >
>
>  Hmm.. interesting.  What is the best way to make sure all my stacks are not
> allocated on-demand?

Find attached the example I used to read the stack size of an mlocked process.

You can run it on your target to see if you get the same result as me.

Now, I suspect this on-demand allocation only exists for the main
thread stack, I will run further tests to confirm this. So, you may:
- decide not to use the main thread for real-time duties
- memset a large buffer on stack to force the kernel to commit memory.

-- 
 Gilles

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to