udah pasang squid sebagai proxy cache di jaringan lan ? mau tau seberapa efektif squid tersebut ? gampang, gunakan squidclient .
kalau di ubuntu 10 yang saya gunakan sekarang, install squid client cukup dengan command ” sudo apt get install squidclient ”
penggunaan tools squidclient sebagai berikut :
squidclient -p
contoh :
root@proxyku:~# squidclient -p 3128 127.0.0.1 mgr:info
HTTP/1.0 200 OK
Date: Sat, 17 Sep 2011 05:14:48 GMT
Content-Type: text/plain
Expires: Sat, 17 Sep 2011 05:14:48 GMT
X-Cache: MISS from proxy
X-Cache-Lookup: MISS from proxy:3128
Via: 1.0 proxy:3128
Connection: close
Squid Object Cache: Version 2.
Start Time: Sat, 17 Sep 2011 01:18:24 GMT
Current Time: Sat, 17 Sep 2011 05:14:48 GMT
Connection information for squid:
Number of clients accessing cache: 21
Number of HTTP requests received: 51279
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: 216.9
Average ICP messages per minute since start: 0.0
Select loop called: 1111773 times, 12.758 ms avg
Cache information for squid:
Request Hit Ratios: 5min: 23.6%, 60min: 34.6%
Byte Hit Ratios: 5min: 77.2%, 60min: 68.5%
Request Memory Hit Ratios: 5min: 5.4%, 60min: 3.6%
Request Disk Hit Ratios: 5min: 60.5%, 60min: 77.2%
Storage Swap size: 3259016 KB
Storage Mem size: 8172 KB
Mean Object Size: 19.17 KB
Requests given to unlinkd: 0
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 0.30459 0.20843
Cache Misses: 0.49576 0.49576
Cache Hits: 0.00307 0.00091
Near Hits: 0.00000 0.12106
Not-Modified Replies: 0.00000 0.00000
DNS Lookups: 0.00000 0.00000
ICP Queries: 0.00000 0.00000
Resource usage for squid:
UP Time: 14183.987 seconds
CPU Time: 78.161 seconds
CPU Usage: 0.55%
CPU Usage, 5 minute avg: 0.44%
CPU Usage, 60 minute avg: 0.76%
Process Data Segment Size via sbrk(): 39860 KB
Maximum Resident Size: 184096 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
Total space in arena: 39860 KB
Ordinary blocks: 39371 KB 6821 blks
Small blocks: 0 KB 0 blks
Holding blocks: 3648 KB 4 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 488 KB
Total in use: 43019 KB 99%
Total free: 488 KB 1%
Total size: 43508 KB
Memory accounted for:
Total accounted: 27072 KB
memPoolAlloc calls: 8535465
memPoolFree calls: 8057760
File descriptor usage for squid:
Maximum number of file descriptors: 1024
Largest file desc currently in use: 177
Number of file desc currently in use: 117
Files queued for open: 0
Available number of file descriptors: 907
Reserved number of file descriptors: 100
Store Disk files open: 0
IO loop method: epoll
Internal Data Structures:
170223 StoreEntries
1741 StoreEntries with MemObjects
1732 Hot Object Cache Items
169980 on-disk objects
root@proxyku:~#
beberapa item penting yang perlu di perhatikan adalah :
Number of clients accessing cache: 21 << jgn sampai lebih dari jumlah pc di lan, kalau lebih mungkin ada maling
Request Hit Ratios: 5min: 23.6%, 60min: 34.6% << persen request yang berhasil di cache dari proxy
Byte Hit Ratios: 5min: 77.2%, 60min: 68.5% << persen byte data yang di ambil dari proxy , bukan dari internet lansung
kalau dari data yang saya ambil dari server proxy ini, hasil nya cukup lumayan, ada penghematan bandwidth sebanyak 30 - 60 % .