Re: [squid-users] Cache consuming more space than set to consume - Getting Critical

From: <SMORRIS@dont-contact.us>
Date: Thu, 5 Feb 2004 22:09:03 -0600

>The only relevant settings are your cache_dir and the swap max/min
>settings.

>But I am still not convinced your problem is the cache growing beyond the
>cache_dir size. If there was such problems in 2.5.STABLE1 I am pretty sure

>we would have known about it already.

>So please use "du" to investivate the usage within you cache directory,
>and verify that your swap.state file and other log files are not
>exessively large (as they get if log rotation is not set up).

Henrik

Here is some more data. I tried to only grab the relavant statistics for
which you asked:

[root@squid squid]# pwd
/var/spool/squid

[root@squid squid]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 5036316 152652 4627832 4% /
/dev/hda1 2016016 42944 1870660 3% /boot
/dev/hda3 10080520 57924 9510528 1% /home
none 370024 0 370024 0% /dev/shm
/dev/hdb3 1004052 16460 936588 2% /tmp
/dev/hda6 5036284 2312136 2468316 49% /usr
/dev/hda5 5036284 32912 4747540 1% /usr/local
/dev/hdb2 10080520 8088856 1479596 85% /var

[root@squid squid]# ls
00 03 06 09 0C 0F 12 15 18 1B 1E 21 24 27 2A 2D 30 33 36

39 swap.state 01 04 07 0A 0D 10 13 16 19 1C 1F 22 25 28 2B
2E 31 34 37
3A 02 05 08 0B 0E 11 14 17 1A 1D 20 23 26 29 2C 2F 32 35
38 3B

[root@squid squid]# ll swap*
-rw-r--r-- 1 squid squid 29809872 Feb 5 21:32 swap.state

[root@squid squid]# pwd
/var/log/squid

[root@squid squid]# ll
total 270160
-rw-r--r-- 1 squid squid 276303426 Feb 5 21:34 access.log
-rw-r--r-- 1 squid squid 59817 Feb 5 21:29 cache.log

du summary (du -x -h):

1.4G ./squid/00
476K ./squid/01
1.5G ./squid/02
971M ./squid/03
1.2G ./squid/04
1.1G ./squid/05
714M ./squid/06
453M ./squid/07

( 1.3M ./squid/08 through 1.3M ./squid/3B are all 1.3 MB each)

Total for /var/spool/squid:
7.2G ./squid

From /etc/squid/conf
cache_dir ufs /var/spool/squid 5000 60 256

#Default:
# cache_swap_low 90
# cache_swap_high 95

(I have no change on these settings from their default.)

Thanks Henrik!
Sam
Received on Thu Feb 05 2004 - 21:09:05 MST

This archive was generated by hypermail pre-2.1.9 : Mon Mar 01 2004 - 12:00:02 MST