arXiv:2610.30990cs.AROct 2026

Manuscript Offprint

arXiv:2610.30990

SnakeCharmer: Orchestrating Utility, Timeliness, and Placement in GPU Prefetching

Yuhan Tang, Tiejun Li, Jianmin Zhang, An Hu, Guangyu Sun, Sheng Ma, Yiqun Lang, Hanqing Li, Siqing Fu

Yuhan Tang†, Tiejun Li†, Jianmin Zhang†, An Hu†, Guangyu Sun‡, Sheng Ma†, Yiqun Lang†, Hanqing Li†, Siqing Fu†

† College of Computer Science and Technology, National University of Defense Technology, China

Email: {tangyuhan, tjli, jmzhang, huan19, masheng, lyq, lihanqing23013, fusiqingnudt}@nudt.edu.cn

‡ School of Integrated Circuits, Peking University, China, Email: gsun@pku.edu.cn

Abstract—GPUs rely on massive thread-level parallelism to tolerate long memory latency, yet they still suffer severe stalls when many warps simultaneously wait for data from the memory system. Address-prediction-based GPU prefetchers can mitigate such stalls, but accurate prediction alone does not guarantee performance improvement: a predicted prefetch becomes beneficial only if it is worth issuing, arrives at the right time, and is retained without harmful interference. Because these requirements interact, optimizing any single dimension in isolation can simply move the bottleneck to another.

We capture these requirements with a predicted-prefetch-to-realized-benefit perspective and propose SnakeCharmer, a unified backend prefetch-control framework for address-prediction-based GPU prefetchers. SnakeCharmer separates address prediction from prefetch realization: the frontend predictor generates prefetch candidates, while the backend control path jointly controls utility, timeliness, and placement by determining whether each candidate should be issued, when it should be issued, and where the returned data should be retained. SnakeCharmer realizes this control path with zero-value-aware filtering for utility, hierarchical feedback-driven distance tuning for timeliness, and a register-assisted prefetch buffer for placement. We design and implement SnakeCharmer primarily on top of Snake, and adapt the same backend-control principles to APOGEE to demonstrate that SnakeCharmer's benefits are not limited to a single frontend predictor. On an A100 GPU model, SnakeCharmer improves performance/energy efficiency by 12.8%/20.8% over Snake and by 1.7%/3.2% over APOGEE, with modest hardware overhead.

Index Terms—GPU, prefetching, register file, L1 cache.

I. INTRODUCTION

Modern GPUs rely on massive thread-level parallelism (TLP) to tolerate long memory access latency [1]–[4]. By maintaining many active warps on each streaming multiprocessor (SM), the warp scheduler can switch to another ready warp when the current one stalls on a memory request, thereby overlapping memory latency with useful computation [5]–[9]. However, as the gap between GPU compute throughput and memory-system latency continues to widen, TLP alone is increasingly insufficient to fully hide long-latency accesses [3], [10]–[13]. When many resident warps simultaneously wait for data from the L2 cache or off-chip memory, the SM can run out of ready warps and incur substantial idle cycles, leading to underutilized compute resources and degraded performance [14]–[18].

To mitigate such exposed memory latency, prior work [19]–[21] has explored address-prediction-based GPU hardware prefetching. These prefetchers typically have a logically separable frontend/backend organization: a frontend predictor generates prefetch-address candidates by exploiting regular relationships among memory addresses, while a backend control path determines how these candidates are issued and managed. This scope differs from scheduling-aware prefetchers [22]–[24] whose candidate generation is tightly coupled with warp/CTA scheduling decisions. However, while accurate address prediction is necessary for prefetching, it is not sufficient to guarantee performance improvement, especially in GPUs where many warps concurrently contend for limited cache capacity, MSHR entries, queues, bandwidth, and on-chip buffering resources. As a result, the benefit of a predicted prefetch depends not only on whether a future address can be identified, but also on whether the candidate is worth issuing, when it should be issued, and where the returned data should be retained. We refer to these requirements as utility, timeliness, and placement. In this work, utility captures whether a candidate is likely to fetch non-zero data rather than low-utility all-zero data; timeliness captures whether the data arrives before, but not too long before, its demand use; and placement captures whether the data can be retained without displacing demand-fetched cache blocks.

Although prior address-prediction-based GPU prefetchers incorporate mechanisms related to these requirements, they typically optimize only one aspect [19]–[21]. This partial treatment is insufficient because utility, timeliness, and placement interact. Utility alone cannot replace timeliness control, because even a candidate worth issuing provides little benefit if it arrives too early or too late relative to its demand use. Timeliness alone cannot replace placement management, because even a well-timed prefetch may displace demand-fetched data if inserted into a highly contended cache. Placement alone cannot replace utility filtering, because low-utility prefetches may already consume bandwidth, MSHR entries, queues, and on-chip buffering resources before their data is retained. Thus, optimizing only one dimension can simply

©2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.

move the bottleneck to another. This motivates a predicted-prefetch-to-realized-benefit perspective, as illustrated in Fig. 1, which views prefetching as a conversion process in which predicted prefetches must satisfy utility, timeliness, and placement requirements before they become realized performance benefits.

Figure

Fig. 1. A predicted prefetch becomes a realized benefit only if it satisfies utility, timeliness, and placement requirements.

Motivated by this perspective, we propose SnakeCharmer, a predictor-agnostic backend prefetch-control framework for address-prediction-based GPU prefetchers. SnakeCharmer separates address prediction from prefetch realization: the frontend predictor generates candidates, while the backend control path determines whether, when, and where each candidate should be handled so that it can turn into a realized benefit. Because SnakeCharmer operates on prefetch candidates rather than on a particular prediction algorithm, it can be integrated with other address-prediction-based prefetchers through only lightweight frontend-specific adaptations, such as candidate metadata and the prefetch-generation interface. We instantiate SnakeCharmer primarily on Snake [19] and further demonstrate its portability by adapting it to APOGEE [20].

SnakeCharmer implements this backend with three mechanisms. To improve utility, zero-value-aware filtering suppresses prefetches likely to fetch all-zero data before they consume memory-system resources. To improve timeliness, a hierarchical feedback-driven distance tuner adjusts prefetch distance according to warp execution progress. To improve placement, a register-assisted prefetch buffer opportunistically repurposes idle register capacity to retain prefetched data outside the highly contended L1 cache. On an A100 GPU model, SnakeCharmer improves performance and energy efficiency by 12.8%/20.8% over Snake and 1.7%/3.2% over APOGEE, showing that its benefits are not limited to a single frontend predictor. This paper makes the following contributions:

• We introduce the predicted-prefetch-to-realized-benefit perspective, showing that predicted GPU prefetches can fail to deliver performance gains due to interacting utility, timeliness, and placement issues.

• We propose SnakeCharmer, a backend prefetch-control framework for address-prediction-based GPU prefetchers that jointly controls whether prefetches are issued, when they are issued, and where the returned data is retained.

• We design and implement SnakeCharmer primarily on top of Snake using zero-value-aware filtering, hierarchical feedback-driven distance tuning, and register-assisted prefetch buffering.

• We demonstrate SnakeCharmer’s broader applicability by adapting its backend-control principles to APOGEE with lightweight frontend-specific modifications.

References (58)