Merlin: Improving Page Prefetching via Online Reinforcement Learning
Open Access
- 18 November 2026
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Storage
Abstract
While the operating system (OS) page swapping mechanism enables memory oversubscription, memory-intensive workloads suffer significant performance degradation when the main memory cannot accommodate their entire working sets. This is primarily caused by the performance gap between main memory and backing storage. To hide the swapping overhead, prefetching techniques predict future data accesses and proactively load necessary contents from slower backing storage into the main memory. However, existing OS prefetching algorithms rely on predefined rules to analyze page access patterns, which are not adaptive to changing workloads and fail to align prefetching policies with system status. In this paper, we introduce Merlin , an adaptive, fully automated, and application-transparent page prefetching scheme that employs reinforcement learning (RL) to make intelligent prefetch decisions. We formalize the prefetcher as an RL agent, which extracts critical features from the swap request and system environment to continuously make prefetch decisions. For each prefetch decision, Merlin receives a numerical reward or penalty based on the current system status and prefetch-hit. Merlin learns towards getting higher rewards to make more timely, accurate, and system-aware prefetch decisions. Through extensive evaluation, Merlin achieves up to \(98\% \) prefetching accuracy with less than 20KB metadata overhead, requiring no code modifications to workloads. Compared to Linux’s default prefetcher, it delivers up to 2.7 × speedup in overall execution time on microbenchmarks and up to 1.5 × on real-world workloads.
This publication has 32 references indexed in Scilit:
- TinyBERT for branch prediction in modern microprocessorsNeural Computing and Applications, 2024
- A New Formulation of Neural Data Prefetching2024
- Compute Express Link (CXL): Enabling Heterogeneous Data-Centric Computing With Heterogeneous Memory HierarchyIEEE Micro, 2022
- Troodon: A machine-learning based load-balancing application scheduler for CPU–GPU systemJournal of Parallel and Distributed Computing, 2019
- Bingo Spatial Data Prefetcher2019
- Domino Temporal Data Prefetcher2018
- Best-offset hardware prefetching2016
- Supervised Sequence Labelling with Recurrent Neural Networks2012
- Correlation Based File Prefetching Approach for Hadoop2010
- Technical Note: Q-LearningMachine Learning, 1992