Reinforcement Learning-Based Cache Replacement Policies for Multicore Processors
Open Access
- 4 June 2024
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Access
- Vol. 12, 79177-79188
Abstract
High-performance computing (HPC) systems need to handle ever-increasing data sizes for fast processing and quick response times. However, modern processors’ caches are unable to handle massive amounts of data, leading to significant cache miss penalties that affect performance. In this context, selecting an effective cache replacement policy is crucial to improving HPC performance. Existing cache replacement policies fall short of Bélády’s optimal algorithm, and we propose a new approach that leverages the coherence state and sharers’ bit-vector of a cache block to make better decisions. We suggest a reinforcement learning-based strategy that learns from past eviction decisions and applies this knowledge to make better decisions in the future. Our approach uses a next-attempt method that combines the results from classic cache replacement algorithms with reinforcement learning. We evaluated our approach using the Sniper simulator and seven kernels from CAP Benchmarks. Our results show that our approach can significantly reduce the cache miss rate by 41.20% and 27.30% in L1 and L2 caches, respectively. In addition, our approach can improve the IPC by 27.33% in the best case and reduce energy consumption by 20.36% compared to an unmodified policy.Keywords
Funding Information
- Coordenação de Aperfeiçoamento de Pessoal de Nível Superior (001)
- Conselho Nacional de Desenvolvimento Científico e Tecnológico (311697/2022-4)
- Fundação de Amparo à Pesquisa do Estado de Minas Gerais
- Pontifícia Universidade Católica de Minas Gerais
This publication has 16 references indexed in Scilit:
- A Survey of Machine Learning for Computer Architecture and SystemsACM Computing Surveys, 2022
- Designing a Cost-Effective Cache Replacement Policy using Machine Learning2021
- A Primer on Memory Consistency and Cache Coherence2020
- Applying Deep Learning to the Cache Replacement Problem2019
- Maximizing Cache Performance Under Uncertainty2017
- Back to the Future: Leveraging Belady's Algorithm for Improved Cache Replacement2016
- CAP Bench: a benchmark suite for performance and energy evaluation of low‐power many‐core processorsConcurrency and Computation: Practice and Experience, 2016
- An Evaluation of High-Level Mechanistic Core ModelsACM Transactions on Architecture and Code Optimization, 2014
- CSHARP: Coherence and SHaring Aware Cache Replacement Policies for Parallel Applications2012
- PinACM SIGPLAN Notices, 2005