On 28.06.2013 16:14, Lars Segerlund wrote: > Quick question, if I mlock my app and prefault the stacks, what > happens if I haven't linked static and use a library ? > > Surely a bunch of pagefaults ? I am no kernel expert but as I understand it should not matter whether the application is linked statically or dynamically. What is mapped gets locked. After mlockall returns you should only get pagefaults if the mapping changes (heap grows, you call mmap, dlopen() a library, start a new thread, ...). -- Stano -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html