Re: LRU frequency

From: Lucas Brasilino <brasilino@dont-contact.us>
Date: Wed, 20 Jul 2005 15:12:16 -0400

Hi!

>> I looking around LRU informations to get into the code.
>> I read a doc, I really don't remember where, that
>> says LRU replacement policy runs every second.
>> Is that correct ? So do heap LFUDA and GDSF ?
>
>
> It is true. This is the call in store.c:
>
> /* Reregister a maintain event .. */
> eventAdd("MaintainSwapSpace", storeMaintainSwapSpace, NULL, 1.0, 1);

        Ok, thanks.
        Since you mentioned, I looked event.c code and I saw that
every "event functions" called within eventRun() is unregistered.
So functions like storeMaintainSwapSpace() must be re-registered.
Why not add a flag to struct ev_entry that tells if an event should
be unregistered or not ? It will save some eventAdd() calls...

>> I've experienced some very busy caches that
>> quits due a full cache directory... in other
>> words.. without efficiently swap out objects...
>
> Actually, it means that Squid cannot delete old objects fast
> enough to make room for new ones.

        Hmm should be due blocking unlink() behavior.
What about rising unlinkd priority with nice(2) in extreme
cases of swap out needing? The bad side is that unlinkd should
be root setuid.

> What is the cache size and request rate of these
> caches that quit due a full cache directory?

        Sorry, I don't remember. It has some time,
so nevermind.

thanks

-- 
[]'s
Lucas Brasilino
brasilino@prrr.mpf.gov.br
Procuradoria da República no Estado de Roraima
+55-95-6239642
Received on Wed Jul 20 2005 - 13:05:22 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Aug 01 2005 - 12:00:04 MDT