Re: [squid-users] SQUID makes few slow connections (see video)

From: Tytus Rogalewski <tytanick_at_gmail.com>
Date: Wed, 2 Jun 2010 10:33:30 +0200

Ok lets start.
Yes, my proxy is Forward only, so that my users in my network (lan)
have better access to external pages in internet only.
It isnt normal network delay, and if you didnt saw the video i made,
please see it : http://sky-link.net/temp/squid/squid_performance.html
(i have only 50KB/s upload, so be patient, its only 10 MB ) - as you
see , without squid pages are loading always in 1 second, so it is not
normal network delay :D

setting "log_fqdn off" didnt helpes at all
also hashing : #positive_dns_ttl 24 hours
                     #negative_dns_ttl 1 minutes
didnt helped at all

> You said "turned off redirect". Can you elaborate?
I ment that i turned off redirecting 80 port to squid
iptables -t nat -A PREROUTING -p tcp -s 192.168.0.2 ! -d
192.168.0.0/24 --dport 80 -j REDIRECT --to-port 8123 # Tytanick
i just simply HASH # this and reload my iptables, and then my computer
isnt using squid, and by mistake i did this and then i thought that in
2.7.7 provlem is resolved but then i saw that i only turned off
redirecting :) - so problem in 2.7.7 was the same as in 3.0.20

and still, this lag i see only when i use proxy and enter this page
allegro.pl which i never visited before (with proxy) so proxy have to
download images from website and it isnt giving me it from itself
cache, if i enter this page again with another internet browser (so i
dont have caschen ON MY CONPUTER) this page loads quickly, with no
delays ( so when squid have casched website and give it to me, it
loads FAST, but if id doesnt have casched page, conntctions ale very
slow only for few images, i would say, 20%)

This is "General Runtime Info" right ? :
---------------------------------------------------------------------------------------------
sky-link squid # squidclient -h 192.168.0.1 -p 8123 mgr:info
HTTP/1.0 200 OK
Server: squid/3.0.STABLE20
Mime-Version: 1.0
Date: Wed, 02 Jun 2010 08:26:48 GMT
Content-Type: text/plain
Expires: Wed, 02 Jun 2010 08:26:48 GMT
Last-Modified: Wed, 02 Jun 2010 08:26:48 GMT
X-Cache: MISS from sky-link.net
X-Cache-Lookup: MISS from sky-link.net:8123
Via: 1.0 sky-link.net (squid/3.0.STABLE20)
Proxy-Connection: close

Squid Object Cache: Version 3.0.STABLE20
Start Time: Wed, 02 Jun 2010 08:25:01 GMT
Current Time: Wed, 02 Jun 2010 08:26:48 GMT
Connection information for squid:
        Number of clients accessing cache: 2
        Number of HTTP requests received: 292
        Number of ICP messages received: 0
        Number of ICP messages sent: 0
        Number of queued ICP replies: 0
        Number of HTCP messages received: 0
        Number of HTCP messages sent: 0
        Request failure ratio: 0.00
        Average HTTP requests per minute since start: 163.8
        Average ICP messages per minute since start: 0.0
        Select loop called: 245996 times, 0.435 ms avg
Cache information for squid:
        Hits as % of all requests: 5min: 0.6%, 60min: 0.6%
        Hits as % of bytes sent: 5min: 5.5%, 60min: 5.5%
        Memory hits as % of hit requests: 5min: 100.0%, 60min: 100.0%
        Disk hits as % of hit requests: 5min: 0.0%, 60min: 0.0%
        Storage Swap size: 24756 KB
        Storage Swap capacity: 0.0% used, 100.0% free
        Storage Mem size: 1132 KB
        Storage Mem capacity: 0.1% used, 99.9% free
        Mean Object Size: 5.52 KB
        Requests given to unlinkd: 0
Median Service Times (seconds) 5 min 60 min:
        HTTP Requests (All): 0.13498 0.13498
        Cache Misses: 0.14252 0.14252
        Cache Hits: 0.00000 0.00000
        Near Hits: 0.00000 0.00000
        Not-Modified Replies: 0.00000 0.00000
        DNS Lookups: 0.01153 0.01153
        ICP Queries: 0.00000 0.00000
Resource usage for squid:
        UP Time: 106.965 seconds
        CPU Time: 0.446 seconds
        CPU Usage: 0.42%
        CPU Usage, 5 minute avg: 0.48%
        CPU Usage, 60 minute avg: 0.48%
        Process Data Segment Size via sbrk(): 6520 KB
        Maximum Resident Size: 73760 KB
        Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
        Total space in arena: 6796 KB
        Ordinary blocks: 6723 KB 9 blks
        Small blocks: 0 KB 0 blks
        Holding blocks: 7940 KB 23 blks
        Free Small blocks: 0 KB
        Free Ordinary blocks: 72 KB
        Total in use: 14663 KB 100%
        Total free: 72 KB 0%
        Total size: 14736 KB
Memory accounted for:
        Total accounted: 5119 KB 35%
        memPool accounted: 5119 KB 35%
        memPool unaccounted: 9616 KB 65%
        memPoolAlloc calls: 104518
        memPoolFree calls: 83030
File descriptor usage for squid:
        Maximum number of file descriptors: 1024
        Largest file desc currently in use: 119
        Number of file desc currently in use: 103
        Files queued for open: 0
        Available number of file descriptors: 921
        Reserved number of file descriptors: 100
        Store Disk files open: 0
Internal Data Structures:
          4517 StoreEntries
           284 StoreEntries with MemObjects
           282 Hot Object Cache Items
          4487 on-disk objects
---------------------------------------------------------------------------------------------

-- 
Z pozdrowieniami
Tytus Rogalewski
mail: tytanick{monkey}gmail.com
www.sky-link.net
gg: 210533
skype: tytanick
Received on Wed Jun 02 2010 - 08:33:52 MDT

This archive was generated by hypermail 2.2.0 : Wed Jun 02 2010 - 12:00:03 MDT