Re: cvs commit: squid/src stat.c

From: Duane Wessels <wessels@dont-contact.us>
Date: Tue, 3 Oct 2000 19:25:19 -0600 (MDT)

On Wed, 4 Oct 2000, Adrian Chadd wrote:

> On Tue, Oct 03, 2000, wessels@squid-cache.org wrote:
> > wessels 2000/10/03 14:51:04 MDT
> >
> > Modified files:
> > src stat.c
> > Log:
> > DW:
> > - This ugly hack is here to prevent the user from seeing a negative
> > byte hit ratio. When we fetch a cache digest from a neighbor,
> > it gets treated like a cache miss because the object is consumed
> > internally. Thus, we subtract cache digest bytes out before
> > calculating the byte hit ratio.
> >
> > Revision Changes Path
> > 1.335 +16 -1 squid/src/stat.c
> >
>
> Would this explain why you see negative byte ratios on non-active caches
> due to cachemgr activity? They're also treated as TCP_MISS ..

yes!

> Perhaps anything internal shouldn't be counted ?

Perhaps. But serving an internal object does not decrease your
BHR -- it increases it. The patch addresses objects (digests) that
squid fetches, but never serves.

Duane W.
Received on Tue Oct 03 2000 - 19:25:21 MDT

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