可以查看下命中率及其他相關信息 #/usr/local/squid/bin/squidclient -p 80 -h localhost mgr:info # /usr/local/squid/bin/squidclient -p 80 -h localhost mgr:info HTTP/1.0 200 OK Server: squid/3.0.STABLE2 Mime-Version: 1.0 Date: Wed, 19 Mar 2008 07:37:22 GMT Content-Type: text/plain Expires: Wed, 19 Mar 2008 07:37:22 GMT Last-Modified: Wed, 19 Mar 2008 07:37:22 GMT X-Cache: MISS from www.abc.com Via: 1.0 www.abc.com (squid/3.0.STABLE2) Connection: close
Squid Object Cache: Version 3.0.STABLE2 Start Time: Wed, 19 Mar 2008 06:47:32 GMT Current Time: Wed, 19 Mar 2008 07:37:22 GMT Connection information for squid: Number of clients accessing cache: 244 Number of HTTP requests received: 30303 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: 608.2 Average ICP messages per minute since start: 0.0 Select loop called: 532175 times, 5.617 ms avg Cache information for squid: Hits as % of all requests: 5min: 90.3%, 60min: 75.5% Hits as % of bytes sent: 5min: 31.8%, 60min: 45.4% Memory hits as % of hit requests: 5min: 6.1%, 60min: 32.8% Disk hits as % of hit requests: 5min: 0.0%, 60min: 0.1% Storage Swap size: 35624 KB Storage Swap capacity: 6.8% used, 93.2% free Storage Mem size: 37232 KB Storage Mem capacity: 7.1% used, 92.9% free Mean Object Size: 21.38 KB Requests given to unlinkd: 418 Median Service Times (seconds) 5 min 60 min: HTTP Requests (All): 0.00000 0.00000 Cache Misses: 0.07409 0.00000 Cache Hits: 0.00000 0.00000 Near Hits: 0.00000 0.00000 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: 2989.216 seconds CPU Time: 1.396 seconds CPU Usage: 0.05% CPU Usage, 5 minute avg: 0.05% CPU Usage, 60 minute avg: 0.05% Process Data Segment Size via sbrk(): 8044 KB Maximum Resident Size: 0 KB Page faults with physical i/o: 1 Memory usage for squid via mallinfo(): Total space in arena: 8312 KB Ordinary blocks: 8283 KB 19 blks Small blocks: 0 KB 0 blks Holding blocks: 48028 KB 306 blks Free Small blocks: 0 KB Free Ordinary blocks: 28 KB Total in use: 56311 KB 100% Total free: 28 KB 0% Total size: 56340 KB Memory accounted for: Total accounted: 44495 KB 79% memPool accounted: 44495 KB 79% memPool unaccounted: 11844 KB 21% memPoolAlloc calls: 5319189 memPoolFree calls: 5198329 File descriptor usage for squid: Maximum number of file descriptors: 15000 Largest file desc currently in use: 61 Number of file desc currently in use: 37 Files queued for open: 0 Available number of file descriptors: 14963 Reserved number of file descriptors: 100 Store Disk files open: 0 Internal Data Structures: 3412 StoreEntries 3402 StoreEntries with MemObjects 3401 Hot Object Cache Items 1666 on-disk objects # /usr/local/squid/bin/squidclient -p 80 -h localhost mgr:info HTTP/1.0 200 OK Server: squid/3.0.STABLE2 Mime-Version: 1.0 Date: Wed, 19 Mar 2008 07:45:48 GMT Content-Type: text/plain Expires: Wed, 19 Mar 2008 07:45:48 GMT Last-Modified: Wed, 19 Mar 2008 07:45:48 GMT X-Cache: MISS from www.abc.com Via: 1.0 www.abc.com (squid/3.0.STABLE2) Connection: close
Squid Object Cache: Version 3.0.STABLE2 Start Time: Wed, 19 Mar 2008 06:47:32 GMT Current Time: Wed, 19 Mar 2008 07:45:48 GMT Connection information for squid: Number of clients accessing cache: 173 Number of HTTP requests received: 36309 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: 623.2 Average ICP messages per minute since start: 0.0 Select loop called: 633105 times, 5.522 ms avg Cache information for squid: Hits as % of all requests: 5min: 87.9%, 60min: 77.5% Hits as % of bytes sent: 5min: 25.9%, 60min: 42.0% Memory hits as % of hit requests: 5min: 7.8%, 60min: 27.8% Disk hits as % of hit requests: 5min: 0.0%, 60min: 0.1% Storage Swap size: 42468 KB Storage Swap capacity: 8.1% used, 91.9% free Storage Mem size: 45360 KB Storage Mem capacity: 8.7% used, 91.3% free Mean Object Size: 22.40 KB Requests given to unlinkd: 513 Median Service Times (seconds) 5 min 60 min: HTTP Requests (All): 0.00000 0.00000 Cache Misses: 0.08265 0.00091 Cache Hits: 0.00000 0.00000 Near Hits: 0.00000 0.00000 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: 3496.007 seconds CPU Time: 1.644 seconds CPU Usage: 0.05% CPU Usage, 5 minute avg: 0.06% CPU Usage, 60 minute avg: 0.05% Process Data Segment Size via sbrk(): 8580 KB Maximum Resident Size: 0 KB Page faults with physical i/o: 1 Memory usage for squid via mallinfo(): Total space in arena: 8848 KB Ordinary blocks: 8828 KB 72 blks Small blocks: 0 KB 0 blks Holding blocks: 57000 KB 372 blks Free Small blocks: 0 KB Free Ordinary blocks: 19 KB Total in use: 65828 KB 100% Total free: 19 KB 0% Total size: 65848 KB Memory accounted for: Total accounted: 53423 KB 81% memPool accounted: 53423 KB 81% memPool unaccounted: 12424 KB 19% memPoolAlloc calls: 6293795 memPoolFree calls: 6157879 File descriptor usage for squid: Maximum number of file descriptors: 15000 Largest file desc currently in use: 155 Number of file desc currently in use: 149 Files queued for open: 0 Available number of file descriptors: 14851 Reserved number of file descriptors: 100 Store Disk files open: 22 Internal Data Structures: 3730 StoreEntries 3720 StoreEntries with MemObjects 3686 Hot Object Cache Items 1896 on-disk objects