Hello Amos :
Sorry , previous config is a simple config file
for testing tproxy.
But i checked again and switch different part of
config for disabling the warning info and find real reason .
first config ( it will cause warning info) :
maximum_object_size 100 MB
maximum_object_size_in_memory 4095 bytes
WARNING: disk-cache maximum object size is too
large for mem-cache: 102400.00 KB > 4.00 KB
Second config ( no any warning info ) :
maximum_object_size 10 MB
maximum_object_size_in_memory 10 MB
or
maximum_object_size 4095 bytes
maximum_object_size_in_memory 4095 bytes
or
maximum_object_size 10 MB
maximum_object_size_in_memory 11 MB
if condition is maximum_object_size < =
maximum_object_size_in_memory at our config , We won't find warning info ,
But i think it will be error direction .
Whether it is a bug , if possible , please give
me some advisement .
Best Regards
john
于 2015年03月03日 23:36, Amos Jeffries 写道:
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
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users