Re: [squid-users] Problems enabling cache_replacement_policy

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 03 Mar 2009 21:50:37 +1300

Manuel Trujillo wrote:
> On Tue, Mar 3, 2009 at 00:33, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
>> Many things in squid.conf are order-specific.
>
> Humm... I don't know this...
>
>> The cache_replacement_policy setting can be used multiple times, and only
>> affects the cache_dire defined below it.
>
> This is the part about this in my config file:
>
> ########################################################
> ## PARAMETROS CACHE
> ########################################################

squid in memory has default LFU scheme....

> #cache_dir aufs /var/cache/squid 81920 16 64
> cache_dir aufs /var/cache/squid 40960 16 64

... creates cache_dir with all settings (including LFU) ...

> pid_filename /var/run/squid.pid
>
> ########################################################
> ## TUNING EN CASO NECESARIO (a descomentar)
> ########################################################
> #client_db off
>
> ########################################################
> ## PARAMETRIZACION DE LA CACHE MEMORIA
> ########################################################
> cache_replacement_policy heap GDSF

.. changes default policy to heap GDSF ...

> memory_replacement_policy heap GDSF
> high_memory_warning 2048 MB

... oops. no more cache_dir to use heap with. Stop.

>
> Is this right?

no. see above.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE6 or 3.0.STABLE13
   Current Beta Squid 3.1.0.5
Received on Tue Mar 03 2009 - 08:50:28 MST

This archive was generated by hypermail 2.2.0 : Tue Mar 03 2009 - 12:00:02 MST