Squid proxy analiza rada

Kako analizirati rad Squid proxy servera, posebno ako je (naglo) usporio svoj rad, a ne vidi se neki konkretan razlog.
Ima par jednostavnih stavki koje treba odmah proveriti :
Test 1
Sa svoje mašine uraditi ping ka serveru, i videti jel vreme znatno veće nego kad se pinguje neki drugi server u istom segmentu mreže
Test 2
Direktno sa servera uraditi wget za neki veliki fajl (npr iso za najnoviju Fedoru ili slično), i uraditi to isto sa nekog drugog servera iz istog segmenta mreže. Viodeti da li se brzina skidanja fajla bitno razlikuje za oba servera.
Test 3
Iz komandne linije samog servera uraditi :
# squidclient -p 1111 mgr:info 1111 je port po kom radi Squid Proxy
….. informacije vezane za Squid verziju i vreme koje je aktivan
Connection information for squid:
Number of clients accessing cache: 55
Number of HTTP requests received: 27718
Number of ICP messages received: 0
…..
Average HTTP requests per minute since start: 748.4
Average ICP messages per minute since start: 0.0
Select loop called: 6204818 times, 0.358 ms avg
Cache information for squid:
Hits as % of all requests: 5min: 15.2%, 60min: 24.2%
Hits as % of bytes sent: 5min: 7.5%, 60min: 8.0%
Memory hits as % of hit requests: 5min: 23.2%, 60min: 4.6%
Disk hits as % of hit requests: 5min: 57.4%, 60min: 55.6%
Storage Swap size: 3686228 KB
Storage Swap capacity: 90.0% used, 10.0% free
Storage Mem size: 83004 KB
Storage Mem capacity: 32.0% used, 68.0% free
Mean Object Size: 25.95 KB
Requests given to unlinkd: 3982
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 0.05633 0.04776
Cache Misses: 0.07409 0.07409
Cache Hits: 0.00000 0.00179
Near Hits: 0.05633 0.05046
Not-Modified Replies: 0.00000 0.00000
DNS Lookups: 0.07284 0.06083 ako je ovo preko 1, obavezno proveriti /etc/resolv.conf fajl
ICP Queries: 0.00000 0.00000
Resource usage for squid:
UP Time: 2222.118 seconds
CPU Time: 43.335 seconds
CPU Usage: 1.95%
CPU Usage, 5 minute avg: 1.65%
CPU Usage, 60 minute avg: 1.95%
Process Data Segment Size via sbrk(): 144200 KB
Maximum Resident Size: 591200 KB
Page faults with physical i/o: 0 ovo bi trebalo da je 0, ako nije, restartovati squid ili ceo server
Memory usage for squid via mallinfo():
Total space in arena: 144332 KB
Ordinary blocks: 144312 KB 24 blks
Small blocks: 0 KB 0 blks
Holding blocks: 1552 KB 6 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 19 KB
Total in use: 145864 KB 100%
Total free: 19 KB 0%
Total size: 145884 KB
Memory accounted for:
Total accounted: 118387 KB 81%
memPool accounted: 118387 KB 81%
memPool unaccounted: 27496 KB 19%
memPoolAlloc calls: 6693354
memPoolFree calls: 6717776
File descriptor usage for squid:
Maximum number of file descriptors: 1024
Largest file desc currently in use: 699
Number of file desc currently in use: 498
Files queued for open: 0
Available number of file descriptors: 526
Reserved number of file descriptors: 100
Store Disk files open: 0
Internal Data Structures:
142114 StoreEntries
4353 StoreEntries with MemObjects
4332 Hot Object Cache Items
142061 on-disk objects

This entry was posted in Linux and tagged , , . Bookmark the permalink.

Comments are closed.