[squid-users] disk-cache maximum object size is too large for mem-cache

Alex Rousskov rousskov at measurement-factory.com
Thu Nov 3 18:29:43 UTC 2022


On 11/3/22 13:14, luc.bar at libero.it wrote:
> I'm using squid 4.17 and noticed in cache.log this warning:
> 
> WARNING: disk-cache maximum object size is too large for mem-cache: 
> 4096.00 KB > 512.00 KB
> 
> but if I'm not wrong those are the default values of:
> 
> 
> NAME: maximum_object_size
> COMMENT: (bytes)
> TYPE: b_int64_t
> DEFAULT: 4 MB
> LOC: Config.Store.maxObjectSize
> DOC_START Set the default value for max-size parameter on any cache_dir. 
> The value is specified in bytes, and the default is 4 MB.
> 
> and
> 
> NAME: maximum_object_size_in_memory
> COMMENT: (bytes)
> TYPE: b_size_t
> DEFAULT: 512 KB
> LOC: Config.Store.maxInMemObjSize
> DOC_START Objects greater than this size will not be attempted to kept 
> in the memory cache. This should be set high enough to keep objects 
> accessed frequently in memory to improve performance whilst low enough 
> to keep larger objects from hoarding cache_mem.

> so it seems that the default values are itself reported as a warning?

Yes, it is a known bug. I do not recall whether there is a bug report 
for it, but I know that we have to work around it in some tests (by 
explicitly increasing maximum_object_size_in_memory).


HTH,

Alex.


More information about the squid-users mailing list