On 23/10/11 10:24, David Touzeau wrote:
> dear
>
> I have set a rock store to
>
> cache_dir rock /var/squid/squid3 2500 max-size=1024000
>
> Squid generate an error
> 2011/10/22 23:20:38 kid1| WARNING: disk-cache maximum object size is too
> large for mem-cache: 1000.00 KB> 32.00 KB
>
> What token can be used in order to increase the 32.00 kb value ?
It is presently hard-coded in src/ipc/mem/Pages.cc maxObjectSize().
It is the size of in-memory pages used to share the rock storage objects
between processes. Thus the small default. I seem to recall you had an
insanely high avg object size though, so your particular use case should
be okay.
Just remember that src/ipc/mem/Pages.cc is the general shared-memory
page settings. So affects all shared caches, not just the one rock dir.
>
> i have these values in squid.conf :
>
> maximum_object_size_in_memory 1024 KB
> cache_mem 8 MB
The pages size should probably be linked to these. Although it is fairly
common to have a large maximum_object_size_in_memory which would ruin
the mem-mapped paging benefits for most users. cc'ing squid-dev so it
can get some attention.
Amos
-- Please be using Current Stable Squid 2.7.STABLE9 or 3.1.16 Beta testers wanted for 3.2.0.13Received on Sun Oct 23 2011 - 00:33:28 MDT
This archive was generated by hypermail 2.2.0 : Sun Oct 23 2011 - 12:00:03 MDT