High performance cache replacement using re-reference interval prediction (RRIP)
Aamer Jaleel, Kevin B. Theobald, Simon C. Steely et al. · Proceedings - International Symposium on Computer Architecture/Proceedings · 2010
Practical cache replacement policies attempt to emulate optimal replacement by predicting the re-reference interval of a cache block. The commonly used LRU replacement policy always predicts a near-immediate re-reference interval on cache hits and misses. Applications that exhibit a distant re-reference interval perform badly under LRU. Such applications usually have a working-set larger than the cache or have frequent bursts of references to non-temporal data (called scans). To improve the performance of such workloads, this paper proposes cache replacement using Re-reference Interval Prediction (RRIP). We propose Static RRIP (SRRIP) that is scan-resistant and Dynamic RRIP (DRRIP) that is both scan-resistant and thrash-resistant. Both RRIP policies require only 2-bits per cache block and easily integrate into existing LRU approximations found in modern processors. Our evaluations using PC games, multimedia, server and SPEC CPU2006 workloads on a single-core processor with a 2MB last-level cache (LLC) show that both SRRIP and DRRIP outperform LRU replacement on the throughput metric by an average of 4% and 10% respectively. Our evaluations with over 1000 multi-programmed workloads on a 4-core CMP with an 8MB shared LLC show that SRRIP and DRRIP outperform LRU replacement on the throughput metric by an average of 7% and 9% respectively. We also show that RRIP outperforms LFU, the state-of the art scan-resistant replacement algorithm to-date. For the cache configurations under study, RRIP requires 2X less hardware than LRU and 2.5X less hardware than LFU.
Cited by 641 works. doi:10.1145/1815961.1815971
Authors
References
- A study of replacement algorithms for a virtual-storage computer
- Pin
- Pin
- The LRU-K page replacement algorithm for database disk buffering
- Cache decay
- Data cache management using frequency-based replacement
- 2Q: A Low Overhead High Performance Buffer Management Replacement Algorithm
- ARC: a self-tuning, low overhead replacement cache
- Pinpointing Representative Portions of Large Intel® Itanium® Programs with Dynamic Instrumentation
- LRFU: a spectrum of policies that subsumes the least recently used and least frequently used policies