...
Additionally processes with elevated privileges can disable paging by "locking" memory in place using either mlock()
(Unix) or VirtualLock()
(Windows). This ensures that memory in never copied to the hard drive where it may be retained indefinitely in non-volatile storage.
...