Re: [squid-users] squid cache_dir not getting objects

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 14 Dec 2011 12:28:24 +1300

 On Tue, 13 Dec 2011 22:58:00 +0530, Benjamin wrote:
> Hi,
>
> I configured 4 cache_dir in squid.conf
>
> cache_dir aufs /c1 75776 64 512
> cache_dir aufs /c2 102400 64 512
> cache_dir aufs /c3 102400 64 512
> cache_dir aufs /c4 102400 64 512
>
> But when i check df -kh on server, i got
>
> /dev/sda4 99G 189M 94G 1% /c1
> /dev/sdb1 135G 17G 112G 13% /c2
> /dev/sdc1 135G 17G 112G 13% /c3
> /dev/sdd1 135G 17G 112G 13% /c4
>
> It is showing that /c1 is not taking objects on disk and other
> directories are having objects on disk.What could be the reason of
> it?

 Squid spreads the object "load" (measured in object byte sizes) based
 on free space in each cache directory. When your other cache_dirs fill
 up so all have less than 75,776 MB free the smaller directory will start
 to fill as well.

 There is an open feature request bug to make Squid measure the dir load
 in other ways (ie % filled). Patches welcome.

 Amos
Received on Wed Dec 14 2011 - 00:28:26 MST

This archive was generated by hypermail 2.2.0 : Wed Dec 14 2011 - 12:00:03 MST