Re: [squid-users] cache_mem

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 22 Jan 2009 12:42:03 +1300 (NZDT)

> Paul Cocker wrote:
>> Simple one I hope
>>
>> Once you have squid up and running and know its memory use and overall
>> system memory use, should cache_mem be set as a percentage of the free
>> memory available, or should you be leaving a large amount of memory for
>> the use of the OS file cache and keeping squid' cache_mem at a smaller
>> value like 64MB?
>>
>
> 1) Squid's handling of large objects (1MB+) in memory can be CPU
> intensive.
>
> 2) Squid does not pull objects from the disk cache into the memory cache.
>
> Given those two facts, I use a smaller cache_mem value (64 or 128 MB)
> and leave the rest for the OS.

(1) is only relevant to squid-2. Squid-3 handles large file in-memory a
lot better. But (2) still occurs in both, so it's only partial
improvement on initial handling.

Amos
Received on Wed Jan 21 2009 - 23:42:09 MST

This archive was generated by hypermail 2.2.0 : Thu Jan 22 2009 - 12:00:03 MST