On Fri, Jun 14, 2013 at 09:45:17AM +0200, Stanislav Meduna wrote: > On 14.06.2013 07:18, Lars Segerlund wrote: > > > I have an application which should be realtime but apparently > > generates page faults from a realtime context, I am trying to find a > > way to get a stacktrace when this occurs, does anybody have any ideas > > ? > [..] > > Basic questions: > > - do you call mlockall(MCL_CURRENT | MCL_FUTURE) _before_ your > threads are started? > > - do the faulting threads allocate memory? > > - do the faulting threads call kernel functions that might allocate memory? Throwing in an additional question here that recently bit us: - does your application make use of fork(), popen(), daemon(), or any other call which under-the-hood invokes clone() with CLONE_VM not set? Josh
Attachment:
pgpl5vw_R2hpI.pgp
Description: PGP signature