[Paper Review] Pangloss: a novel Markov chain prefetcher
Pangloss is a hardware-efficient Markov chain-based prefetcher that models delta transitions between memory addresses using a set-associative cache with per-page delta tracking to improve accuracy in complex access patterns. It achieves 6.8% and 8.4% geometric speedup over KPCP and BOP in multi-level prefetching, with 40.4% speedup over non-prefetching, while staying within a 64 KB space budget.
We present Pangloss, an efficient high-performance data prefetcher that approximates a Markov chain on delta transitions. With a limited information scope and space/logic complexity, it is able to reconstruct a variety of both simple and complex access patterns. This is achieved by a highly-efficient representation of the Markov chain to provide accurate values for transition probabilities. In addition, we have added a mechanism to reconstruct delta transitions originally obfuscated by the out-of-order execution or page transitions, such as when streaming data from multiple sources. Our single-level (L2) prefetcher achieves a geometric speedup of 1.7% and 3.2% over selected state-of-the-art baselines (KPCP and BOP). When combined with an equivalent for the L1 cache (L1 & L2), the speedups rise to 6.8% and 8.4%, and 40.4% over non-prefetch. In the multi-core evaluation, there seems to be a considerable performance improvement as well.
Motivation & Objective
- To address the challenge of inaccurate Markov chain modeling in prefetching due to page boundaries and out-of-order execution obfuscating delta transitions.
- To design a hardware-friendly, space-efficient representation of Markov chains that maintains accurate transition probability metrics for complex access patterns.
- To improve prefetch accuracy and performance by tracking delta transitions per page while enabling global decision-making using a compact, associative structure.
- To evaluate the prefetcher in single- and multi-core workloads under realistic space and logic complexity constraints.
Proposed method
- The system uses a set-associative delta cache indexed by current delta, storing the most frequent next deltas with associated probabilities.
- It maintains a separate page cache to track page identifiers and resolve page transitions, enabling per-page delta tracking to avoid invalid transitions across pages.
- A traversal heuristic selects only transitions with probability > 1/3, limiting the number of candidate prefetches to two per state for low-latency decision-making.
- The Markov model is built using a frequency-based adjacency matrix for delta transitions, with sparsity exploited via associative structures to reduce area and complexity.
- The design uses 10-bit delta sizes for L1 (512 offsets) and 7-bit for L2 (64 offsets), with 16-way associativity and 7-bit LFU counters to track access frequency.
- The prefetcher is evaluated in ChampSim using 46 benchmark traces, comparing single-level (L2) and multi-level (L1 & L2) configurations against KPCP and BOP.
Experimental results
Research questions
- RQ1Can a compact, hardware-friendly Markov chain representation outperform existing state-of-the-art prefetchers in complex memory access patterns?
- RQ2How effective is per-page delta tracking in reconstructing valid transition probabilities when page boundaries and out-of-order execution distort the global delta stream?
- RQ3What is the performance gain of combining L1 and L2 prefetching using the same Markov-based mechanism, and how does it scale across multi-core workloads?
- RQ4To what extent does the proposed model reduce false positives and improve accuracy compared to traditional stride or distance prefetching?
Key findings
- The multi-level Pangloss (L1 & L2) achieves a 6.8% geometric speedup over KPCP and 8.4% over BOP in single-core evaluation.
- The geometric speedup over non-prefetching is 40.4%, significantly outperforming baseline prefetchers.
- The single-level L2 version achieves 1.7% and 3.2% speedup over KPCP and BOP, respectively, with 33.5% speedup over non-prefetching.
- The total area consumption is 59.4 KB in single-core mode, well under the 64 KB competition budget, and scales efficiently to multi-core with 4× multiplication.
- The design maintains low logic complexity through low associativity and a probability-based traversal heuristic, enabling efficient hardware deployment.
- Multi-program evaluation shows consistent performance gains, with the multi-level prefetcher outperforming KPCP across diverse program mixes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.