[Patch] Memory lock executable at load time

Corey Minyard minyard@acm.org
Sat May 4 09:07:00 GMT 2002


This time with the patch actually attached.

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

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: glibc-2.2.4-lock_memory.patch
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20020504/1726b756/attachment.ksh>


More information about the Libc-alpha mailing list