Re: Memory compaction and mlockall()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux