I've been looking through the archives to find out the following query has
been asked, but surprising haven't found anything.
My problem is that if I use the cache-manager interface I get a hit rate
of around 60%, which from rough calculations seems to be correct. The
cache-stats-1.4 program that I run every day reports about 35% hit rate,
but upon inspection of the code I think I know why.
This is a part of access-summary.pl
foreach $k (keys %{${$hashref}{COUNT}}) {
$v=${$hashref}{COUNT}{$k};
$TCP_count += $v if ($k =~ /^TCP_/);
$THC += $v if ($k eq 'TCP_HIT');
$UDP_count += $v if ($k =~ /^UDP_/);
$UHC += $v if ($k eq 'UDP_HIT');
}
foreach $k (keys %{${$hashref}{BYTES}}) {
$v=${$hashref}{BYTES}{$k};
$TCP_size += $v if ($k =~ /^TCP_/);
$THS += $v if ($k eq 'TCP_HIT');
}
There is no TCP_REFRESH_HIT, TCP_REF_FAIL_HIT, TCP_IMS_HIT, UDP_HIT_OBJ
Do many people use the cache-stats-1.4 scripts, have you just modified the
source yourselves or are you happy with the HIT rates as they are ?
[James Power]
[UUnet Internet Africa Operations]
Received on Thu Apr 17 1997 - 02:48:43 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:00 MST