[squid-users] cache/mem ratio ok but swap grows

From: Stuart Clark <newsgroup1@dont-contact.us>
Date: Tue, 15 Apr 2003 20:27:14 +1000

My swap seems to just grow and grow until I restart squid.

Why?

I want to grow my cache store another 40-50 gig.

Is this safe?

Ram is always maxed out

I know about the mem/cache size ratios and I'm well within bounds

All other stats look fine

Here are my mrtg stats

You can see where I've restarted squid and the swap and ram clears.

http://mrtg.spacelink.com.au/cache_server.html

Username: squidusers
Password: cache

Machine Specifications

Celeron 1.2 GHZ
512 RAM
1 x scsi 4 GIG (ext3)
1 x ATA100 70 GIG (ext3)
Redhat 7.3
squid-2.4.STABLE6-6.7.3.rpm
bind-9.2.1-1.7x.2
vmlinuz-2.4.18-26.7.x
Swap space 1 gig
Total size of cache storage 28gig

My squid box is running about 55 gig of traffic per month

The CPU runs at 2% or less

[root@proxy root]# cat /etc/squid/squid.conf | grep -v ^# | grep -v ^$

http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin ?
no_cache deny QUERY
cache_mem 32 MB
cache_swap_low 35
cache_swap_high 40
maximum_object_size 10000 KB
maximum_object_size_in_memory 8 KB
cache_dir ufs /cache 4800 16 256
cache_dir ufs /cache3 73000 16 256
cache_access_log /var/log/squid/access.log
acl PURGE method PURGE
acl snmppublic snmp_community public
acl taz src XXX.XXX.XXX.XXX/255.255.255.255
acl spacelink src XXX.XXX.XXX.XXX/255.255.255.0
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow spacelink
http_access allow PURGE localhost
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny PURGE
http_access deny all
icp_access allow all
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
snmp_port 3401
snmp_access allow snmppublic taz
snmp_incoming_address 0.0.0.0
snmp_outgoing_address 255.255.255.255
Received on Tue Apr 15 2003 - 04:27:30 MDT

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