On Fri, 30 Apr 2004, Nick Piggin wrote:
Rik van Riel wrote:
> The basic idea of use-once isn't bad (search for LIRS and
> ARC page replacement), however the Linux implementation
> doesn't have any of the checks and balances that the
> researched replacement algorithms have...
No, use once logic is good in theory I think. Unfortunately
our implementation is quite fragile IMO (although it seems
to have been "good enough").
Hey, that's what I said ;))))
This is what I'm currently doing (on top of a couple of other
patches, but you get the idea). I should be able to transform
it into a proper use-once logic if I pick up Nikita's inactive
list second chance bit.
Ummm nope, there just isn't enough info to keep things
as balanced as ARC/LIRS/CAR(T) can do. No good way to
auto-tune the sizes of the active and inactive lists.