Re: [squid-users] Commercial Squid tweak speeds things up significantly!

From: - Mikael - <funactivities_at_gmail.com>
Date: Tue, 29 Nov 2011 13:32:16 -0700

Thanks, Amos. I don't understand why their implementation is many
times faster than mine unless my Squid is horribly (mis)configured.

Is there anything in this config that would slow down Squid?

http_port 3128

refresh_pattern http://.*\.adobe\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://.*\.windowsupdate\.microsoft\.com/ 0 80% 20160
reload-into-ims
refresh_pattern http://office\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://windowsupdate\.microsoft\.com/ 0 80% 20160
reload-into-ims
refresh_pattern http://w?xpsp[0-9]\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://w2ksp[0-9]\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://download\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://download\.macromedia\.com/ 0 80% 20160 reload-into-ims

refresh_pattern -i \.flv$ 10080 90% 999999 ignore-no-cache
override-expire ignore-private
refresh_pattern -i \.index.(html|htm)$ 0 40% 10080
refresh_pattern -i \.(html|htm|css|js)$ 1440 40% 40320
refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 10080 90% 43200
override-expire ignore-no-cache ignore-no-store ignore-private
refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|swf|x-flv)$ 43200 90%
432000 override-expire ignore-no-cache ignore-no-store ignore-private
refresh_pattern -i
\.(deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|tiff)$ 10080 90% 43200
override-expire ignore-no-cache ignore-no-store ignore-private

refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern ^ftp: 144000 20% 1008000
refresh_pattern -i \.index.(html|htm)$ 1440 90% 40320
refresh_pattern -i \.(html|htm|css|js)$ 1440 90% 40320
refresh_pattern (/cgi-bin/|\?) 0 0% 0

acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl schoolip src 10.0.0.1

acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
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 manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow schoolip
http_access allow test
#http_access allow all

cache_mem 3994 MB
maximum_object_size 65536 KB
maximum_object_size_in_memory 64 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
cache_dir aufs /var/spool/squid3 16384 32 512
half_closed_clients off
coredump_dir /var/spool/squid3
half_closed_clients off
cache_store_log none
cache_access_log none
logfile_rotate 3
ipcache_size 16384
ipcache_low 98
ipcache_high 99
log_fqdn off
half_closed_clients off
reload_into_ims on

cache_mgr help_at_my_domain_name.org
visible_hostname gw.my_domain_name.org
httpd_suppress_version_string off
Received on Tue Nov 29 2011 - 20:32:22 MST

This archive was generated by hypermail 2.2.0 : Wed Nov 30 2011 - 12:00:03 MST