Locking All Pages
A superuser process can request that all mappings within its address space be locked by a call
to mlockall(). If the flag MCL_CURRENT is set,
all the existing memory mappings are locked. If the flag
MCL_FUTURE is set, every mapping that is added to an existing
mapping or that replaces an existing mapping is locked into memory. For more
information, see the
mlockall(3C) man page.