Re: New Ram Cache in Wiki

2010-05-06 Thread John Plevyak
I read the squid code. They have 3 algorithms, LRU, GDSF and LFUDA of which GDSF is better than LFUDA for a RAM cache since it takes size into account (as does the new RamCache algorithm). I'll make our RamCache replaceable and give the option for CLFS (Clocked Least Frequently used by Size) or

Re: New Ram Cache in Wiki

2010-05-05 Thread Mark Nottingham
Done; https://issues.apache.org/jira/browse/TS-337 On 06/05/2010, at 1:03 PM, Leif Hedstrom wrote: > On 05/05/2010 08:57 PM, Mark Nottingham wrote: >> What about exposing an API for replacement algorithm plug-ins, as Squid has >> done? >> > > +1 from me, but unless it can be done in a way

Re: New Ram Cache in Wiki

2010-05-05 Thread Leif Hedstrom
On 05/05/2010 08:57 PM, Mark Nottingham wrote: What about exposing an API for replacement algorithm plug-ins, as Squid has done? +1 from me, but unless it can be done in a way which does not "break" APIs and/or ABIs in the 2.x releases, it would have to go into 3.0. Of course, this all a

Re: New Ram Cache in Wiki

2010-05-05 Thread Mark Nottingham
My .02 - IME a one size fits all replacement algorithm is a tall order. While it looks like this is a very considered approach, there's been a LOT of research in the field about this, and doubtless there will be more (in fact, Mozilla is just looking at new replacement algorithms themselves).

New Ram Cache in Wiki

2010-05-05 Thread John Plevyak
I have added a page to the Wiki describing the new Ram Cache algorithm for the curious. https://cwiki.apache.org/confluence/display/TS/RamCache john