negative byte hit ratio...again

From: Jon Mansey <>
Date: Wed, 13 Oct 1999 20:28:35 -0700

Apologies for this which is probably an FAQ, but I did search the
list archives and didnt find a useful answer.

Can someone explain the meaning of a negative byte hit ratio?

Cache information for squid:
         Request Hit Ratios: 5min: 40.5%, 60min: 32.9%
         Byte Hit Ratios: 5min: -2.7%, 60min: -12.7%
Here it is only -2.7% but I have seen it swinging wildly from -120%
(?) to +40% today.

Can someone offer up a definition, or better a formula for how this
value is calculated and what it means when it is negative?

As I understand it, byte hit ratio = server-bytes-in / client-bytes-out

Thus if I served 200MB to my clients, and of that the cache had to
pull 100MB from origin servers, the byte hit ratio would be 50%.

Is this correct?

If the cache is pulling more on the server side than it is pushing to
the clients, would it be negative then?

What could cause that to happen? Many aborted or broken downloads?

I am using the defaults for quick_abort on Version 2.2.STABLE5.


Received on Wed Oct 13 1999 - 21:42:17 MDT

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