On 26/02/2013 6:34 a.m., Marcus Kool wrote:
On 02/25/2013 01:51 PM, Ahmad wrote:
hi
Marcus ,
u must be correct ,
i have 32 G total memory ,
ive confiured in cache_mem =20000 M which is 20 G !!
ive noticed that squid hanged and got down after some hours of
operating !!
i looked at all logs of squid and squidguard ,
i didnt find any errors from squid !
i looked at free memory by
#free -m
==>it was only 600 M free of memory
the # of process in squid was increasing gradually ,
as i remember it reached 890 process when squid go down !!
i rebooted the server and squid is working fine now !! i wish i
found the
solution of the problem
now i decreased the cache_mem value to 10000 M instead of 20000 M
also i will try to increase the memory to 64 G as soon as possible .
any other suggestions ?
with my best regards
cache_mem is 10 GB,
the in-memory index for 1500 GB disk cache is 21 GB,
Squid uses 64 KB buffers for each connection....
And the system has 32 GB of real memory.
I suggest to reduce the disk cache and make sure that Squid
does not use more than 28 GB.
Marcus
Also, the hours long "hang" on startup is an artifact of Squid loading
the cache indexes into memory. This is a well known problem in older
Squid and the behaviour has been improved (but not fully) in the
Squid-3.3 series performance optimizations.
Amos