[squid-users] Slow Squid Proxy Server

From: Wennie V. Lagmay <[email protected]>
Date: Mon, 5 Dec 2005 12:36:30 +0300

Hi all,

I think Im having problem with my squid proxy server. To start with my proxy
server is DELL 2850 dual XEON 3.0 Ghz processor 64 bit architecture with 6
GIG om RAM and 5 x 36 GIG of hard drive, the software running is Fedora Core
2 64 bit software and squid 2.5 stable 7. Now here is what I'm
experiencing, using my workstation connected my local proxy and opening the
site yahoo.com and cnn.com here are the result:

http://www.yahoo.com
1st test = 21.6 seconds
2nd test = 4.3 seconds
3rd test = 28.4 seconds
4th test = 2.8 seconds
5th test = 9.7 seconds

http://www.cnn.com
1st test = 57.7 secs
2nd test = 12.3 secs
3rd test = 48.7 secs
4th test = 44.7 secs
5th test = 8.4 secs

Then afterwards I change my workstation to use our ISP's proxy and do the
same test. here are the reults:

http://www.yahoo.co
1st test = 2.2 secs
2nd test = 4.9 secs
3rd test= 4.2 secs
4thtest = 3.9 secs
5th test = 6.8 secs

http://www.cnn.com
1st test =16.7 secs
2nd test = 20.3 secs
3rd test = 12.3 secs
4th test = 11.3 secs
5th test = 16.1 secs

Take note that every after testing Im clearing my workstation cahcing and
all related stored files locally to make sure that my work station is
checking the cache server. Also our Local proxy is configure to check its
parent proxy which is our ISP's Proxy.

Also below im my proxy configuration can any body help me to figure out the
problem? any suggestion or comment is highl appreciated.

