cache icon indicating copy to clipboard operation
cache copied to clipboard

Adaptivity

Open ben-manes opened this issue 6 years ago • 1 comments
trafficstars

As you observed with the Youtube trace, the static configuration of W-TinyLFU is not optimal across all workloads. We spent some time exploring options and have a really good solution now.

Caffeine 2.7 includes adaptive window sizing, allowing it to dynamically optimize towards recency or frequency. The below trace chains Corda's bitcoin (recency), Lirs' loop (frequency), and Corda's again. It achieves 39.5% hit rate where optimal is 40.3%, and all other policies are 20% or lower. This is using hill climbing, a decay rate to converge, and a restart threshold of 5% to detect workload changes.

mixed

ben-manes avatar Feb 11 '19 21:02 ben-manes

Thank you, I'll take a look

nqv avatar Feb 19 '19 06:02 nqv