RE: [squid-users] squid slow --- don't know why

From: Angela Burrell <angela@dont-contact.us>
Date: Fri, 10 Sep 2004 09:22:17 -0400

Joseph,

I have never used delay pools, but I did incorporate HTTPd_accel into my
squid, which helped my speed. I do not host a web server, but it seemed to
help. I'm assuming you are using a transparent proxy.

Try adding the following lines to your squid.conf, then restart squid.

# HTTP_ACCEL options
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

See if that helps.

Also, I don't see a "cache_effective_user or cache_effective_group"
directive. Not sure if this is necessary, but when troubleshooting I find
it's best not to leave any option out, no matter how insignificant it may
seem.

Angela

-----Original Message-----
From: Joseph Rinckey [mailto:jrinckey@pineriver.k12.mi.us]
Sent: September 9, 2004 7:34 PM
To: Angela Burrell
Cc: squid-users@squid-cache.org
Subject: Re: [squid-users] squid slow --- don't know why

My squid.conf file is below. I also commented out the delay pool lines
and restarted squid to see what kind of speeds I got. They were faster
than with the delay pools, but still slower than without the proxy all
together. The speeds were around the 315 Kbps. Much better than 16Kbps:)

If the delay pools are in fact my problem I guess I don't know how to
set them up. I just want to slow everyone down who downloads files
bigger than 2Mb. But I do not want to slow everything down.

squid.conf:
------------

http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 256 MB
cache_swap_low 95
cache_swap_high 98
cache_dir ufs /cache 25000 32 512
auth_param basic program /usr/lib/squid/ldap_auth -b
ou=people,dc=pineriver,dc=k12,dc=mi,dc=us -s sub -h 192.168.0.13 -p 389
-v 3 -f uid=%s
auth_param basic children 10
auth_param basic realm Pine River Area Schools (proxy/cache server)
auth_param basic credentialsttl 1 hours
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
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 to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 # https, snews
acl SSL_ports port 873 # rsync
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 Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_portshttp_access deny to_localhost
acl ldapauth proxy_auth REQUIRED
acl mail-server dstdomain .pineriver.k12.mi.us
acl tech-laptop src 172.20.20.254
no_cache deny mail-server
always_direct allow mail-server
http_access allow ldapauth
http_access allow localhost
http_access allow tech-laptop
http_access deny all
http_reply_access allow all
icp_access allow all
cache_mgr cache@pineriver.k12.mi.us
visible_hostname pr-cache.pineriver.k12.mi.us
delay_pools 1
delay_class 1 1
delay_parameters 1 12500/24000
delay_access 1 allow all
coredump_dir /var/spool/squid

------------------

Joseph Rinckey
Received on Fri Sep 10 2004 - 07:23:17 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Oct 01 2004 - 12:00:02 MDT