This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[Patch] Memory-lock executables at load time
- From: Corey Minyard <minyard at acm dot org>
- To: libc-alpha at sources dot redhat dot com
- Date: Sat, 04 May 2002 11:06:28 -0500
- Subject: [Patch] Memory-lock executables at load time
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