RE: memory locking in squid

From: Robert Collins <robert.collins@dont-contact.us>
Date: Sun, 29 Apr 2001 16:19:27 +1000

in main.c look for fork().

Rob

> -----Original Message-----
> From: wojtek@3miasto.net [mailto:wojtek@3miasto.net]
> Sent: Saturday, April 28, 2001 7:50 PM
> To: squid-dev@squid-cache.org
> Subject: memory locking in squid
>
>
>
> where (in code) does squid spawns secondary (worker) process.
>
> i've done small patch do add -M option which does
> mlockall(MCL_FUTURE) so
> squid is never swapped out, but now it locks both processes.
> there is no need to lock first as it's only waiting.
>
> this patch works both in linux and netbsd (and probably would in
> freebsd) but i don't know where to put #include <sys/mman.h> to be
> compatible with ./configure etc..
>
>
>
>
Received on Sun Apr 29 2001 - 00:27:18 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:51 MST