[Patch] Memory-lock executables at load time
Corey Minyard
minyard@acm.org
Sat May 4 09:06:00 GMT 2002
The following patch allows you to memory-lock executables when they are
loaded, either with mlock() or by reading the file in instead of mmaping
it. To activate this, set the environment variable "LD_LOCK_MEMORY" to
either "READ" or "MLOCK". It also adds parameters to ld.so to do this.
To get the full effect of this, you also need to have no swap to avoid
stack segments and data segments getting paged.
-Corey
More information about the Libc-alpha
mailing list