Skip to content

Similarity between windowed LFU and LRU-k caching? #790

Answered by ben-manes
GavinRay97 asked this question in Q&A
Discussion options

You must be logged in to vote

Are you referring to the the Window LFU policy from Karakostas & Serpanos?

Caffeine implements Window TinyLFU, which is a different policy from either of those. It is amortized O(1) where a frequency histogram is maintained across all entries (current and historical) to determine whether to admit an entry. This policy differs from most LFUs because it is not about choosing a victim, but instead is an admission criteria. In that policy the "window" is short for "admission window" to delay the evaluation criteria for promotion into the "main" region, similar to SLRU's probation vs protected regions which promotes on access. The size of the admission window is workload dependent and we size …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GavinRay97
Comment options

Answer selected by ben-manes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants