Search squid archive

Re: Re: Squid monitoring, access report shows upto 5 % to 7 % cache usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Amos,Ahmad,Babajaga
Thanks for your advice and feed back, I am posting more information 

-------
the HIT,MISS,REFRESH details are 

cat  /opt/var/log/squid/access.log  | grep -c "HIT"
13810283
 cat  /opt/var/log/squid/access.log  | grep -c "MISS"
57874593
cat  /opt/var/log/squid/access.log  | grep -c "REFRESH"
6760966

--------
squidclient info result 

squidclient -h 127.0.0.1 mgr:info
HTTP/1.0 200 OK
Server: squid/3.1.10
Mime-Version: 1.0
Date: Thu, 01 Aug 2013 06:10:06 GMT
Content-Type: text/plain
Expires: Thu, 01 Aug 2013 06:10:06 GMT
Last-Modified: Thu, 01 Aug 2013 06:10:06 GMT
X-Cache: MISS from proxy
X-Cache-Lookup: MISS from proxy:3128
Via: 1.0 proxy (squid/3.1.10)
Connection: close

Squid Object Cache: Version 3.1.10
Start Time:    Wed, 31 Jul 2013 23:08:41 GMT
Current Time:    Thu, 01 Aug 2013 06:10:06 GMT
Connection information for squid:
    Number of clients accessing cache:    574
    Number of HTTP requests received:    508778
    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:    1207.3
    Average ICP messages per minute since start:    0.0
    Select loop called: 62199585 times, 0.407 ms avg
Cache information for squid:
    Hits as % of all requests:    5min: 21.6%, 60min: 27.1%
    Hits as % of bytes sent:    5min: 6.6%, 60min: 5.6%
    Memory hits as % of hit requests:    5min: 5.6%, 60min: 9.0%
    Disk hits as % of hit requests:    5min: 46.9%, 60min: 47.7%
    Storage Swap size:    255159268 KB
    Storage Swap capacity:    43.7% used, 56.3% free
    Storage Mem size:    259940 KB
    Storage Mem capacity:    100.1% used,  0.0% free
    Mean Object Size:    18.29 KB
    Requests given to unlinkd:    0
Median Service Times (seconds)  5 min    60 min:
    HTTP Requests (All):   0.35832  0.35832
    Cache Misses:          0.39928  0.58309
    Cache Hits:            0.00179  0.00179
    Near Hits:             0.35832  0.32154
    Not-Modified Replies:  0.00091  0.00091
    DNS Lookups:           0.31806  0.31806
    ICP Queries:           0.00000  0.00000
Resource usage for squid:
    UP Time:    25284.735 seconds
    CPU Time:    3138.918 seconds
    CPU Usage:    12.41%
    CPU Usage, 5 minute avg:    20.23%
    CPU Usage, 60 minute avg:    13.25%
    Process Data Segment Size via sbrk(): 2959564 KB
    Maximum Resident Size: 12002784 KB
    Page faults with physical i/o: 5
Memory usage for squid via mallinfo():
    Total space in arena:  -1234608 KB
    Ordinary blocks:       -1246103 KB   2902 blks
    Small blocks:               0 KB      0 blks
    Holding blocks:         35920 KB      6 blks
    Free Small blocks:          0 KB
    Free Ordinary blocks:   11494 KB
    Total in use:          -1210183 KB 101%
    Total free:             11494 KB 0%
    Total size:            -1198688 KB
Memory accounted for:
    Total accounted:       -1713375 KB 143%
    memPool accounted:     2480929 KB 143%
    memPool unaccounted:   -3679618 KB   0%
    memPoolAlloc calls: 415798933
    memPoolFree calls:  418694853
File descriptor usage for squid:
    Maximum number of file descriptors:   1024
    Largest file desc currently in use:    925
    Number of file desc currently in use:  821
    Files queued for open:                   0
    Available number of file descriptors:  203
    Reserved number of file descriptors:   100
    Store Disk files open:                   7
