Squid performance analysis to obtain information status of squid execution 1, when you do not know what information can be queried./squidclient-h127.0.0.1-p80mgr: 2, GeneralRuntimeInformation, view the general status ../squidclient-h127.0.0.1-p80...
Squid performance analysis
Obtain information about squid execution
1. if you do not know any information
./Squidclient-h 127.0.0.1-p 80 mgr:
2. View General Runtime Information.
./Squidclient-h 127.0.0.1-p 80 mgr: info
[Root @ bbs bin] #./squidclient-h 127.0.0.1-p 80 mgr: info
HTTP/1.0 200 OK
Date: Wed, 14 Sep 2011 01:14:00 GMT
Content-Type: text/plain
Expires: Wed, 14 Sep 2011 01:14:00 GMT
Last-Modified: Wed, 14 Sep 2011 01:14:00 GMT
Connection: close
Squid Object Cache: Version 2.6.STABLE23
Start Time: Mon, 15 Aug 2011 07:29:43 GMT
Current Time: Wed, 14 Sep 2011 01:14:00 GMT
Connection information for squid:
Number of clients accessing cache: 7035 // Number of clients using proxy
Number of HTTP requests requested Ed: 102208621 // Number of http requests on the client
Number of ICP messages received ed: 0 // Number of accepted icp queries
Number of ICP messages sent: 0 // Number of icp queries issued
Number of queued ICP replies: 0
Request failure ratio: 0.00
Average HTTP requests per minute since start: 2386.7 // Number of http requests per minute
Average ICP messages per minute since start: 0.0 // Number of ICPS processed per minute
Select loop called: 1078256179 times, 2.383-MS avg
Cache information for squid:
Request Hit Ratios: 5 min: 72.9%, 60 min: 71.3% // Cache Request Hit rate
Byte Hit Ratios: 5 min: 86.2%, 60 min: 85.7% // Cache Byte Hit rate
Request Memory Hit Ratios: 5 min: 16.9%, 60 min: 18.3%
Request Disk Hit Ratios: 5 min: 36.6%, 60 min: 41.2%
Storage Swap size: 36863864 KB // disk usage for storing cache
Storage Mem size: 602600 KB // memory used to store cache
Mean Object Size: 72.02 KB
Requests given to unlinkd: 822436
Median Service Times (seconds) 5 min 60 min: // average response time
HTTP Requests (All): 0.00865 0.01955
Cache Misses: 0.13498 0.14252
Cache Hits: 0.00463 0.00678
Near Hits: 0.10281 0.11465
Not-Modified Replies: 0.00091 0.00179
DNS Lookups: 0.00000 0.00000
ICP Queries: 0.00000 0.00000
Resource usage for squid:
UP Time: 2569457.334 seconds
CPU Time: 36073.998 seconds
CPU Usage: 1.40% // calculated from squid startup, CPU Usage
CPU Usage, 5 minute avg: 2.15% // CPU Usage in the last 5 minutes
CPU Usage, 60 minute avg: 1.73% // CPU Usage in the last 60 minutes
Process Data Segment Size via sbrk (): 813452 KB
Maximum Resident Size: 0 KB
Page faults with physical I/o: 3
Memory usage for squid via mallinfo ():
Total space at arena: 813452 KB
Ordinary blocks: 811350 KB 2289 blks
Small blocks: 0 KB 0 blks
Holding blocks: 2976 KB 3 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 2101 KB
Total in use: 814326 KB 100%
Total free: 2101 KB 0%
Total size: 816428 KB
Memory accounted for: // Memory usage status
Total accounted: 756036 KB
MemPoolAlloc CILS: 3191693493
MemPoolFree cballs: 3187306562
File descriptor usage for squid:
Maximum number of file descriptors: 1024 // Maximum number of file descriptors in the system
Largest file desc currently in use: 838 // currently, the maximum value of file descriptor is used.
Number of file desc currently in use: 738 // Number of file descriptor currently in use
Files queued for open: 0
Available number of file descriptors: 286 // remaining valid usage
Reserved number of file descriptors: 100 // Reserved usage
Store Disk files open: 22
IO loop method: epoll
Internal Data Structures:
539827 StoreEntries // number of Cache files stored in the Cache
137907 StoreEntries with MemObjects // Number of cached files in the memory
137873 Hot Object Cache Items
511853 on-disk objects // number of cache files stored on the disk
3. view the status within 5 minutes
./Squidclient-h 127.0.0.1-p 80 mgr: 5 min
[Root @ bbs bin] #./squidclient-h 127.0.0.1-p 80 mgr: 5 min
HTTP/1.0 200 OK
Date: Wed, 14 Sep 2011 06:25:00 GMT
Content-Type: text/plain
Expires: Wed, 14 Sep 2011 06:25:00 GMT
Last-Modified: Wed, 14 Sep 2011 06:25:00 GMT
Connection: close
Sample_start_time = 1315981166.699347 (Wed, 14 Sep 2011 06:19:26 GMT)
Sample_end_time = 1315981466.707914 (Wed, 14 Sep 2011 06:24:26 GMT)
Client_http.requests = 85.857548/sec // Number of http requests per second on the client
Client_http.hits = 64.574823/sec // Number of http hits on the client per second
Client_http.errors = 0.000000/sec
Client_http.kbytes_in = 77.871110/sec // The amount of data sent by the client per second
Client_http.kbytes_out = 1756.599837/sec // The amount of data sent to the client per second
Client_http.all_median_svc_time = 0.024508 seconds // response time
Client_http.miss_median_svc_time = 0.150482 seconds
Client_http.nm_median_svc_time = 0.000911 seconds
Client_http.nh_median_svc_time = 0.092188 seconds
Client_http.hit_median_svc_time = 0.003785 seconds
Server. all. requests = 29.049170/sec // number of requests that squid helps the client capture
Server. all. errorrs = 0.000000/sec
Server. all. kbytes_in = 316.374299/sec // squid
Server. all. kbytes_out = 29.719151/sec // squid
Server. http. requests = 29.049170/sec
Server. http. errorrs = 0.000000/sec
Server. http. kbytes_in = 316.374299/sec
Server. http. kbytes_out = 29.719151/sec
Server. ftp. requests = 0.000000/sec
Server. ftp. errors = 0.000000/sec
Server. ftp. kbytes_in = 0.000000/sec
Server. ftp. kbytes_out = 0.000000/sec
Server. other. requests = 0.000000/sec
Server. other. errors = 0.000000/sec
Server. other. kbytes_in = 0.000000/sec
Server. other. kbytes_out = 0.000000/sec
Icp. pkts_sent = 0.000000/sec
Icp. pkts_recv = 0.000000/sec
Icp. queries_sent = 0.000000/sec
Icp. replies_sent = 0.000000/sec
Icp. queries_recv = 0.000000/sec
Icp. replies_recv = 0.000000/sec
Icp. replies_queued = 0.000000/sec
Icp. query_timeouts = 0.000000/sec
Icp. kbytes_sent = 0.000000/sec
Icp. kbytes_recv = 0.000000/sec
Icp. q_kbytes_sent = 0.000000/sec
Icp. r_kbytes_sent = 0.000000/sec
Icp. q_kbytes_recv = 0.000000/sec
Icp. r_kbytes_recv = 0.000000/sec
Icp. query_median_svc_time = 0.000000 seconds
Icp. reply_median_svc_time = 0.000000 seconds
Dns. median_svc_time = 0.000000 seconds // response time of DNS
Unlink. requests = 1.136634/sec
Page_faults = 0.000000/sec
Select_loops = 893.234492/sec
Select_fds = 993.841619/sec
Average_select_fd_period = 0.001006/fd
Median_select_fcds = 0.000000
Swap. outs = 0.979972/sec
Swap. ins = 89.290783/sec
Swap. files_cleaned = 0.000000/sec
Aborted_requests = 3.059913/sec // number of client disconnection requests
Syscils. polls = 893.234492/sec
Syscils. disk. opens = 45.585365/sec
Syscils. disk. closes = 45.625364/sec
Syscils. disk. reads = 384.002368/sec
Syscils. disk. writes = 16.976182/sec
Syscils. disk. seeks = 3.619897/sec
Syscils. disk. unlinks = 1.136634/sec
Syscils. sock. accepts = 110.343516/sec
Syscils. sock. sockets = 28.942507/sec
Syscils. sock. connects = 28.942507/sec
Syscils. sock. binds = 28.942507/sec
Syscils. sock. closes = 86.660859/sec
Syscils. sock. reads = 361.643006/sec
Syscils. sock. writes = 594.876346/sec
Syscils. sock. recvfroms = 0.000000/sec
Syscils. sock. sendtos = 0.000000/sec
Cpu_time = 9.611539 seconds // squid CPU usage time
Wall_time = 300.008567 seconds // Total sampling time
Cpu_usage = 3.203755% // average CPU usage
Author: open-source O & M Research Office"