[squid-users] LRU cache_dir selection, empty dirs skipped in favor of full?

From: Matt Buford <matt@dont-contact.us>
Date: Sun, 13 Jan 2002 05:45:15 -0600

When using LRU, I'm confused about how Squid determines which cache_dir to
use when they are not all full. Take a look at the paste below to see what
I mean. Store directory #2 (the substantially larger one, but also the
fullest one) seems to be ALWAYS selected for new objects. In case it
matters, this cache has an abnormally high disk space to utilization ratio.
In other words, it has a lot of disk space for only a few users. It
wouldn't suprise me if the oldest objects are something like a year old.
Anyway, I would think it would fill all cache_dirs before even thinking of
deleting objects.

Store Directory Statistics:
Store Entries : 129566
Maximum Swap Size : 3174400 KB
Current Store Swap Size: 2131308 KB
Current Capacity : 67% used, 33% free

Store Directory #0 (ufs): /var/spool/squid
FS Block Size 4096 Bytes
First level subdirectories: 16
Second level subdirectories: 256
Maximum Size: 512000 KB
Current Size: 17024 KB
Percent Used: 3.33%
Filemap bits in use: 1553 of 16384 (9%)
Filesystem Space in use: 2882132/19678772 KB (15%)
Filesystem Inodes in use: 182097/2501856 (7%)
Flags:

Store Directory #1 (ufs): /storage1/squid/cache
FS Block Size 4096 Bytes
First level subdirectories: 16
Second level subdirectories: 256
Maximum Size: 307200 KB
Current Size: 101324 KB
Percent Used: 32.98%
Filemap bits in use: 3394 of 16384 (21%)
Filesystem Space in use: 1591148/2365220 KB (67%)
Filesystem Inodes in use: 100859/300960 (34%)
Flags:

Store Directory #2 (ufs): /storage2/squid/cache
FS Block Size 4096 Bytes
First level subdirectories: 16
Second level subdirectories: 256
Maximum Size: 1843200 KB
Current Size: 1751036 KB
Percent Used: 95.00%
Filemap bits in use: 111127 of 131072 (85%)
Filesystem Space in use: 2479056/11582820 KB (21%)
Filesystem Inodes in use: 115257/1471680 (8%)
Flags: SELECTED

Store Directory #3 (ufs): /storage3/squid/cache
FS Block Size 1024 Bytes
First level subdirectories: 16
Second level subdirectories: 256
Maximum Size: 512000 KB
Current Size: 261924 KB
Percent Used: 51.16%
Filemap bits in use: 13453 of 32768 (41%)
Filesystem Space in use: 23418125/25553823 KB (92%)
Filesystem Inodes in use: 45096/6684672 (1%)
Flags:
Received on Sun Jan 13 2002 - 04:43:31 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:05:50 MST