Re: [squid-users] why it works so SLOW ???

From: Chris Wilcox <not_rich_yet@dont-contact.us>
Date: Sat, 29 Nov 2003 12:30:31 +0000

Ok, have you tried the following to see if you can repeat the problem:

1) Use a newer version of Squid. If you're compiling from source get the
latest stable build.
2) Use a default install of Squid and use the default squid.conf options
except for changing things like cache_dir, IP, ICP port etc. Leave
everything at default, get it working and then start to 'play'. Things like
cache_dir folders may be best left at the default until things are going.
I'd think the default settings in squid.conf are there for a reason. Only
change them if you know exactly why you are changing them.
Don't alter ./configure options until a default compile works fine for you.
3) Do you get the same slowness if you use a different browser?
4) Are you browsing from the server running squid or are you browsing from a
LAN client?
5) What OS are you running Squid on?

Regards,

nry

>
>[Im repeating this question because I havent receive help]
>
>Hallo everyone,
>
>My problem:
>I use squid to access WWW. But when I try to get to any page than I have to
>wait about 20 second or more till anything appear in my browser ( Opera
>7.21 ).
>I have no idea why its like that. When I turn off squid and set browser not
>to use proxy then any page I request load immediately.
>
>If anyone would help me to resolve this problem then I ll be in debt
>forever.
>
>This is my squid version
>
>Squid Cache: Version 2.5.STABLE2
>
>and this is options that I used to configure and compile
>
>configure options: --prefix=/proxy/usr --exec-prefix=/proxy/usr
>--enable-delay-pools --enable-cache-digests --enable-poll
>--disable-ident-lookups
>--enable-truncate --enable-removal-policies --enable-err-language=Polish
>
>
>and this is my squid.conf
>
>
>
>http_port 3128
>icp_port 0
>acl QUERY urlpath_regex cgi-bin \?
>no_cache deny QUERY
>cache_mem 32 MB
>cache_dir ufs /cache 100 8 126
>redirect_rewrites_host_header off
>#replacement_policy GDSF
>acl localnet src 192.168.1.0/255.255.255.0
>acl localhost src 127.0.0.1/255.255.255.255
>acl Safe_ports port 80 443 210 119 70 21 1025-65535
>acl CONNECT method CONNECT
>acl all src 0.0.0.0/0.0.0.0
>acl manager proto cache_object
>httpd_accel_with_proxy on
>http_access allow localnet
>http_access allow localhost
>http_access deny !Safe_ports
>http_access deny CONNECT
>http_access deny all
>maximum_object_size 1000 KB
>ipcache_size 1024
>ipcache_low 60
>ipcache_high 75
>cache_mgr twoj@email
>cache_effective_user squid
>cache_effective_group squid
>log_icp_queries off
>cachemgr_passwd tajnehaselko all
>buffered_logs on
>positive_dns_ttl 6 hours
>
>
>There is a state of my system:
>
>
> This is TOP
>
> 18:18:36 up 8 days, 21:06, 1 user, load average: 0.00, 0.00, 0.00
>44 processes: 43 sleeping, 1 running, 0 zombie, 0 stopped
>CPU states: 0.0% user, 0.4% system, 0.0% nice, 99.6% idle
>Mem: 255324K total, 153520K used, 101804K free, 15340K buffers
>Swap: 0K total, 0K used, 0K free, 59500K cached
>
> PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
>15075 root 12 0 1712 1712 1512 S 0.1 0.6 0:00 sshd
>15088 root 15 0 972 972 768 R 0.1 0.3 0:00 top
> 1 root 8 0 216 216 184 S 0.0 0.0 0:06 init
> 2 root 9 0 0 0 0 SW 0.0 0.0 0:00 keventd
> 3 root 19 19 0 0 0 SWN 0.0 0.0 0:00
>ksoftirqd_CPU0
> 4 root 9 0 0 0 0 SW 0.0 0.0 0:00 kswapd
> 5 root 9 0 0 0 0 SW 0.0 0.0 0:00 bdflush
> 6 root 9 0 0 0 0 SW 0.0 0.0 0:00 kupdated
> 7 root -1 -20 0 0 0 SW< 0.0 0.0 0:00 mdrecoveryd
> 67 root 9 0 756 756 648 S 0.0 0.2 0:00 syslogd
> 70 root 9 0 464 464 392 S 0.0 0.1 0:00 klogd
> 100 root 8 0 696 696 612 S 0.0 0.2 0:00 inetd
> 103 root 9 0 1148 1148 1032 S 0.0 0.4 0:01 sshd
> 109 lp 9 0 884 884 744 S 0.0 0.3 0:00 lpd
> 112 root 9 0 568 568 488 S 0.0 0.2 0:00 crond
> 118 root 9 0 1612 1608 1008 S 0.0 0.6 0:00 smbd
> 122 root 9 0 472 472 408 S 0.0 0.1 0:01 gpm
> 125 root 9 0 0 0 0 SW 0.0 0.0 0:00 eth1
> 127 root 9 0 1504 1504 896 S 0.0 0.5 0:00 dhcpd
> 143 root 9 0 0 0 0 SW 0.0 0.0 0:00 eth0
> 343 root 9 0 484 484 420 S 0.0 0.1 0:00 agetty
> 344 root 9 0 484 484 420 S 0.0 0.1 0:00 agetty
> 345 root 9 0 484 484 420 S 0.0 0.1 0:00 agetty
> 346 root 9 0 484 484 420 S 0.0 0.1 0:00 agetty
> 347 root 9 0 484 484 420 S 0.0 0.1 0:00 agetty
> 348 root 9 0 484 484 420 S 0.0 0.1 0:00 agetty
> 5127 root 9 0 940 940 764 S 0.0 0.3 0:00 adsl-connect
> 5385 root 9 0 936 936 768 S 0.0 0.3 0:00 safe_mysqld
> 5407 mysql 9 0 12304 12M 2796 S 0.0 4.8 0:00 mysqld
> 5409 mysql 8 0 12304 12M 2796 S 0.0 4.8 0:00 mysqld
> 5410 mysql 9 0 12304 12M 2796 S 0.0 4.8 0:00 mysqld
> 5411 mysql 9 0 12304 12M 2796 S 0.0 4.8 0:00 mysqld
> 5412 mysql 9 0 12304 12M 2796 S 0.0 4.8 0:00 mysqld
> 5413 mysql 9 0 12304 12M 2796 S 0.0 4.8 0:00 mysqld
> 5414 mysql 9 0 12304 12M 2796 S 0.0 4.8 0:00 mysqld
> 5415 mysql 9 0 12304 12M 2796 S 0.0 4.8 0:00 mysqld
> 5416 mysql 9 0 12304 12M 2796 S 0.0 4.8 0:00 mysqld
> 5417 mysql 9 0 12304 12M 2796 S 0.0 4.8 0:00 mysqld
>12721 root 9 0 1016 1016 860 S 0.0 0.3 0:00 squid
>12723 squid 14 0 7496 7472 1536 S 0.0 2.9 0:06 squid
>12726 squid 9 0 316 316 264 S 0.0 0.1 0:00 unlinkd
>14439 root 9 0 824 820 680 S 0.0 0.3 0:00 pppd
>14440 root 11 0 472 472 400 S 0.0 0.1 0:01 pppoe
>15076 root 9 0 1196 1196 928 S 0.0 0.4 0:00 bash
>
>
>
>AND this is PROCINFO
>
>
>root@slack:~# procinfo
>Linux 2.4.18 (root@midas) (gcc 2.95.3 20010315 ) #4 Fri May 31 01:25:31 PDT
>2002 1CPU [slack.(none)]
>
>Memory: Total Used Free Shared Buffers
>Cached
>Mem: 255324 153676 101648 0 15340
>59532
>Swap: 0 0 0
>
>Bootup: Tue Nov 18 21:12:05 2003 Load average: 0.00 0.00 0.00 1/45 15091
>
>user : 0:18:46.16 0.1% page in : 389198 disk 1: 24396r
>171572w
>nice : 0:00:00.00 0.0% page out: 1016112
>system: 0:03:12.43 0.0% swap in : 0
>idle : 8d 20:45:35.00 99.8% swap out: 0
>uptime: 8d 21:07:33.58 context : 4945885
>
>irq 0: 76725359 timer irq 10: 550298 eth0
>irq 1: 3 keyboard irq 11: 432096 eth1
>irq 2: 0 cascade [4] irq 12: 0 PS/2 Mouse
>irq 6: 2 irq 14: 193109 ide0
>irq 8: 1 rtc irq 15: 4 ide1
>
>root@slack:~#
>
>I have 2 more users ( home net).
>Squid is installed on PIII 700 Mhz, IDE HDD, 256 MB RAM OS: Linux
>Slackware 8.1
>There is ext2 file system. All system ist installed on 1 partition and
>for proxy server is created separated directory /proxy and /cache.
>
>
>PS.
>I have no problem with download. Avarage speed during download is 50 -
>60 Kbps
>

_________________________________________________________________
Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile
Received on Sat Nov 29 2003 - 05:30:32 MST

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