Re: [squid-users] Re: slow performance 1 user : 3.1.0.16 on default config

From: Andres Salazar <ndrsslzr80_at_gmail.com>
Date: Tue, 16 Feb 2010 13:58:44 -0600

Amos,

Odd enough the same config and same squid/OS build in another box
worked without any problems. Something happened in that Dual Atom 1GB
box that squid didnt like.

Below is the output of cache.log on the fast machine FYI in case there
is some kind of obscure bug.

2010/02/16 14:39:13| Starting Squid Cache version 3.1.0.16 for
i686-pc-linux-gnu...
2010/02/16 14:39:13| Process ID 19843
2010/02/16 14:39:13| With 1024 file descriptors available
2010/02/16 14:39:13| Initializing IP Cache...
2010/02/16 14:39:13| DNS Socket created at [::], FD 5
2010/02/16 14:39:13| Adding domain my.domain from /etc/resolv.conf
2010/02/16 14:39:13| Adding nameserver 4.2.2.2 from /etc/resolv.conf
2010/02/16 14:39:13| Adding nameserver 4.2.2.1 from /etc/resolv.conf
2010/02/16 14:39:13| Adding nameserver 196.40.3.10 from /etc/resolv.conf
2010/02/16 14:39:13| Adding nameserver 196.40.3.13 from /etc/resolv.conf
2010/02/16 14:39:14| Unlinkd pipe opened on FD 10
2010/02/16 14:39:14| Store logging disabled
2010/02/16 14:39:14| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2010/02/16 14:39:14| Target number of buckets: 1008
2010/02/16 14:39:14| Using 8192 Store buckets
2010/02/16 14:39:14| Max Mem size: 262144 KB
2010/02/16 14:39:14| Max Swap size: 0 KB
2010/02/16 14:39:14| Using Least Load store dir selection
2010/02/16 14:39:14| Set Current Directory to /usr/local/squid/var/cache
2010/02/16 14:39:14| Loaded Icons.
2010/02/16 14:39:14| Accepting HTTP connections at [::]:3128, FD 11.
2010/02/16 14:39:14| HTCP Disabled.
2010/02/16 14:39:14| Squid modules loaded: 0
2010/02/16 14:39:14| Ready to serve requests.
2010/02/16 14:39:15| storeLateRelease: released 0 objects
2010/02/16 14:39:43| Preparing for shutdown after 4 requests
2010/02/16 14:39:43| Waiting 0 seconds for active connections to finish
2010/02/16 14:39:43| FD 11 Closing HTTP connection
2010/02/16 14:39:45| Shutting down...
2010/02/16 14:39:45| basic/auth_basic.cc(97) done: Basic
authentication Shutdown.
2010/02/16 14:39:45| Closing unlinkd pipe on FD 10
2010/02/16 14:39:45| storeDirWriteCleanLogs: Starting...
2010/02/16 14:39:45| Finished. Wrote 0 entries.
2010/02/16 14:39:45| Took 0.00 seconds ( 0.00 entries/sec).
CPU Usage: 0.039 seconds = 0.029 user + 0.010 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
        total space in arena: 3772 KB
        Ordinary blocks: 3743 KB 16 blks
        Small blocks: 0 KB 1 blks
        Holding blocks: 2004 KB 10 blks
        Free Small blocks: 0 KB
        Free Ordinary blocks: 28 KB
        Total in use: 5747 KB 152%
        Total free: 28 KB 1%
2010/02/16 14:39:45| Open FD READ/WRITE 5 DNS Socket
2010/02/16 14:39:45| Open FD READ/WRITE 8 Waiting for next request
2010/02/16 14:39:45| Open FD READ/WRITE 9
googleads.g.doubleclick.net idle connection
2010/02/16 14:39:45| Open FD READ/WRITE 12 Waiting for next request
2010/02/16 14:39:45| Open FD READ/WRITE 13 www.google-analytics.com
idle connection
2010/02/16 14:39:45| Open FD READ/WRITE 14 mail.google.com idle connection
2010/02/16 14:39:45| Squid Cache (Version 3.1.0.16): Exiting normally.

Thank you for your kind Help Amos.

Andres

On Mon, Feb 15, 2010 at 11:07 PM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
> Andres Salazar wrote:
>>
>> Hello,
>>
>> This time we can see I followed the original config. A page like
>> cnn.com takes about 60 seconds to load. Without the proxy it takes 10
>> seconds.
>
> That sort of matches the relative number of parallel connections modern
> browsers will open to proxies vs to web servers.
>
> You need to read this:
>
> http://www.stevesouders.com/blog/2008/03/20/roundup-on-parallel-connections/
>
> �"
>
> Note that if you�re behind a proxy (at work, etc.) your download
> characteristics change. If web clients behind a proxy issued too many
> simultaneous requests an intelligent web server might interpret that as a
> DoS attack and block that IP address. Browser developers are aware of this
> issue and throttle back the number of open connections.
>
> In Firefox the network.http.max-persistent-connections-per-proxy setting has
> a default value of 4. If you try the Max Connections test page while behind
> a proxy it loads painfully slowly opening no more than 4 connections at a
> time to download 180 images. IE8 drops back to 2 connections per server when
> it�s behind a proxy, so loading the Max Connections test page shows an
> upperbound of 60 open connections. Keep this in mind if you�re comparing
> notes with others � if you�re at home and they�re at work you might be
> seeing different behavior because of a proxy in the middle.
>
> "
>
> Amos
> --
> Please be using
> �Current Stable Squid 2.7.STABLE8 or 3.0.STABLE24
> �Current Beta Squid 3.1.0.16
>
Received on Tue Feb 16 2010 - 19:59:01 MST

This archive was generated by hypermail 2.2.0 : Wed Feb 17 2010 - 12:00:04 MST