Re: Re: [squid-users] TCP_DISK_HIT = TCP_HIT - TCP_MEM_HIT ?

From: Joel CARNAT <joel@dont-contact.us>
Date: Sun, 12 Nov 2006 13:30:33 +0100

On Dim, nov 12 2006 - 12:41, Henrik Nordstrom wrote:
> lör 2006-11-11 klockan 14:42 +0100 skrev Joel CARNAT:
> > Hi,
> >
> > looking at Squid result codes I found:
> > TCP_HIT = object in the cache.
> > TCP_MEM_HIT = object in the cache and in memory.
> >
> > I did not found any "object in the cache and in the disk".
>
> The cache consists of the disk. Shadow copies may also be in memory. So
> the above is TCP_HIT.
>
> Both TCP_HIT and TCP_MEM_HIT is full cache hits. The only differece is
> where Squid had to get the cached data.
>
> > The idea is just to sum'up HITS correctly in RRDtool :)
>
> Easier to plot the SNMP counters..
>

well, in fact I'm doing both (plotting from SNMP entries and from parsing
the logs) and results didn't matched each time.

with SNMP, I found:
        SQUID-MIB::cacheHttpHits.0 = Counter32: 3
        SQUID-MIB::cacheHttpErrors.0 = Counter32: 0
no reference to "Hits from memory".

so I was wondering if I was not mistaking thinking:
        SQUID-MIB::cacheHttpHits = LOG/TCP_HIT + LOG/TCP_MEM_HIT

another way to put this down is:
        If I use SNMP, I don't have the info about where was the object.
        If I use log parsing, the detail is there and I have to sum TCP_HIT
        and TCP_MEM_HIT to get the full hit number. or there another option
        that I missed.

Regards,
        Jo
Received on Sun Nov 12 2006 - 05:30:47 MST

This archive was generated by hypermail pre-2.1.9 : Fri Dec 01 2006 - 12:00:03 MST