2 ms·
recency and frequency are two hortogonally useful informations that can allow better evictions. It's not that LFU is superior to LRU or the reverse. The best o
by The_rationalist 6y ago
recency and frequency are two hortogonally useful informations that can allow better evictions.
It's not that LFU is superior to LRU or the reverse.
The best of both worlds is to use LRFU.
Now a 0(1) LRFU implementation would be nice to see.
Also, no talk on this blog about the constant factor I believe
After a code search on github, gecko, chromium and Linux have zero LFU despite having tons of LRUs.
And zero LRFU too.
So it seems that browsers and OS engeeners should learn better cache algorithms, it could allow huge performance gains!
- jleahy 6y agoThe main linux page cache is 50% LRU and 50% LFU (half of the available memory devoted to each).