Internal Data Structures:
    13948023 StoreEntries
     18727 StoreEntries with MemObjects
     18556 Hot Object Cache Items
    13947830 on-disk objects
------------------------

MySAR results are 



DATE                          USERS     HOSTS     SITES  BYTES    TRAFFICCache Percent

Thursday, 01 August 2013      11     797     13899     36.11G          4%
Wednesday, 31 July 2013       42     1024     29862     89.22G         5%
Tuesday, 30 July 2013           19     1023     27096     85.24G         5%
Monday, 29 July 2013            29     1022     26425     82.55G         5%
Sunday, 28 July 2013             37     1024     26324     81.79G         6%
Saturday, 27 July 2013           21     1020     26877     86.57G         5%
Friday, 26 July 2013               31     1017     24811     105.67G       4%
Thursday, 25 July 2013          59     1024     29185     119.15G       4%
Wednesday, 24 July 2013       41     1022     27245     106.82G       5%
Tuesday, 23 July 2013           25     1022     26785     86.68G         5%
Monday, 22 July 2013            29     1019     26609     71.94G         6%
Sunday, 21 July 2013            23     1019     24863     79.48G         5%
Saturday, 20 July 2013          20     1016     24334     77.44G         5%
Friday, 19 July 2013              43     1015     25206     72.18G         5%
Thursday, 18 July 2013         18     1016     24187     81.28G         5%
Wednesday, 17 July 2013      38     1021     25538     80.74G         6%
Tuesday, 16 July 2013          30     1021     27427     85.19G         5%
Monday, 15 July 2013           31     1021     27369     96.13G         5%
Sunday, 14 July 2013           29     1019     23879     74.26G         5%
Saturday, 13 July 2013         28     1014     20715     70.90G         5%
Friday, 12 July 2013             22     1010     22537     69.59G         5%
Thursday, 11 July 2013         22     1021     23031     86.52G         4%
Wednesday, 10 July 2013     19     1015     22542     73.21G         5%
Tuesday, 09 July 2013          16     1020     22408     74.67G         5%
Monday, 08 July 2013           23     1021     23594     72.99G         5%
Sunday, 07 July 2013            28     1021     23408     71.97G         6%
Saturday, 06 July 2013          17     1006     21390     64.28G         5%
Friday, 05 July 2013              23     994     22685     61.42G           5%
Thursday, 04 July 2013          20     1016     25792     71.54G         5%
Wednesday, 03 July 2013      24     1017     25178     74.03G         5%
Tuesday, 02 July 2013           37     1019     29740     83.19G         5%
Monday, 01 July 2013            22     1020     25175     77.47G         5%
Sunday, 30 June 2013             5     343     7083        10.51G         4%
Saturday, 29 June 2013           1     7     1034           1.05G            2%
Friday, 28 June 2013               1     9     1846            3.62G            1%

Current active users:     155
Current date and time is:     01-08-2013 10:55:24

-------------------------
Requesting Guidance and Advice 

thanks 

Joseph John





----- Original Message -----
From: babajaga <augustus_meyer@xxxxxxxx>
To: squid-users@xxxxxxxxxxxxxxx
Cc: 
Sent: Tuesday, 30 July 2013 12:13 PM
Subject:  Re: Squid monitoring, access report shows upto 5 % to 7 %  cache usage

You should install and use
http://wiki.squid-cache.org/Features/CacheManager

This gives you a lot of info regarding cache performance, like hit rate etc.


Having 556 GB of cache within one cache dir might already hit the upper
limit of max. number of cached objects, depending upon the avg size of
objects in cache.
Which could mean, that only part of the 556GB will ever be used.

Solution: Create different cache dirs, for various object-size classes.
But before doing this, post the infos you get from CacheManager, like avg
object size, cache fill rate etc.
CacheClient is the alternative to CacheManager, in case you do not want to
use web access.



--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-monitoring-access-report-shows-upto-5-to-7-cache-usage-tp4661301p4661314.html
Sent from the Squid - Users mailing list archive at Nabble.com.






[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux