[squid-users] ipcCreate: fork: (12) Cannot allocate memory
Amos Jeffries
squid3 at treenet.co.nz
Thu Sep 7 15:06:37 UTC 2017
On 08/09/17 02:48, erdosain9 wrote:
> By the way,
>
> total used free shared buff/cache
> available
> Mem: 3,7G 3,0G 122M 13M 554M
> 422M
> Swap: 2,0G 160M 1,8G
>
How much of that 3GB of RAM is Squid using?
Your swap need to be at least twice that number.
The fork() starting each helper *doubles* the amount of memory the
kernel counts as being Squid's (once for Squid, once for helper) BUT
this extra helper memory is virtual and thus almost all placed inside
the 'swap' area.
So you need a lot of swap space for the kernel to (pretend to) use with
Squid helpers. The helper itself should use a much smaller amount of
real RAM so should be no problem there if the fork() can do its thing.
Amos
More information about the squid-users
mailing list