Re: [squid-users] ipcCreate: fork: (12) Cannot allocate memory

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 19 Mar 2011 12:17:59 +1300

On 19/03/11 02:43, Winfield Henry wrote:
>
> Hi,
> Squid has started to NOT come back up after log rotate. Here is snippett from cache.log.
> Machine has 1G ram and cache_mem is set to 500MB,

Squid uses fork() instead of vfork() to spawn helpers, on some OS the
fork() implementation prevents extremely huge amounts of virtual memory
being "allocated" (even though it is neither allocated nor used).

The helper multiplexer has been created to get around this problem:
  ftp://ftp.squid-cache.org/pub/squid/contrib/helper-mux/
Details on how to use it are in the Squid-3.2 release notes:
  http://www.squid-cache.org/Versions/v3/3.2/RELEASENOTES.html
(published as part of 3.2, but works on all squid-2.6 or later).

PS.
  A few of use have looked at making Squid use vfork() but been defeated
by the parent doing followup logics. If anyone is keen to attack the
problem patches that work will be VERY welcome.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.11
   Beta testers wanted for 3.2.0.5
Received on Fri Mar 18 2011 - 23:18:03 MDT

This archive was generated by hypermail 2.2.0 : Sat Mar 19 2011 - 12:00:01 MDT