Squid hit rate analysis parameter annotation

  
 

The default Squid configuration file has been added acl all src 0.0.0.0/0.0.0.0acl manager proto cache_objecthttp_access allow all#cachemgr_passwd pass allhttp_access allow Manager all

3.0 Directly look at the basic usage here* Squid running status information: squidclient -p 80 mgr:info //Note that if 80 is your corresponding port number

root directory #/usr/local/squid/bin/squidclient -p 3128 mgr:info * Get squid memory usage: squidclient -p 80 mgr:mem* Get the list of squid cached: squidclient -p 80 mgr:objects. use it carefully, it may crash* get squid disk usage: squidclient -p 80 mgr: Diskd* forces a url to be updated: squidclient -p 80 -m PURGE http://www.baidu.com/index.php

*See more: squidclient -h or squidclient -p 80 mgr :

* How do I know the status of Squid execution?

The easiest way is to look through the browser. Squid itself provides a cgi program named cachemgr.cgi. After Squid is installed, copy it to the cgi-bin directory under Apache.

To view the information provided by the Cache Manager, type

http://server name or IP address/cgi-bin/cachemgr in the address bar of your browser. Cgi

Of course, I prefer to use the following method

/usr/local/squid/bin/squidclient -h localhost -p 80 mgr:info

The following are some Basic Content

Squid Object Cache: Version 2.6 //Squid Version

HTTP/1.0 200 OKDate: Tue, 11 Mar 2008 16:08:14 GMTContent-Type: text/plainExpires: Tue , 11 Mar 2008 16:08:14 GMTLast-Modified: Tue, 11 Mar 2008 16:08:14 GMTConnection: close

Squid Object Cache: Version 2.6.STABLE6Start Time: Tue, 11 Mar 2008 10:21 :47 GMTCurrent Time: Tue, 11 Mar 2008 16:08:14 GMTConnection information for squid: Number of clients accessing cache: 2023 computer using proxy
Number of HTTP requests received: 81787 Client http required quantity Number of ICP messages received: 0 Number of icp queries received Number of ICP messages sent: 0 Number of icp queries Number of queued ICP replies: 0Request failure ra Tio: 0.00Average HTTP requests per minute since start: 236.1 The number of http requests per minute Average ICP messages per minute since start: 0.0Select loop called: 24789642 times, 0.839 ms avgCache information for squid: Request Hit Ratios: 5min: 99.6%, 60min: 98.7% Cache Request hit ratio Byte Hit Ratios: 5min: 100.0%, 60min: 100.0% Cache Byte hit rate Request Memory Hit Ratios: 5min: 1.6%, 60min: 1.2%Request Disk Hit Ratios: 5min: 82.0%, 60min : 90.5% Storage Swap size: 7723212 KB Disk usage for storage cache Storage Mem size: 7992 KB Memory usage for cache storage Mean Object Size: 264.01 KBRequests given to unlinkd: 279Median Service Times (seconds) 5 min 60 min: HTTP Requests (All): 2.94900 3.46762Cache Misses: 0.03427 0.03427Cache Hits: 5.06039 4.79440Near Hits: 0.30459 0.35832Not-Modified Replies: 0.00179 0.00179DNS Lookups: 0.00000 0.00000ICP Queries: 0.00000 0.00000Resource usage for squid: UP Time: 20787.011 secondsCPU Time: 128.799 secondsCPU Usage: 0.62%CPU Usage, 5 minute avg: 0.44%CP U Usage, 60 minute avg: 0.51% Process Data Segment Size via sbrk(): 34292 KBMaximum Resident Size: 0 KBPage faults with physical i/o: 0Memory usage for squid via mallinfo(): Total space in arena: 34424 KBordinary blocks: 27031 KB 8599 blksSmall blocks: 0 KB 0 blksHolding blocks: 6152 KB 2 blksFree Small blocks: 0 KBFree ordinary blocks: 7392 KBTotal in use: 33183 KB 82%Total free: 7392 KB 18%Total size: 40576 KBMemory accounted for: Memory Use status Total accounted: 21777 KBmemPoolAlloc calls: 15446992memPoolFree calls: 15337015File descriptor usage for squid:Maximum number of file descriptors: 16384 System maximum file descriptor number Largest file desc currently in use: 1165 Currently using file descriptor maximum Number of file desc currently in Use: 571 The number of file descriptors currently in use File queued for open: 0Available number of file descriptors: 15813Reserved number of file descriptors: 100Store Disk files open: 266IO loop method: epollInternal Data Structures:29315 StoreEntries Cach The number of cached files stored in e 190 StoreEntries with MemObjects The number of cached files in the memory bucket 176 Hot Object Cache Items The number of cached files stored in the disk drive 29253 on-disk objects

Squid The hit rate represents the meaning of a 5-minute average of one aspect. One-hour average Request Hit Ratios: 5min: 80.1%, 60min: 80.3%Byte Hit Ratios: 5min: 66.6%, 60min: 70.0%Request Memory Hit Ratios: 5min: 30.3 %, 60min: 32.6%Request Disk Hit Ratios: 5min: 8.7%, 60min: 8.8%

Request Hit Ratios: indicates that the second or subsequent request is found to be valid in the cache, otherwise it will be Read Byte Hit Ratios from the original server: As the name implies, the number of bytes is Request Memory Hit Ratios: This is what is cached in memory. Request Disk Hit Ratios: This is read from the hard disk

Copyright © Windows knowledge All Rights Reserved