On 10/22/2011 06:33 PM, Amos Jeffries wrote: > 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. The shared memory page size should be eventually configurable, of course. However, I doubt the fixed page size will always remain the maximum cachable object size in shared-caching SMP setups. Eventually, Squid will use fixed-size shared pages to store arbitrary-size objects, in memory and on disk. I am not aware of any active development in this area, but I am sure somebody is working on it or will eventually work on it because caching large files is important to many. HTH, Alex.