All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] mlockall questions
@ 2008-04-09 19:13 Robert McCullough
  2008-04-09 19:29 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 16+ messages in thread
From: Robert McCullough @ 2008-04-09 19:13 UTC (permalink / raw)
  To: xenomai

Hi,

I am converting part of a C++ application to real-time.

I noticed that all the Xenomai examples call
mlockall(MCL_CURRENT|MCL_FUTURE) at the beginning of main before creating
any real-time threads.
Is calling mlockall a requirement when using Xenomai?

I have added a couple of Xenomai tasks to my C++ app.
A) Without calling mlockall my application seems to run fine but I noticed
in /proc/xenomai/stat that a few page faults occurred.
B) When calling mlockall at the beginning of my main() I do not see any page
faults but some of the C++ threads do not start.

Why would mlockall cause some threads not to start?
How would I fix this?

Best regards, 
Robert McCullough





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

end of thread, other threads:[~2008-04-14 19:51 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-09 19:13 [Xenomai-help] mlockall questions Robert McCullough
2008-04-09 19:29 ` Gilles Chanteperdrix
2008-04-09 21:36   ` Robert McCullough
2008-04-10  0:53     ` Philippe Gerum
2008-04-10  9:25       ` Gilles Chanteperdrix
2008-04-10 14:36         ` Philippe Gerum
2008-04-10 15:43           ` Gilles Chanteperdrix
2008-04-10 17:26             ` Gilles Chanteperdrix
2008-04-10 17:52               ` jeff koftinoff
2008-04-10 18:03                 ` Gilles Chanteperdrix
2008-04-10 18:16                   ` Gilles Chanteperdrix
2008-04-10 22:48             ` Philippe Gerum
2008-04-10 22:54               ` Philippe Gerum
2008-04-10 23:25               ` Gilles Chanteperdrix
2008-04-10 23:31                 ` Philippe Gerum
2008-04-14 19:51         ` Robert McCullough

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.