[squid-users] Cache Problem ( Squid.2.6 Stable 5)

From: Mohammad Shakir <shakirgil@dont-contact.us>
Date: Fri, 1 Dec 2006 23:26:46 -0800 (PST)

I am using these refresh patterns.

refresh_pattern windowsupdate.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern ^http://.*\.cnn\.com 360 50% 4320 override-lastmod
refresh_pattern ^http://news\.bbc\.co\.uk 360 50% 4320 override-lastmod
refresh_pattern microsoft 1080 150% 10080 override-lastmod
refresh_pattern msn\.com 4320 150% 10080 override-lastmod
refresh_pattern ^http://.*\.doubleclick\.net 10080 300% 40320 override-lastmod
refresh_pattern ^http://.*FIDO 360 1000% 480
refresh_pattern \.r[0-9][0-0]$ 10080 150% 40320
refresh_pattern ^http://.*\.gif$ 1440 50% 20160
refresh_pattern ^http://.*\.asis$ 1440 50% 20160
refresh_pattern -i \.pdf$ 10080 90% 43200 reload-into-ims
refresh_pattern -i \.art$ 10080 150% 43200 reload-into-ims
refresh_pattern -i \.avi$ 10080 150% 40320 reload-into-ims
refresh_pattern -i \.mov$ 10080 150% 40320 reload-into-ims
refresh_pattern -i \.wav$ 10080 150% 40320 reload-into-ims
refresh_pattern -i \.mp3$ 10080 150% 40320 reload-into-ims
refresh_pattern -i \.qtm$ 10080 150% 40320 reload-into-ims
refresh_pattern -i \.mid$ 10080 150% 40320 reload-into-ims
refresh_pattern -i \.viv$ 10080 150% 40320 reload-into-ims
refresh_pattern -i \.mpg$ 10080 150% 40320 reload-into-ims
refresh_pattern -i \.jpg$ 10080 150% 40320 reload-into-ims
refresh_pattern -i \.rar$ 10080 150% 40320 reload-into-ims
refresh_pattern -i \.ram$ 10080 150% 40320 reload-into-ims
refresh_pattern -i \.gif$ 10080 300% 40320 reload-into-ims
refresh_pattern -i \.txt$ 1440 100% 20160 reload-into-ims override-lastmod
refresh_pattern -i \.zip$ 2880 200% 40320 reload-into-ims
refresh_pattern -i \.arj$ 2880 200% 40320 reload-into-ims
refresh_pattern -i \.exe$ 2880 200% 40320 reload-into-ims
refresh_pattern -i \.tgz$ 10080 200% 40320 reload-into-ims
refresh_pattern -i \.gz$ 10080 200% 40320 reload-into-ims
refresh_pattern -i \.tgz$ 10080 200% 40320 reload-into-ims
refresh_pattern -i \.tar$ 10080 200% 40320 reload-into-ims
refresh_pattern -i \.Z$ 10080 200% 40320 reload-into-ims

refresh_pattern ^ftp:// 1440 50% 10080
refresh_pattern ^gopher:// 1440 10% 1440
refresh_pattern . 0 20% 4320

after one day cache result was

------------------------------------
Server: squid/2.6.STABLE5
Date: Sat, 02 Dec 2006 00:24:29 GMT
Content-Type: text/plain
Expires: Sat, 02 Dec 2006 00:24:29 GMT
Last-Modified: Sat, 02 Dec 2006 00:24:29 GMT
X-Cache: MISS from proxy.mediadot.net
X-Cache-Lookup: MISS from proxy.mediadot.net:8080
Via: 1.0 proxy.mediadot.net:8080 (squid/2.6.STABLE5)
Proxy-Connection: close

Squid Object Cache: Version 2.6.STABLE5
Start Time: Fri, 01 Dec 2006 12:37:25 GMT
Current Time: Sat, 02 Dec 2006 00:24:29 GMT
Connection information for squid:
        Number of clients accessing cache: 5
        Number of HTTP requests received: 17208
        Number of ICP messages received: 0
        Number of ICP messages sent: 0
        Number of queued ICP replies: 0
        Request failure ratio: 0.00
        Average HTTP requests per minute since start: 24.3
        Average ICP messages per minute since start: 0.0
        Select loop called: 4474390 times, 9.482 ms avg
Cache information for squid:
        Request Hit Ratios: 5min: 0.8%, 60min: 1.8%
        Byte Hit Ratios: 5min: -0.1%, 60min: -0.2%
        Request Memory Hit Ratios: 5min: 0.0%, 60min: 0.0%
        Request Disk Hit Ratios: 5min: 0.0%, 60min: 10.8%
        Storage Swap size: 2444576 KB
        Storage Mem size: 3452 KB
        Mean Object Size: 332.96 KB
        Requests given to unlinkd: 981
Median Service Times (seconds) 5 min 60 min:
        HTTP Requests (All): 1.24267 1.81376
        Cache Misses: 1.24267 1.81376
        Cache Hits: 0.00000 0.00494
        Near Hits: 0.61549 1.81376
        Not-Modified Replies: 0.00000 0.00000
        DNS Lookups: 0.00278 0.00278
        ICP Queries: 0.00000 0.00000
Resource usage for squid:
        UP Time: 42423.963 seconds
        CPU Time: 136.357 seconds
        CPU Usage: 0.32%
        CPU Usage, 5 minute avg: 0.28%
        CPU Usage, 60 minute avg: 0.34%
        Process Data Segment Size via sbrk(): 10496 KB
        Maximum Resident Size: 0 KB
        Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
        Total space in arena: 10496 KB
        Ordinary blocks: 10417 KB 119 blks
        Small blocks: 0 KB 0 blks
        Holding blocks: 3976 KB 2 blks
        Free Small blocks: 0 KB
        Free Ordinary blocks: 78 KB
        Total in use: 14393 KB 99%
        Total free: 78 KB 1%
        Total size: 14472 KB
Memory accounted for:
        Total accounted: 6364 KB
        memPoolAlloc calls: 5452952
        memPoolFree calls: 5421488
File descriptor usage for squid:
        Maximum number of file descriptors: 8192
        Largest file desc currently in use: 79
        Number of file desc currently in use: 73
        Files queued for open: 0
        Available number of file descriptors: 8119
        Reserved number of file descriptors: 100
        Store Disk files open: 3
        IO loop method: epoll
Internal Data Structures:
          7421 StoreEntries
           680 StoreEntries with MemObjects
           664 Hot Object Cache Items
          7342 on-disk objects
2006-12-02 05:24:29 [1]: 0.007 secs, 398.995536 KB/s (3KB)

I also disable this default tag. but all all request goes at DIRECT connection.

#acl QUERY urlpath_regex cgi-bin \?
#no_cache deny QUERY

I am using Fedora Core 6 as OS with 256MB RAM.

 
____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com
Received on Sat Dec 02 2006 - 00:27:04 MST

This archive was generated by hypermail pre-2.1.9 : Mon Jan 01 2007 - 12:00:01 MST