[squid-users] WARNING: disk-cache maximum object size is too large for mem-cache: 102400.00 KB > 90.00 KB

Amos Jeffries squid3 at treenet.co.nz
Tue Mar 3 15:36:20 UTC 2015


On 4/03/2015 3:12 a.m., johnzeng wrote:
> 
> Hi :
> 
> Thanks Amos Jeffries, i updated to squid 3.5.2 and
> 
> tested QQ and other application at two different environment ( between
> intercept and tproxy ) in according to your advisement .
> 
> result is ok as your saying .
> 
> Thanks again .
> 
> but i checked cache log and found ( WARNING: disk-cache maximum object
> size is too large for mem-cache: 102400.00 KB > 90.00 KB
> 
> Whether there are some error at my config ??
> 

I'm not sure exactly why that is being warned about. Its reasonable to
have a smaller object size for memory-only objects. I think not to worry
about it.


The size ranges in your config look a little strange though.

* objects between 1KB and 90KB are allowed to be stored only in memory

* objects between 262KB and 100MB are allowed to be stored only on disk

* objects under 1KB, between 90KB and 262KB, or over 100MB are not
allowed to be stored anywhere at all.



Also, how is the multiple PID file setup working out?
 The PID file is supposed to contain the ID number of the master process
in charge of the whole process tree and managing signals received from
the init system and "squid -k" commands.

Amos

> 
> ------------------------------------------------------------
> 
> this is my config
> 
> -------------------------------------------------------------
> 
> 
> minimum_object_size 1 KB
> maximum_object_size 100 MB
> maximum_object_size_in_memory 90 KB
> 
> cache_swap_low 80
> cache_swap_high 95
> 
> 
> #Smp setting
> 
> workers 2
> 
> cpu_affinity_map process_numbers=1,2 cores=1,2
> 
> if ${process_number} = 1
> 
> pid_filename /accerater/logs/webcache3/opmizer1/cachea.pid
> cache_swap_state /accerater/logs/webcache3/cachea_swap_log1
> access_log stdio:/accerater/logs/webcache3/accessa.log squid
> cache_log /accerater/logs/webcache3/cachea.log
> cache_store_log stdio:/accerater/logs/webcache3/storea.log1
> cache_dir aufs /accerater/webcache3/storage/aufs1/${process_number}
> 10200 16 64 min-size=262145
> coredump_dir /accerater/logs/webcache3/opmizer1
> unlinkd_program /accerater/webcache3/libexec/unlinkd
> unique_hostname maraservice1
> snmp_port 3401
> 
> endif
> 
> if ${process_number} = 2
> pid_filename /accerater/logs/webcache3/opmizer2/cacheb.pid
> cache_swap_state /accerater/logs/webcache3/cacheb_swap_log
> access_log stdio:/accerater/logs/webcache3/accessb.log squid
> cache_log /accerater/logs/webcache3/cacheb.log1
> cache_store_log stdio:/accerater/logs/webcache3/storeb.log1
> cache_dir aufs /accerater/webcache3/storage/aufs2/${process_number}
> 10200 16 64 min-size=262145
> coredump_dir /accerater/logs/webcache3/opmizer2
> unlinkd_program /accerater/webcache3/libexec/unlinka
> unique_hostname maraservice2
> snmp_port 3402
> 
> 
> endif
> 



More information about the squid-users mailing list