Question About 'movingAverageParam' in MarginalHitsStrategy #376
Unanswered
hazelnut-99
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi team,
I've been exploring different slab rebalancing strategies in CacheLib and had a question about the
MarginalHitsStrategy
.Specifically, I was looking into the
movingAverageParam
, which is used to smooth rankings based on the marginal hit score.When looking into the moving average equation: code reference
new_avg = avg * movingAverageParam + newValue * (1 - movingAverageParam)
Intuitively, it feels like this smoothing would preserve the original ranking anyways and wouldn’t impact which allocation class gets picked as a victim/receiver (please correct me if I’m wrong).
I’m curious—what’s the design reasoning behind this smoothing approach, and how does this parameter help in practice?
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions