|
|
|
|
|
by heisjustsosmart
1407 days ago
|
|
Recency-only algorithms are blind to high-probability patterns
in the same way frequency-only algorithms
A high probability occurrence must be frequent and will stay reasonably recent. Unless it's high probability that just /somehow/ doesn't happen much.Perhaps you can provide some citations to some of the things you have written here. the cache replacement algorithm is being
exercised upwards of 10s of millions of times per second
This is database pages not CPU cache lines. It is not that high. |
|
The "high-probability" refers to a type of pattern, not a specific instance, so there is no implication of recency. A page access pattern can be detected frequently but involve different pages each time.
Bélády's optimality theorem means cache replacement algorithm performance is governed by the theoretical limits on sequence prediction. You can optimize for either breadth or depth; improving performance for one pattern necessarily reduces performance for others. In practice, database caches optimize heavily for a few patterns and ignore the rest; the performance for the patterns they ignore is not much worse than if they optimized for all patterns equally, so it is a good trade.