Re: errors in ver 2 (fwd)

From: Bruce Campbell <bc@dont-contact.us>
Date: Thu, 12 Nov 1998 08:32:27 +1000 (EST)

On Wed, 11 Nov 1998 roddy@satlink.com.au wrote:

> Hi,
> Anyone know why Squid 2 keeps going past the cache size?? We had
> a 8 gig drive fill up, then squid 2 just kept exiting abnormally saying
> the drive was full, is there anyway to fix this?

: The next argument is the amount, in kilobytes, that squid will use under
: that directory. Note that squid keeps track of the total size of the
: objects it has stored under that directory, and does not keep track of
: how much space is actually used under that directory. A matter of
: semantics, surely, but one that can bite you fiercely on the heel when
: it fills up. Set this to roughly 90% of the filesystem size, 75% of the
: filesystem size if its the first defined cache drive. (swap log)

ie:

The OS says:
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/sd4s1e 4106701 2693909 1084256 71% /cache4

Squid.conf says:

cache_dir /cache4 3500 16 256

Admittedly I'm being a bit cautious with that setting, and can take it up
to 3800. You might also like to consider the impact of fiddling with the
inode size of the filesystem; ie, each directory takes up an inode or
more, each file takes up at least one inode, the size of your inodes can
make a difference ;)

--==--
Bruce.

Sysadmin, TheHub.
Received on Wed Nov 11 1998 - 15:40:10 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:42:59 MST