[squid-users] Squid Slow Downloads problem

From: Hesham Shakil <hahmed@dont-contact.us>
Date: Thu, 16 Feb 2006 12:14:34 -0600 (CST)

Downloading files via squid (on Linux ONLY.. read below) is slower than
without squid. The normal download speed bypassing squid is 28+KB/s while
through squid it reduces to 16-17KB/s. Browsing seems fine, and the
internet bandwidth tests also give 28+KB/s when run through squid, so the
problems seems only with files 1MB+ in size.

I am running Squid 2.5.STABLE12 on Linux 2.6.12 kernel on:

P4 3GHz HT processor with 1GB RAM
SATA hard disk using ext3 filesystem

Here is what I have tried so far:

- Tried apache+mod_proxy+mod_cache on the same linux machine, worked
perfectly with 28+KB/s transfer rate
- Tried Squid-2.5.STABLE12 compiled for windows on a Windows XP machine
running on the same Internet connection and it worked fine at speeds of
28+KB/s
- Tried ufs/aufs/diskd but none improved the speed
- Tried recompiling squid with NONE but the very basic options
- Tried recompiling squid with and without pthreads/aio etc.

Here is squid build configuration:
Squid Cache: Version 2.5.STABLE12
configure options: i586-mandriva-linux-gnu --program-prefix=
--prefix=/usr --exec-prefix=/usr --bindir=/usr/sbin --sbindir=/usr/sbin
--sysconfdir=/etc/squid --datadir=/usr/share --includedir=/usr/include
--libdir=/usr/lib --libexecdir=/usr/lib/squid --localstatedir=/var
--sharedstatedir=/usr/com --mandir=/usr/share/man
--infodir=/usr/share/info --x-includes=/usr/X11R6/include
--x-libraries=/usr/X11R6/lib --enable-icap-support --with-maxfd=1024
--enable-poll --enable-snmp --enable-removal-policies=heap,lru
--enable-storeio=aufs,coss,diskd,ufs,null --enable-useragent-log
--enable-referer-log --enable-cachemgr-hostname=localhost
--enable-truncate --enable-underscores --enable-carp --enable-async-io
--enable-htcp --enable-delay-pools --enable-linux-netfilter --enable-ssl
--enable-arp-acl --enable-auth=basic,digest,ntlm
--enable-basic-auth-helpers=winbind,multi-domain-NTLM,getpwnam,YP,SMB,PAM,NCSA,MSNT,LDAP
--enable-ntlm-auth-helpers=SMB,fakeauth,no_check,winbind
--enable-digest-auth-helpers=password
--enable-external-acl-helpers=ip_user,ldap_group,unix_group,wbinfo_group,winbind_group
--disable-follow-x-forwarded-for --with-pthreads
--with-winbind-auth-challenge --disable-dependency-tracking
--disable-ident-lookups

and finally my squid.conf:

http_port 192.168.0.1:8080
icp_port 0
cache_peer proxy.saudi.net.sa parent 8080 7 no-query
default
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_dir aufs /var/spool/squid 1024 16 256
dns_nameservers 192.168.0.1
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
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
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
acl localnet src 192.168.0.0/255.255.0.0
acl to_localnet dst 192.168.0.0/255.255.0.0
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access allow CONNECT Safe_ports
http_access allow localnet
http_reply_access allow all
icp_access allow all
visible_hostname linserver
never_direct allow all
coredump_dir /var/spool/squid

Any ideas what the problem could be?

Regards
Hesham S. Ahmed
Received on Thu Feb 16 2006 - 11:14:38 MST

This archive was generated by hypermail pre-2.1.9 : Wed Mar 01 2006 - 12:00:03 MST