Re: [Squid-cvs] akroonmaa-head squid/lib MemPool.c,1.1.8.3,1.1.8.4

From: Andres Kroonmaa <andre@dont-contact.us>
Date: Thu, 19 Apr 2001 09:45:35 +0200

On 19 Apr 2001, at 9:23, Henrik Nordstrom <hno@hem.passagen.se> wrote:

> Why not only when needed?

 Initially, to allow us miss some of the "when needed" places.
 For eg. Info page now shows memPool call counters, it would be off.
 To fix it, we'd need to insert flushall call here and there. I didn't
 want to touch too many sources.
 1/1000 per pool is already very small overhead.

 If there happens no "when needed", gathering counters may overflow.
 Overall idle memory accounting depends on them being flushed. Some other
 pool may need to decide to release a chunk based on that. High hrs
 stamps not updated.

 Perhaps should update them from regular event, eg. memPoolClean handler.
 I think it should run quite often then. Will look into that later.

> Andres Kroonmaa wrote:
>
> > Modified Files:
> > Tag: akroonmaa-head
> > MemPool.c
> > Log Message:
> > performance optimisation: instead of updating all the memPool Meters every
> > single call, update them only every few thousand calls and when needed.

------------------------------------
 Andres Kroonmaa <andre@online.ee>
 CTO, Delfi Online
 Tel: 6501 731, Fax: 6501 708
 Pärnu mnt. 158, Tallinn,
 11317 Estonia
Received on Thu Apr 19 2001 - 01:50:28 MDT

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