On 12.08 15:03, James Zhao wrote:
I am running squid-2.3STABLE3 on solaris; the cache_dir is setup like this:

cache_dir ufs /opt/squid-2.3.STABLE3/cache 1000 16 256

But when I am looking at the cache directory, the cached objects are not
distributed evenly among the subdirectories, almost all of them are under 00
subdirectory:

# cd /opt/squid-2.3.STABLE3/cache
# du -sk *
961274  00
2088   01

Why is that? What algorithm does squid use to store the cached objects?

This is normal.

Squid only uses as many subdirectories as it needs for the given size. If you speficy too many subdirectories then all the excess directories will be empty.

Regards
Henrik

Reply via email to