...
Processes with elevated privileges can disable paging by "locking" memory in place using either POSIX mlock() (POSIX) or function [Open Group 04]. This ensures that memory is never copied to the hard drive, where it may be retained indefinitely in nonvolatile storage.
...