[squid-users] Cache HITS are not consistent

From: Syed Ali <[email protected]>
Date: Mon, 19 May 2003 10:06:45 -0400

Hello,

I recently setup Squid and am currently testing it, and it seems that the caching which Squid does is very inconsistent.

For example, when I access www.nytimes.com from 1 machine, and then attempt to access www.nytimes.com from another machine, I see that some items get cached and some do not.

Below is 1 link which I tried accessing from 1.1.1.1 and then from 1.1.1.2 and then again from 1.1.1.1.
The link did not get cached at all, and I am not sure why.

1053122598.385 313 1.1.1.1 TCP_MISS/200 3387 GET http://chart.bigcharts.com/custom/nyt-com/fp-markets-1.gifquote - DIRECT/63.241.68.81 image/gif
1053122692.211 228 1.1.1.2 TCP_MISS/200 3387 GET http://chart.bigcharts.com/custom/nyt-com/fp-markets-1.gifquote - DIRECT/63.241.68.81 image/gif
1053122752.702 598 1.1.1.1 TCP_MISS/200 3384 GET http://chart.bigcharts.com/custom/nyt-com/fp-markets-1.gifquote - DIRECT/63.240.26.21 image/gif

Some items however do get cached as seen below:

1053122598.494 17 1.1.1.1 TCP_MISS/200 2025 GET http://graphics7.nytimes.com/ads/circulation_logo2.gif - DIRECT/63.211.66.67 image/gif
1053122691.985 0 1.1.1.2 TCP_MEM_HIT/200 2033 GET http://graphics7.nytimes.com/ads/circulation_logo2.gif - NONE/- image/gif

A snip of my config is:

cache_mem 384 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4096 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 8 KB
cache_replacement_policy lru
memory_replacement_policy lru
cache_dir ufs /usr/local/squid/var/cache 1000 160 256

I have tried clearing the browser cache and this sometimes creates HITS where previously there were none HITS.

Any help in understand the above "odd" behavior is appreciated...thank you.



Received on Mon May 19 2003 - 08:06:56 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:16:44 MST