leongmzlist wrote:
Hi,
I have the following on my config:
cache_dir coss /data/logs/squid_data/squid_coss.bin 9216
block-size=8192 max-size=32768 membufs=128
cache_dir aufs /data/logs/squid_data/squid-large-files 20480 20 256
cache_swap_log /data/logs/squid_data/%s
All the files smaller than 32K are supposed to be store in the COSS
file, correct? However, I see small files stored in the aufs
cache_dir as well. It seems that squid's just roundrobin the stores.
mike
There is a store_dir_select_algorithm directive, which defaults to
"least-load", but can be set to round-robin. In other words unless you
have a fairly similar amount of big and small objects entering your
cache, the aufs cache_dir is going to be the least loaded on occasion,
and will take some of the smaller objects.
There was a discussion a few weeks ago about a min-size cache_dir
option, that also has a possible explanation of what you are seeing:
http://www.squid-cache.org/mail-archive/squid-users/200702/0146.html
Chris