Re: Document x Byte Hit Ratio

From: David Luyer <david_luyer@dont-contact.us>
Date: Wed, 19 Jul 2000 02:09:14 +1000

Duane 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.
  * Even if not, especially if you use delay pools and are very
  * strict on user bandwidth, when a client aborts a connection you
  * have most likely received data for that user which you never got
  * to send to them.

Davied.

-- 
----------------------------------------------
David Luyer
Senior Network Engineer
Pacific Internet (Aust) Pty Ltd
Phone:  +61 3 9674 7525
Fax:    +61 3 9699 8693
Mobile: +61 4 1064 2258, +61 4 1114 2258
http://www.pacific.net.au        NASDAQ: PCNTF
<< fast 'n easy >>
----------------------------------------------
Received on Tue Jul 18 2000 - 10:16:28 MDT

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