Re: [squid-users] Re: How can I get Squid to use more memory?

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 22 Nov 2011 17:52:10 +1300

On 19/11/2011 2:28 p.m., RW wrote:
> On Sat, 19 Nov 2011 13:17:48 +1300
> Amos Jeffries wrote:
>
>> On 19/11/2011 12:41 p.m., RW wrote:
>>> On Mon, 31 Oct 2011 11:38:03 +1300
>>> Amos Jeffries wrote:
> e,
>>> Are you saying that new objects are not written to disk until they
>>> expire from the memory cache? The implication would presumably be
>>> that some objects are lost when squid shuts down.
>>>
>> Yes. There is some time spent saving as many as possible to disk
>> during the shutdown_timeout, but this rarely gets it all due to being
>> configured too short.
>>
>> Consider though that caching is an entirely optional to start with.
>> Things in the cache can be re-fetched as needed from the network. So
>> there is no actual loss.
> The reason I asked is that I upgraded to 3.1 and I noticed that the
> defaults are:
>
> cache_mem 256 MB
> maximum_object_size_in_memory 512 KB
>
> It struck me that a SOHO server that's turned-off overnight may cache
> next to nothing under 512 K if the memory cache is lost on shutdown.
>
> Is 256 MB small enough for everything to be saved.
>

Probably not. Its relative to shutdown_timeout and disk speeds.

Amos
Received on Tue Nov 22 2011 - 04:52:20 MST

This archive was generated by hypermail 2.2.0 : Tue Nov 22 2011 - 12:00:03 MST