http_port xxx.xxx.201.194:8080
icp_port 3130
cache_peer xxx.xxx.93.87 parent 8080 0
defaultno-query
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 5120 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4096 KB
maximum_object_size_in_memory 3072 KB
ipcache_size 2048
ipcache_low 85
ipcache_high 90
cache_replacement_policy heap GDSF
memory_replacement_policy heap GDSF
cache_dir diskd /cache1/spool/squid 25000 16 256 Q1=500 Q2=512
cache_dir diskd /cache2/spool/squid 25000 16 256 Q1=500 Q2=512
cache_dir diskd /cache3/spool/squid 25000 16 256 Q1=500 Q2=512
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
debug_options ALL,1
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
refresh_pattern \.gif$ 10080 90% 43200
refresh_pattern \.jpg$ 10080 90% 43200
refresh_pattern \.bom\.gov\.au 30 20% 120
refresh_pattern \.html$ 2880 50% 22160
refresh_pattern \.htm$ 2880 50% 22160
refresh_pattern \.php$ 2880 50% 22160
refresh_pattern \.asp$ 2880 50% 22160
refresh_pattern \.class$ 10080 90% 43200
refresh_pattern \.zip$ 10080 90% 43200
refresh_pattern \.jpeg$ 10080 90% 43200
refresh_pattern \.mid$ 10080 90% 43200
refresh_pattern \.shtml$ 2880 50% 22160
refresh_pattern \.exe$ 10080 90% 43200
refresh_pattern \.thm$ 10080 90% 43200
refresh_pattern \.wav$ 10080 90% 43200
refresh_pattern \.txt$ 10080 90% 43200
refresh_pattern \.cab$ 10080 90% 43200
refresh_pattern \.au$ 10080 90% 43200
refresh_pattern \.mov$ 10080 90% 43200
refresh_pattern \.xbm$ 10080 90% 43200
refresh_pattern \.ram$ 10080 90% 43200
refresh_pattern \.avi$ 10080 90% 43200
refresh_pattern \.chtml$ 2880 50% 22160
refresh_pattern \.thb$ 10080 90% 43200
refresh_pattern \.dcr$ 10080 90% 43200
refresh_pattern \.bmp$ 10080 90% 43200
refresh_pattern \.phtml$ 2880 50% 22160
refresh_pattern \.mpg$ 10080 90% 43200
refresh_pattern \.pdf$ 10080 90% 43200
refresh_pattern \.art$ 10080 90% 43200
refresh_pattern \.swf$ 10080 90% 43200
refresh_pattern \.mp3$ 10080 90% 43200
refresh_pattern \.ra$ 10080 90% 43200
refresh_pattern \.spl$ 10080 90% 43200
refresh_pattern \.viv$ 10080 90% 43200
refresh_pattern \.doc$ 10080 90% 43200
refresh_pattern \.gz$ 10080 90% 43200
refresh_pattern \.Z$ 10080 90% 43200
refresh_pattern \.tgz$ 10080 90% 43200
refresh_pattern \.tar$ 10080 90% 43200
refresh_pattern \.vrm$ 10080 90% 43200
refresh_pattern \.vrml$ 10080 90% 43200
refresh_pattern \.aif$ 10080 90% 43200
refresh_pattern \.aifc$ 10080 90% 43200
refresh_pattern \.aiff$ 10080 90% 43200
refresh_pattern \.arj$ 10080 90% 43200
refresh_pattern \.c$ 10080 90% 43200
refresh_pattern \.cpt$ 10080 90% 43200
refresh_pattern \.dir$ 10080 90% 43200
refresh_pattern \.dxr$ 10080 90% 43200
refresh_pattern \.hqx$ 10080 90% 43200
refresh_pattern \.jpe$ 10080 90% 43200
refresh_pattern \.lha$ 10080 90% 43200
refresh_pattern \.lzh$ 10080 90% 43200
refresh_pattern \.midi$ 10080 90% 43200
refresh_pattern \.movie$ 10080 90% 43200
refresh_pattern \.mp2$ 10080 90% 43200
refresh_pattern \.mpe$ 10080 90% 43200
refresh_pattern \.mpeg$ 10080 90% 43200
refresh_pattern \.mpga$ 10080 90% 43200
refresh_pattern \.pl$ 10080 90% 43200
refresh_pattern \.ppt$ 10080 90% 43200
refresh_pattern \.ps$ 10080 90% 43200
refresh_pattern \.qt$ 10080 90% 43200
refresh_pattern \.qtm$ 10080 90% 43200
refresh_pattern \.ras$ 10080 90% 43200
refresh_pattern \.sea$ 10080 90% 43200
refresh_pattern \.sit$ 10080 90% 43200
refresh_pattern \.tif$ 10080 90% 43200
refresh_pattern \.tiff$ 10080 90% 43200
refresh_pattern \.snd$ 10080 90% 43200
refresh_pattern \.wrl$ 10080 90% 43200
refresh_pattern ^ftp:// 2880 60% 22160
refresh_pattern ^gopher:// 30 20% 120
refresh_pattern . 2880 50% 22160
refresh_pattern \/$ 2880 50% 4320
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 95
negative_ttl 2 minutes
positive_dns_ttl 24 hours
negative_dns_ttl 1 minute
range_offset_limit 0 KB
half_closed_clients off
acl all src 0.0.0.0/0.0.0.0
acl ipaddr src xxx.xxx.201.192/255.255.255.224
acl ipaddr1 src xxx.xxx.214.0/255.255.255.248
acl natmot src 192.168.10.0/255.255.255.0
acl natmot2 src 192.168.11.0/255.255.255.0
acl natmot3 src 192.168.12.0/255.255.255.0
acl natmot4 src 192.168.14.0/255.255.255.0
acl natmot5 src 192.168.15.0/255.255.255.0
acl natcuda1 src 192.168.64.0/255.255.224.0
acl snatmot src xxx.xxx.214.16/255.255.255.240
acl snatcud src xxx.xxx.214.8/255.255.255.248
acl num maxconn 3
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
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 manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny to_localhost
http_access allow ipaddr
http_access allow ipaddr1
http_access allow natmot
http_access allow natmot2
http_access allow natmot3
http_access allow natmot4
http_access allow natmot5
http_access allow natcuda1
http_access allow snatmot
http_access allow snatcud
http_access allow num
http_access allow localhost
http_access deny all
http_reply_access allow all
cache_effective_user squid
cache_effective_group squid
visible_hostname proxy.mydomain.net
memory_pools on
never_direct allow all
always_direct deny all
offline_mode off
coredump_dir /var/spool/squid
pipeline_prefetch on

Thank you vey much and I hope that you can help me here

Wennie
Received on Mon Dec 05 2005 - 02:37:19 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 31 2005 - 12:00:02 MST