Re: [squid-users] TCP_MISS

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 26 Mar 2010 12:46:34 +1300

Rudolf Meijering wrote:
> Hi,
>
> access.log gives the following misses for gif files:
>
> 1269544961.348 4312 10.1.0.105 TCP_MISS/200 1431 GET
> http://www.mymaties.com/portal/pls/portal/docs/1/591848.GIF -
> DIRECT/146.232.128.112 image/gif
> 1269544996.893 39857 10.1.0.105 TCP_MISS/200 1542 GET
> http://www.mymaties.com/portal/pls/portal/docs/1/590297.GIF -
> DIRECT/146.232.128.112 image/gif
> 1269545005.696 996 10.1.0.105 TCP_MISS/200 1078 GET
> http://www.matiesalumni.net/portal/pls/portal/docs/1/525965.GIF -
> DIRECT/146.232.128.115 image/gif
> 1269545005.754 1053 10.1.0.105 TCP_MISS/200 1349 GET
> http://www.matiesalumni.net/portal/pls/portal/docs/1/525966.GIF -
> DIRECT/146.232.128.115 image/gif
> 1269545005.804 1103 10.1.0.105 TCP_MISS/200 1078 GET
> http://www.matiesalumni.net/portal/pls/portal/docs/1/525967.GIF -
> DIRECT/146.232.128.115 image/gif
> 1269545007.327 2627 10.1.0.105 TCP_MISS/200 940 GET
> http://www.matiesalumni.net/portal/pls/portal/docs/1/526074.GIF -
> DIRECT/146.232.128.115 image/gif
> 1269545010.443 5743 10.1.0.105 TCP_MISS/200 1099 GET
> http://www.matiesalumni.net/portal/pls/portal/docs/1/525968.GIF -
> DIRECT/146.232.128.115 image/gif
> 1269545011.320 1837 10.1.0.105 TCP_MISS/200 11973 GET
> http://www.mymaties.com/portal/pls/portal/docs/1/590297.GIF -
> DIRECT/146.232.128.112 image/gif
> 1269545020.259 793 10.1.0.105 TCP_MISS/200 1385 GET
> http://www.mymaties.com/portal/pls/portal/docs/1/624561.GIF -
> DIRECT/146.232.128.112 image/gif
> 1269545020.486 995 10.1.0.105 TCP_MISS/200 865 GET
> http://www.mymaties.com/portal/pls/portal/docs/1/19147.GIF -
> DIRECT/146.232.128.112 image/gif
> 1269545022.480 3012 10.1.0.105 TCP_MISS/200 863 GET
> http://www.mymaties.com/portal/pls/portal/docs/1/24073.GIF -
> DIRECT/146.232.128.112 image/gif
> 1269545024.763 504 10.1.0.105 TCP_REFRESH_UNMODIFIED/304 251 GET
> http://www.sun.ac.za/newweb07/images/kennis_maroon.gif -
> DIRECT/146.232.20.38 -
> 1269545024.856 597 10.1.0.105 TCP_MISS/200 1373 GET
> http://www.mymaties.com/portal/pls/portal/docs/1/590622.GIF -
> DIRECT/146.232.128.112 image/gif
> 1269545026.455 2195 10.1.0.105 TCP_MISS/200 1093 GET
> http://sun025.sun.ac.za/portal/pls/portal/docs/1/30912.GIF -
> DIRECT/146.232.128.46 image/gif
> 1269545026.663 6169 10.1.0.105 TCP_MISS/304 311 GET
> http://www.mymaties.com/images/FFFFFFtr.gif - DIRECT/146.232.128.112
> text/html
> 1269545028.076 3789 10.1.0.105 TCP_MISS/200 1063 GET
> http://www.matiesalumni.net/portal/pls/portal/docs/1/525969.GIF -
> DIRECT/146.232.128.115 image/gif
> 1269545028.355 18866 10.1.0.105 TCP_MISS/200 1431 GET
> http://www.mymaties.com/portal/pls/portal/docs/1/591848.GIF -
> DIRECT/146.232.128.112 image/gif
> 1269545028.435 4147 10.1.0.105 TCP_REFRESH_UNMODIFIED/304 251 GET
> http://www.sun.ac.za/newweb07/images/bullet2.gif -
> DIRECT/146.232.20.38 -
> 1269545029.107 4820 10.1.0.105 TCP_MISS/200 1055 GET
> http://www.matiesalumni.net/portal/pls/portal/docs/1/525972.GIF -
> DIRECT/146.232.128.115 image/gif
> 1269545029.335 9869 10.1.0.105 TCP_MISS/200 865 GET
> http://www.mymaties.com/portal/pls/portal/docs/1/24072.GIF -
> DIRECT/146.232.128.112 image/gif
> 1269545029.723 5436 10.1.0.105 TCP_MISS/200 1059 GET
> http://www.matiesalumni.net/portal/pls/portal/docs/1/525970.GIF -
> DIRECT/146.232.128.115 image/gif
> 1269545030.245 9982 10.1.0.105 TCP_MISS/304 311 GET
> http://www.mymaties.com/images/FFFFFFtl.gif - DIRECT/146.232.128.112
> text/html
> 1269545030.703 25944 10.1.0.105 TCP_MISS/304 311 GET
> http://www.mymaties.com/images/pobtrans.gif - DIRECT/146.232.128.112
> text/html
>
> I have the following refresh patterns:
> refresh_pattern ^ftp: 1440 20% 10080
> refresh_pattern ^gopher: 1440 0% 1440
> refresh_pattern (cgi-bin|\?) 0 0% 0
> refresh_pattern windowsupdate.com/.*\.(cab|exe)(\?|$) 518400 100%
> 518400 reload-into-ims
> refresh_pattern update.microsoft.com/.*\.(cab|exe)(\?|$) 518400 100%
> 518400 reload-into-ims
> refresh_pattern download.microsoft.com/.*\.(cab|exe)(\?|$) 518400 100%
> 518400 reload-into-ims
> refresh_pattern (Release|Package(.gz)*)$ 0 20% 2880
> refresh_pattern \.deb$ 518400 100% 518400 override-expire
> refresh_pattern -i \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv)(\?|$)
> 161280 3000% 525948 override-expire reload-into-ims
> refresh_pattern . 0 20% 4320
>
> Any idea why there is so much misses? What could I do to improve the hit rates?

Some of those are responses to IMS requests. Which your rule forces
reload requests to become.

Maybe the server is simply responding with 200 OKAY regardless of
getting an IMS request.

Maybe the requests actually did have ? query strings. You placed your
cactch-all dynamic content rules for preventing storage of badly
controlled dynamic pages above the image caching rules.

Maybe several of your users favor Chrome. I've heard that browser sends
no-cache header by default. Which results in middle proxies being unable
to cache anything for improved access, and in fact degrade access for
other browers.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE8 or 3.0.STABLE25
   Current Beta Squid 3.1.0.18
Received on Thu Mar 25 2010 - 23:46:41 MDT

This archive was generated by hypermail 2.2.0 : Sat Mar 27 2010 - 12:00:05 MDT