On 7/10/19 7:41 AM, Sebastian Andrzej Siewior wrote: > I did not expect a pagefault with mlockall(). I assume it has to do with > memory compaction. mlock() doesn't technically prevent faults. From the manpage: > mlock(), mlock2(), and mlockall() lock part or all of the > calling process's virtual address space into RAM, preventing that > memory from being paged to the swap area. I read that as basically saying there will be no major faults, but minor faults are possible.