Re: Document x Byte Hit Ratio

From: Duane Wessels <wessels@dont-contact.us>
Date: Tue, 18 Jul 2000 09:43:18 -0600

On Tue, 18 Jul 2000, Joao Pagaime wrote:

>
> Hello there,
>
> How is it possible for Byte-Hit-Ratio to be <0 ?

  12.31. Why do I see negative byte hit ratio?

  Byte hit ratio is calculated a bit differently than Request hit ratio.
  Squid counts the number of bytes read from the network on the server-
  side, and the number of bytes written to the client-side. The byte
  hit ratio is calculated as

          (client_bytes - server_bytes) / client_bytes

  If server_bytes is greater than client_bytes, you end up with a nega-
  tive value.

  The server_bytes may be greater than client_bytes for a number of
  reasons, including:

  o Cache Digests and other internally generated requests. Cache
     Digest messages are quite large. They are counted in the
     server_bytes, but since they are consumed internally, they do not
     count in client_bytes.

  o User-aborted requests. If your quick_abort setting allows it,
     Squid sometimes continues to fetch aborted requests from the
     server-side, without sending any data to the client-side.

Duane W.
Received on Tue Jul 18 2000 - 09:46:39 MDT

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