WorksComputer Science
Caerus: Prefetching by Thinking Globally and Acting Locally
Abstract
Modern processors rely heavily on data prefetching to bridge the growing performance gap between computation and memory accesses. In offset prefetching, prefetches are issued at an address delta relative to the most recently observed access, selecting deltas that have exhibited high coverage in the recent access-stream history. The Best-Offset Prefetcher (BOP) exemplifies this approach by selecting a single uniformly-issued global offset that delivers timely prefetches. However, its lack of context-sensitive accuracy tracking results in significantly increased DRAM traffic and sometimes disappointing performance. Conversely, Berti, the state-of-the-art offset prefetcher, achieves impressive prefetching performance and accuracy. However, its Program-Counter (PC)-local approach to extracting offsets limits its ability to capture global memory patterns, meaning there are many scenarios where simpler global offset prefetchers, such as BOP, outperform it. Observing the limitations of contemporary offset prefetchers, we present Caerus: an offset prefetcher that employs PC-local filtering on multiple non-overlapping globally derived offsets. Caerus extracts multiple offsets from the global memory trace and maximizes their combined coverage by training each offset only on accesses not already covered by previously learned offsets. The accuracy of each extracted offset is tracked per-PC based on whether it can cover future accesses for any PC. This allows Caerus to address complex delta patterns while maintaining high accuracy. In SPECspeed 2017, Caerus gains a geomean speedup of 8.3%, outperforming Berti by 2.0% while achieving low hardware and DRAM-traffic overhead.
This work has been partially funded by UKRI grant EP/Y020499/1.
Introduction
Modern processors are increasingly constrained by memory latency. As CPU cores become faster and more parallel, the gap between computation speed and memory access time is expanding. This is particularly problematic in memory-intensive workloads where the cost of waiting for memory transactions dominates execution time.
To bridge this gap, almost all modern CPUs employ data prefetchers that speculate on future memory accesses and fetch addresses before they are explicitly requested. Offset prefetchers [31], [24], [14], [10], [33] have emerged as the preferred method of spatial prefetching, with the state-of-the-art being Berti [25]. Their practical relevance is further demonstrated by the adoption of the Best-Offset Prefetcher (BOP) [19] in real systems [7], [29].
Offset prefetchers trigger timely prefetches by looking far enough back in the address stream, and can cover complex repeating patterns such as (+2, +3, +2, +3) by learning a compound offset such as +5, rather than being limited to a single fixed stride (see Figure 2). These factors significantly enhance the coverage and timeliness of offset prefetchers. Furthermore, since offset prefetchers do not obey precise ordering constraints, they are invariant to the negative effects of out-of-order execution.
Figure 2. Illustration of offset prefetching. Two competing adjacent stride patterns and are present, but neither is consistently correct. Looking back further in the access history reveals that an offset access at , a combination of and , will always give correct prefetches.
However, we observe that Berti [25], [24], the current state-of-the-art design, has coverage limitations that harm its potential. This is due to its completely PC-localized training and filtering: an offset trained at one PC can never cover accesses from another PC (see § 2-A). Recent top DPC4 [1] entrants BertiGO [35] and GBerti [30] do not fix these underlying issues, with the winner, BertiGO, only improving on Berti by 0.5% (Figure 1). Composite prefetchers such as Chimera [14] and Hyperion [10] acknowledge this inherent drawback and incorporate heuristics that employ orthogonal prefetchers. Hyperion derives offsets localized to cover entire individual regions/pages [14], [10], while Chimera incorporates a BOP-like [19] prefetcher that uses one offset to cover all accesses [14]. However, both of these designs fail to realize and exploit an important property: that the performant offsets at a given PC may effectively cover the access of an entirely different PC.
Figure 1. Geomean speedup (SPEC2017) vs. hardware/DRAM-traffic overhead (log-scale) of BOP [19], MLOP [33], Chimera [14], Berti [25], BertiGO [35], GBerti [30] and Caerus. Caerus achieves the highest performance while incurring low DRAM traffic and hardware cost.
BOP [19] avoids this limitation by considering offsets derived from a global scope. However, issuing the same offset prefetch at every PC ignores the local execution context and is often inaccurate [25]. This limits BOP to issuing just one offset, in order to not increase inaccuracy further. MLOP [33] issues from many offsets by trading off timeliness and coverage with each, but suffers from very high DRAM traffic, in turn harming performance (see § 2-B).
Given the limitations of contemporary offset prefetchers, we develop Caerus: a novel hybrid methodology that incorporates the granular per-PC accuracy tracking strategy of Berti, enabling a variable number of distinct offsets to be issued at different PCs, while preserving the comprehensive, global training scope of BOP. This requires several new insights:
We develop a next-best offset selection algorithm to choose the set of offsets that collectively maximizes coverage by minimizing wasteful redundancy between distinct offsets that cover the same loads. This handles the problem of overlap: the best offset(s) at PC A might cover all the same loads as the best offset(s) at PC B, leaving accesses at PC C not prefetched at all.
We then apply a filter on these overlap-resistant offsets based on their relevance in the load’s PC-local context, allowing Caerus to achieve both high coverage and accuracy.
Finally we introduce a practical method for tracking timeliness inspired by BOP but generalized to complex conditional, multi-offset prefetches, avoiding Berti’s complex cache timeliness tags.
Caerus achieves an 8.3% speedup in SPECspeed 2017, outperforming all of its competitors by a wide margin (Figure 1) while being highly frugal. Caerus achieves comparable DRAM traffic and hardware size to the original Berti [25], while outperforming it by 2.0%. It also outperforms the DPC4 winner, BertiGO [35], by 1.5% while consuming only a tenth of the hardware resources and half the excess DRAM traffic.
Motivation
Existing offset prefetching algorithms differ in how they gather and filter offsets, leading to various trade-offs across performance metrics. This section analyzes the performance characteristics and gaps of three prevailing offset prefetchers.
a) Offset Prefetching: Offset prefetching [31], [19] can be seen as a generalization of stride prefetching [8] (Figure 2). Stride prefetching analyzes adjacent accesses and therefore works well when address deltas are constant, but struggles when access patterns alternate. Offset prefetching instead looks further back in the access stream to identify more effective compound deltas. In Figure 2, analyzing adjacent accesses alone will yield a stride of 2 or 3, each having 50% accuracy and 50% coverage. An offset of 5 will instead always cover a correct future access, with 100% coverage and accuracy.
b) Best-Offset Prefetching: The Best Offset Prefetcher (BOP) [19] is the winner of the 2nd Data Prefetching Championship (DPC2). It scores a predetermined offset list against the processor’s global memory trace—with “global” meaning the Program Counter (PC) of each load instruction is not considered—and extracts one “best offset”. On cache miss or prefetch hit, BOP issues a prefetch to the miss address + the best offset. The scoring mechanism updates continuously, replacing the current offset if a better candidate is found or turning off prefetching if no good candidates exist.
c) Multi-Lookahead Offset Prefetching: The Multi-Lookahead Offset Prefetcher (MLOP) [33] improves upon BOP by introducing multiple global offsets. For every offset, MLOP considers multiple levels of score where each level corresponds to a specific lookahead. MLOP uses these different lookaheads to balance the trade-off between prefetch timeliness (whether an issued prefetch arrives before the target demand request) and prefetch coverage. In practice, MLOP is often very performant but suffers from high induced DRAM traffic and low prefetch accuracy.
d) Berti: Berti [25] is a state-of-the-art, accurate offset prefetcher. Its foundation lies in the belief that offsets should always be timely and PC-local to precisely capture the local execution context. Berti defines local offsets as the difference in cache line addresses between any two demand accesses issued from the same instruction (identified by their PC). Timely prefetches, or prefetches that successfully arrive in the cache before their predicted demand access, are identified by recording the latency of cache refills. Hence, Berti trains on a filtered view of the global memory trace restricted to timely and PC-local accesses, allowing it to aggressively and dynamically derive offsets. The larger BertiGO [35] adds per-region filtering and tracking of multiple recent PCs.
Limitations to PC-Local Fine-Grain Training
Despite Berti’s impressive performance, comparing the performance of BOP, MLOP and Berti on individual workloads reveals that Berti often fails to find performant offsets (see cactusADM436 and cactuBSSN607 in Figure 4a). This is caused by Berti’s focus on offsets strictly derived from a PC-local context, which stops it from recognizing prefetching opportunities that only emerge from analyzing global execution.

Figure 4. Speedup and DRAM traffic of BOP, MLOP, and Berti in a selection of SPEC benchmarks.
Figure 3 illustrates a seemingly innocuous example that exposes the limitations of PC-local offset training. Mult_adj_su3_mat_vec, a critical kernel in the milc benchmark from SPEC CPU2006, multiplies a complex-valued matrix by a vector. The inner loop iterates over the row index, and for each column accesses rows 0, 1, and 2, traversing the row-major matrix in column-major order.
Figure 3. Illustration of a cache-line access pattern from the milc benchmark (SPEC CPU2006). After loop unrolling, each of the nine matrix elements is loaded at a distinct PC. The figure shows how elements of consecutively allocated complex matrices map onto 64-byte cache lines. Because each matrix occupies 144 bytes, successive matrices begin at shifting cache-line offsets, and the PC that first touches each line (highlighted, distinct colors denote distinct PCs) varies.
After unrolling the loop, the compiler pairs each element’s real and imaginary parts into a single 128-bit load, producing a straight-line sequence of 9 loads at 9 distinct PCs. When the call site iterates through an array of matrices, the aggregate access pattern is a simple sequential stream that touches every cache line in order. From the perspective of any individual load PC, however, the pattern is far less regular. Each matrix occupies bytes, which is not a multiple of a 64-byte cache line. Successive matrices therefore begin at shifting offsets within their cache lines, and each cache line is touched by four of the nine load PCs. Crucially, the PC that touches a given cache line first in program order, and therefore incurs the initial cache miss, varies from one matrix to the next.
Of the 9 PC-isolated loads, each cache line is accessed by four. A combination of the column-major access order, and cache-line misalignment, means that the first PC to access the line in program order, and the one that therefore observes the miss, is highly varied. Again assuming program order, the PCs that access (0,0), (2,1) and (2,2) always see a +9 stride. The PCs for (2,0) and (1,2) see a stride pattern of (+2,+2,+5) – so no consistent stride, though an offset of +9 will always be correct even from a PC-local perspective.
On an out-of-order processor, the situation worsens: the PC that triggers the cache miss is often not the first in program order. Any of the four PCs that touch each cache line may issue its load first, and as a result, no individual PC consistently observes the +9 stride. Berti consequently underestimates the effectiveness of the +9 offset at each PC and fails to issue it, even though it would be accurate whenever used. A global offset prefetcher, such as BOP or MLOP, evaluates offsets across all PCs collectively. They therefore correctly identify all positive offsets as high-coverage since every cache line is eventually accessed regardless of which PC reaches it first.
Limitations to Global Coarse-Grain Filtering
Nevertheless, BOP and MLOP are not without their own substantial limitations. BOP and MLOP tend to be overly aggressive and inaccurate in many workloads. fig:4b illustrates that BOP and MLOP consistently exhibit a higher DRAM traffic footprint than Berti, exemplified in xz, where BOP generates almost double the DRAM traffic compared to the baseline. In xalancbmk, MLOP generates more than the baseline’s DRAM traffic. This is caused by the accuracy of MLOP and BOP being substantially lower than Berti in many workloads. In mcf, MLOP achieves a substantial speedup despite low accuracy and high DRAM usage. In omnetpp however, this inaccuracy and traffic makes the performance of MLOP worse than the baseline. This is exacerbated in bandwidth-constrained or multicore scenarios due to DRAM contention.
To explain these shortcomings, consider the example from Figure 3, but where the call site accesses the array of matrices non-sequentially on each invocation. Each PC issues only a single load before execution moves elsewhere in the array, so no same-PC stride or offset can be learned. Cross-PC offsets can still be effective, but only when prefetched at the correct load (determined by its PC). Whether a particular cache-line offset is correct is dependent on whether it falls within the following 144-byte matrix. Consider the offsets and . For the PC loading element [0][0], the entire matrix lies ahead, so both offsets and would always be accurate. For the last element [2][2] neither or would ever be accurate. For other elements within the matrix ([0][1], [0][2, 1][1]...), the accuracy of offsets and become progressively lower. Moreover, simply prefetching and at the PC that accesses [0][0] would already cover every cache line in the matrix, making all other prefetch attempts either redundant or inaccurate.
In this paper, we show that high-performance global offset prefetching can be achieved without excessive extra DRAM traffic. We argue that the ineffectiveness of MLOP and BOP’s throttling mechanisms stems from their coarse-grained offset filtering, which fails to consider the accuracy of the offsets extracted differs between PCs. Consequently, offsets accurate for only a subset of PCs disproportionately influence the scoring mechanisms of BOP and MLOP, leading to many inaccurate prefetches and unnecessary traffic.
Towards Better Offset Prefetching
Collectively, these observations suggest that recent prefetching techniques exhibit limitations in either their training mechanisms or filtering strategies. Berti’s approach to training local offsets inhibits it from extracting offsets that are hidden from the PC-local view. BOP’s and MLOP’s approach to offset filtering makes it prone to issuing excessive and inaccurate prefetches. These observations highlight the need for offset prefetchers that simultaneously maintain broad global offset coverage while applying accuracy throttling in a local execution context.
An examination of existing offset prefetchers also motivates Caerus’ use of multiple offsets. BOP only derives one best offset, mainly citing the increase in DRAM traffic as the reason not to consider multiple offsets simultaneously. However, as observed from Figure 4b, DRAM traffic can still become problematic when only training and issuing at most one offset per access due to poor filtering. MLOP [33] issues many global offsets, varying in timeliness, but this only exacerbates DRAM contention further. Berti shows multiple offsets used in a more judicious way, by demonstrating that the best delta varies based on program context. In Berti, 16 offsets are trained simultaneously at each PC. With PC-local training and filtering, Berti is able to substantially lower DRAM-traffic overhead compared to BOP, despite training multiple offsets.
However, training multiple offsets globally introduces the challenge of prefetch overlap. For example in Figure 5, assume that offset 2 covers 70% of memory accesses — and the remaining 30% require offset 5. Offset 5 is very unlikely to be the second, third or fourth best offset. Instead, the next-best offsets will often be 4, 6 and 8: multiples of 2 that will prefetch more aggressively but (assuming 2 is a timely offset) add no more coverage or performance.3
Figure 5. Naively choosing best offsets from offset training introduces large amounts of overlap: offsets of , and all cover the same accesses, leaving address not covered by any prefetch. Caerus avoids this by considering the next-best offset in each training round, which is the best offset for loads currently not covered by another prefetch.
Caerus addresses the issue of prefetch overlap by isolating the training of different offset candidates. It asks the question: assuming prefetches are issued for the offsets that have already been trained, what is the next-best offset (Section III-A1) that improves coverage the most for the remaining demand misses?
Caerus
To address the limitations of contemporary offset prefetchers, here we present Caerus: an offset prefetcher that employs PC-local filtering on overlap-resistant globally derived offsets. To cover the diverse access patterns across multiple PCs, Caerus employs a novel circular training mechanism that learns multiple non-overlapping offsets. Caerus uses the Score Table to evaluate offset candidates against recent global accesses in the RR Table. The learned offsets are committed to an Offset Table and periodically retrained. Using the Holding Table, Caerus is able to ensure timeliness of its learned offsets by inserting entries into the RR Table after its fill delay. Caerus then filters the derived offsets through its per-PC Accuracy Table, allowing it to adapt to different PC contexts and facilitate cross-PC prefetching.
Figure 6 shows the design of Caerus using the following structures, with Figure 7 showing an operational timeline.
Figure 6. Design of Caerus. On a demand miss/prefetch tag hit (solid blue), Caerus generates accurate offsets for prefetching (Section III-C). The accessed address is inserted into the Holding Table or Recent Requests (RR) Table (Section III-D). The Score Table is updated if deltas between the access and entries in the RR Table match an offset candidate (dot-dashed green) (Section III-A). Upon a cache fill (dashed red), matching Holding-Table entries update the RR Table (Sections III-C and III-D). Illustrations are given for ❶ RR-Table operations (Figure 8), ❷ offset retraining (Figure 9), and ❸ accurate offset selection (Figure 10).

Figure 7. Operational timeline of Caerus.
Score Table: records scores for offset candidates during the training phase (Section III-A).
Offset Table: tracks learned active offsets (Section III-A).
Recent Requests (RR) Table: a set of shift registers that store the PC and address tag of recent prefetches or demand misses. Entries in the RR Table are used for offset training (Section III-A) on new observations and accuracy tracking (Section III-C) upon eviction.
Accuracy Table: a PC-indexed table containing a 4-bit saturating counter for each active offset to track its accuracy (Section III-C).
Holding Table: tracks the PC and address tag of in-flight prefetch requests/demand misses to maintain timeliness (Section III-D).
Offset Training
Caerus employs a novel training mechanism that builds upon BOP’s, Berti’s and Chimera’s training mechanisms to learn multiple overlap-resistant next-best offsets.
The original BOP maintains a list of predetermined offset candidates and cycles through each offset candidate in turn, testing them in its Recent Requests table: a direct-mapped array of the last few memory accesses that could have generated timely prefetches (see Section III-D). This is tested on every demand miss or tagged prefetch hit (i.e., the first time a previously prefetched value is accessed from the CPU-side, which is when a demand miss would otherwise have occurred without the prefetcher). When a cache line with address is accessed4, BOP tests for in the Recent Requests (RR) table. If it is present in the RR, ’s score is incremented. The learning phase ends when an offset’s score reaches the threshold, or when the number of rounds (the number of times all of BOP’s offsets have been tested) reaches the threshold.
This is a slow process and we observe that BOP typically requires around 5000 memory accesses to train a reliable offset. This is because every offset is considered one at a time for each access, even if they never appear in the application.
Berti uses a structure that reverses this process to allow for faster training. Rather than walking through a list of offsets and testing for their existence, it instead stores a table of recent accesses indexed by PC. Offsets are then generated by taking, for each historical access at the same PC that is deemed able to generate timely prefetches, generating instead of testing for for each offset . The intuition is that, by using a heuristic that good offsets are localized to same-PC accesses, fewer candidates need to be checked.
Caerus uses a similar heuristic: localizing to testing (though not exclusively issuing6) same-page accesses7. Our modified RR table is thus stored as a set of 32 shift registers, each storing 16 entries (see Figure 8). The relevant shift register is chosen based on the page index. Within the shift register, all accesses within the same page (measured by both index and tag) as the current access are compared to generate offsets. Any generated offsets that are also in the BOP-style offset candidate list8 are incremented. At the end of a 500-load epoch, or when one entry reaches a ScoreMax threshold of 247, the best offset is chosen and committed to the Offset Table so it can issue prefetches. Similar to BOP’s BadScore mechanism, we disable the current learning offset slot if no offset in the Score Table scores above 10.
Figure 8. Illustration of the operations on the Recent Requests (RR) table. When training a new address X, the scores of the deltas between X and the entries in the shift register with the same Reg_ID are incremented. When a shift register is full, each new insertion evicts the oldest entry (FIFO) and updates the accuracy of the learned offsets.
The shift registers act as FIFO queues: once full, every insertion results in the oldest entry being evicted from the RR. This evicted entry is used alongside currently learned offsets to update the accuracy of PC-offset pairs in Caerus’ Accuracy Table (Section III-C).
Discovering the Next-Best Offset
We alter BOP’s training mechanism in Caerus to train best offsets. The naive method of taking the best scoring offsets in the same learning phase is inadequate, since the selected offsets are prone to overlap (see Figure 5), harming the prefetcher’s potential to discover groups of offsets that collectively maximize coverage.
As a result, after selecting the best-scoring offset from the last learning phase, we want to discover the next-best offset, i.e., the offset that increases prefetch coverage the most in the presence of other (typically better) offsets. We alter BOP’s offset training to only occur either on a cache miss (where there were no timely prefetches by any other offset), or when we are performing cyclical retraining (Section III-A2) on the offset that caused the prefetch for the current access. Unlike BOP, we do not train offsets on any other tagged-prefetch hits already inside the cache. This means that each training round sees a filtered address stream: rather than trying to find the overall best offset each time, we instead attempt to find the best offset for all the accesses not covered by prefetches already being triggered existing learned offsets (Section III-B).
Cyclical retraining
Caerus continually adapts to program phase changes by replacing outdated offsets in the Offset Table. On start-up, the Offset Table is progressively filled with newly trained next-best offsets (Figure 9a). Once the table is full, Caerus begins retraining the oldest slot: it runs a new learning phase for that slot to determine whether a better offset exists (Figure 9b). Unlike initial training, which only considers accesses not already covered by any current offset (Section III-A1), retraining also considers accesses covered by the offset currently occupying the slot. Hence, the incumbent offset competes alongside new candidates, allowing it to be
Figure 9. Illustration of cyclical retraining. The Offset List is first filled with next best offset candidates (see Section III-A1). Caerus then continuously retrains its most outdated offsets to reflect changes in the memory access pattern.
confirmed or replaced. If the learning phase fails to find any good offset, the slot is disabled and Caerus cyclically scans the table, skipping disabled slots, to locate the next oldest active slot to retrain (Figure 9.c). Disabled slots are naturally re-enabled: after a successful learning phase, the learning pointer advances to the next slot in round-robin order without skipping disabled slots, so a previously disabled slot is eventually reached, trained from scratch, and re-populated with a new offset should one exist.
In contrast to offset training, which aims to train on accesses not covered by prefetches from any current offset (Section III-A1), offset retraining allows accesses covered by the current learning offset to be considered as well. This allows the current retraining offset to be unchanged if no better candidate is found. Otherwise, when offset at position is retrained with a new non-overlapping offset , position ends up being retrained back to the original offset . As a result, offset is temporarily removed from its original position and remains unavailable until it is rediscovered in a later training epoch, which can reduce coverage.
Overlap Prevention
Caerus aims to train only on accesses not covered by other offsets to prevent prefetch overlap from consuming the finite supply of trained offsets (see Section III-A and Figure 5). This is achieved by filtering out loads that would be covered by prefetches from existing active offsets. Upon observation of an access to an address from PC , where is the currently training offset, is only trained on if there is no currently learned offset for such that: a) could have prefetched ( is in the RR table), and b) is also accurate (PC is issuing as an offset).
If such an offset exists, and PC ’s accuracy table for passes the accuracy threshold, then Caerus is currently using offset to issue prefetches. Since the relevant address is in the RR table, the resulting prefetch would also be timely, so no other offset exists that could improve Caerus’ ability to issue timely prefetches for address . By contrast, if no offset satisfies the above criteria, that means the current access is either only covered by timely prefetching with offset , or is not covered at all. In both cases, should be trained to attempt to cover the access in the future.
Accuracy Tracking
The Accuracy Table is indexed by the PC and each entry holds a 4-bit saturating-counter value for each active offset.10 Accuracy of offsets is updated upon each eviction from the Recent Requests (RR) table, rather than on insertion, to see whether any future accesses would be successfully prefetched by an offset from the perspective of the evicted address . A set of candidate prefetch addresses is derived by summing
the current offsets () with address . If is found in the corresponding shift register of the RR that was just evicted from, ’s accuracy for the PC that initiated is incremented. Conversely, if was not found its accuracy is decremented. We find superior performance by also supporting a notion of indifference: if the distance between and in the shift register is greater than 2/3 the length of the shift register, we consider this to be a prefetch that is likely to be used within a distance where it will be an L2 hit but not an L1D hit, and so we neither increment nor decrement the counter to represent a situation where we are indifferent to prefetching. This avoids over-pessimism and overoptimism in fetching.
On every cache miss or prefetch hit in the cache, the PC that generated the demand request is queried in the accuracy table. Offsets with an accuracy exceeding the preset accuracy threshold in the relevant saturating counter are gathered, summed with the demand address, and issued into the prefetch queue (see Figure 10).11
Figure 10. Illustrative example of generating accurate prefetches. The PC of the demand miss/prefetch tag-hit is looked up in the accuracy table, and currently active offsets that have a sat-counter value larger than the accuracy threshold generate prefetches. If no offsets have a sat counter value that reaches the threshold, no prefetches are generated.
Managing History and Timeliness
Like BOP, Caerus inserts entries into the Recent Requests (RR) table with a delay to ensure the timeliness of its trained offsets. For a prefetch request for at demand access at to be timely, it should arrive before the demand access of . Hence, for a prefetched request or demand miss, the source address is moved into the RR when the requested prefetch or demand miss is filled in the L1D cache. When a subsequent demand address is trained against address in the RR table, the offset would have been a timely prefetch12 issued from the demand access for .
In BOP, in any given training interval, either no prefetches are issued (in which case every demand miss can be moved into the RR table at the time of its own fill), or exactly one prefetch is issued per demand miss or prefetch-tag hit with the same offset . It thus always serves, on the fill of line , to place into the RR table (with representing when prefetching is turned off).
For Caerus the answer is more complicated. Within a training interval, a demand miss or a prefetch-tag hit, i.e., a line that is a cache hit only because it was a useful prefetch, may trigger 0, 1 or multiple prefetches at several possible offsets (depending on their per-PC accuracy). To track when the observed tag-hit to a line should cause to be inserted into the RR table (which should only occur when is able to fulfill a timely prefetch request), at least one of these prefetches must be tracked. Once the fill for that prefetch occurs, is inserted into the RR. This access must also be a prefetch to an address that does not hit in the MSHR, otherwise we would not observe the full latency of a prefetch issued at the time of ’s observation. This requires the addition of a new structure: for the target in-flight request, the Holding Table stores the base address of the request, the offset of the prefetch (or 0 for demand misses), and the PC for accuracy tracking once the value is evicted from the RR (Section III-C).
Since Caerus attempts to capture cross-PC accesses, untimely prefetches may be useful due to the involved fine-grained dependencies preventing timely alternatives. We use an early insertion heuristic: if on an access to address , no entries within the same page as are inside the RR table, is moved immediately into the RR table to eagerly train offsets even if they may be untimely.
Hence, every observation (miss or prefetch-tag hit) ultimately results in an entry being placed in the RR table. There are four possible scenarios for an observation:
Address is the first access in a page. is immediately inserted into the RR table.
Address generates one or more non-redundant prefetches. One such prefetch, , is chosen as representative, and is placed in the Holding Table to insert into the RR table once the prefetch request is filled.
Address generates no prefetches but is itself a cache miss. is placed in the Holding Table so that is inserted into the RR once its access latency completes.
Address generates no prefetches but is itself a prefetch tag hit. No latency can be measured, so is immediately inserted into the RR table.
Experimental Setup
Similar to other recent designs [25], [14], [10], we evaluate Caerus using the trace-based simulator ChampSim [13] using the configuration shown in Table I. This paper selects a wide range of offset prefetchers to evaluate the performance of Caerus. We compare against a carefully-tuned degree-8 stride prefetcher. We also compare against the state-of-the-art offset prefetcher Berti [24], using its open source implementation. Other competitors include Chimera [14], provided by the original authors, the open-source implementation of MLOP [33], and our own implementation of the Best Offset Prefetcher [19] based on gem5’s implementation. Their configuration and sizing is provided in Table III. We also evaluate GBerti [30] and BertiGO [35] from DPC4 [1] in their default configurations, at 12.17 KiB and 29.72 KiB respectively. All prefetchers evaluated are placed in the L1D cache13, observe virtual addresses and issue virtual prefetches that trigger page-table walks. A multi-level prefetching study with both L1D and L2 prefetchers is also conducted, shown in § 5-F.
| Core | Out-of-order, TAGE-SC-L Branch Predictor, 4 GHz with 6-issue width, 5-retire width, 352-entry ROB |
| TLBs | L1 iTLB & dTLB: 64 entries, 4-way, 1 cycle STLB: 1536 entries, 12-way, 8 cycles |
| L1I | 32 KiB, 8-way, 3 cycles |
| L1D | 48 KiB, 12-way, 4 cycles, LRU, non-inclusive |
| L2C | 2 MiB 16-way, 10 cycles, LRU, non-inclusive |
| LLC | 6 MiB / core, 16-way, 20 cycles, LRU, non-inclusive |
| MSHRs | 8/16/32/64 in L1I/L1D/L2/LLC |
| PQs | 8/8/16/32 in L1I/L1D/L2/LLC |
| DRAM | 4GB, 3200MTPS, 8 banks, 4 KiB row-buffer per bank |
Table I. Simulation parameters for baseline system.
In total, we evaluate on 307 traces of simpoints across four benchmark suites, originally provided by the 3rd Data Prefetching Championship [38] and open-sourced by Pythia [4]. These include simpoints from SPECspeed 2017 (95 traces), SPEC CPU2006 (93 traces), Ligra (76 traces), and PARSEC 2.1 (43 traces). Each trace is warmed up for 50 million instructions before being timed for a 200 million instruction window. All presented results are aggregated based on the combined simpoints for each workload, and weighted whenever weights are available.
Table II gives the sizing of Caerus’ structures, totaling 2.86 KiB. In the evaluated configuration of Caerus, the RR table consists of 32 shift registers with 16 entries each. The accuracy table contains 128 entries, indexed using 7 bits. For each address, we store a 14-bit hash as an address tag. Potential
| Tables | Entries | Size |
| Accuracy | 128 × 4b Sat Counter × 20 Offsets | 1280B |
| Holding | 64×(7b PC Tag, 14b Addr Tag, 7b Offset) | 224B |
| RR | 32 × 16 × (14b Addr Tag, 7b PC Tag) | 1344B |
| Score | 104 × 5b Score | 65B |
| Offset | 20 × 7b Offset | 18B |
| Total | 2.86KiB | |
| Prefetcher | Configuration | Storage |
| Stride [8] | 256 sets, 4 ways, degree 8 | 12.0 KiB |
| BOP [19] | 256-entry RR, 104 offset candidates | 0.44 KiB |
| MLOP [33] | 128-entry AMT, 500 update epoch, degree 16 | 6.56 KiB |
| Chimera [14] | 128-entry HT, 16-entry PP, 16-entry SP, 1-entry EP | 2.36 KiB |
| Berti [25], [24] | 8-set 16-way history table, 16-entries 16-deltas delta table | 2.55 KiB |
Table II. Sizing of Caerus’ structures.
offsets are selected from a list of 104 candidates, each assigned a 5-bit score. Compared to other state-of-the-art prefetchers, Caerus is only 0.31 KiB larger than Berti and 3.70 KiB smaller than MLOP (see Table III).
Evaluation
In SPECspeed 2017, Caerus achieves an 8.3% speedup over a baseline with no prefetching, where a well-tuned stride prefetcher achieves 3.2%. Caerus’ closest performing competitor, MLOP, achieves only 6.8%, with 20% excess DRAM traffic versus Caerus’ 4.7%. Berti, due to its PC-local context, achieves only 6.1%, and recent DPC4 extensions BertiGO and GBerti do not meaningfully improve this (6.6% and 5.8%) despite an order-of-magnitude increase in hardware overhead. Chimera and BOP achieve considerably lower speedup because of high DRAM traffic overheads and low coverage respectively. Results in other workloads follow a similar trend. Caerus also performs well as an L2 prefetcher. When deployed at both cache levels, it outperforms every other combination of state-of-the-art L1D and L2 prefetchers while incurring extremely low traffic and resource overheads.
Single-Core Performance Analysis
Figure 11 shows a breakdown of speedups per-workload in SPECspeed 2017. Caerus tends to outperform rival techniques by being highly consistent in achieving speedups across different types of memory access. One notable example is cactuBSSN, where Caerus is the most performant prefetcher by a large margin. Although loads in cactuBSSN technically follow regular stride patterns, Berti is not able to provide any speedup due to the overwhelming number of these interleaved loads. Global prefetchers like BOP and MLOP are able to capture some global offsets, but their performance is limited due to finding single or redundant offsets that overlap with each other. Caerus is able to achieve the best of both worlds by finding numerous overlap-resistant offsets while efficiently determining their PC-local usefulness. Other workloads such as pop2 and fotonik3d feature deltas that are simple for MLOP and Caerus to pick up cross-PC but are hard for Berti to pick up locally. Caerus is only rarely not the best performing workload: in bwaves and roms, MLOP achieves marginally higher speedup than Caerus. MLOP’s aggression on specifically subtimely prefetching gives a slight gain. In most workloads, Chimera underperforms due to heavy aggression along with a lack of explicit timeliness consideration in its design unlike the other techniques. BOP suffers from low coverage and high traffic due to its design.
Figure 11. Speedup on SPECspeed 2017: Caerus outperforms other techniques overall by succeeding in both PC-local and global prefetching settings, while avoiding contention from excess DRAM traffic harming performance.
Figure 12 show that other workloads follow the same trends. In SPEC CPU2006, workloads such as milc (Figure 3) benefit from complex pattern tracking. In milc, Caerus was able to outperform BOP, MLOP, and Berti by 17.8%, 12.0%, and 1.4% respectively. In Ligrа, Caerus is able to exceed Berti’s performance even on accesses that often feature solely PC-local deltas, where MLOP and Chimera incorrectly fetch data on irregular accesses. In PARSEC, Caerus is able to avoid the performance drop resulting from the high DRAM traffic of BOP and MLOP (canneal) while outperforming Berti in workloads such as streamcluster due to higher coverage.
Figure 12. Speedup of evaluated prefetchers across suites.
DRAM Traffic
Caerus is considerably more DRAM-efficient than other techniques (Figure 13). Chimera has extremely high traffic due to combining BOP-like and Berti-like strategies. BOP has high traffic due to having no PC-level filtering, which is exacerbated further in MLOP which fetches up to 16 unfiltered global offsets on each observation instead of just one like BOP.
Figure 13. Normalized DRAM traffic of evaluated prefetchers.
In many workloads such as xalancbmk and xz in SPECspeed 2017 and omnetpp and sjeng in SPEC CPU2006, Caerus is the only prefetcher to not under-perform the baseline. This is due to Caerus’ accuracy tracking mechanism correctly identifying that prefetching has limited value in those workloads. Taking xz as an example, Caerus incurs only 0.76% extra DRAM traffic compared to Berti’s 5.57%, BOP’s 75.6% and MLOP’s 61.6%.
At its default tuning Caerus’ DRAM traffic is marginally higher than Berti’s in SPECspeed 2017, but Caerus can be retuned to achieve lower DRAM traffic while still achieving higher performance than Berti as shown in § 5-H. However the opposite is not true for Berti, as BertiGO is tuned to be more aggressive than Caerus but yet achieves less performance (§ 5-D).
Accuracy, Coverage, and Timeliness
Figure 14 shows L1D accuracy14, coverage15, and timeliness16 for each evaluated technique across benchmark suites. Caerus outperforms Berti, BOP and Stride prefetchers due to significantly higher coverage as a result of being able to issue large numbers of cross-PC and same-PC offset prefetches. Compared to Chimera and MLOP, Caerus’ coverage is reduced in order to improve accuracy and lower DRAM traffic. In Ligra, Caerus is able to achieve higher coverage than MLOP and Chimera due to its resistance to offset overlap.
Figure 14. Accuracy, Coverage and Timeliness.
Although Caerus’ L1D accuracy is slightly lower than Berti’s, this does not translate to a proportionate increase in DRAM traffic from Caerus. This is due to Caerus encouraging more aggressive movement of data between cache levels (i.e., L3 to L1D and L2). It often brings in data that is used before eviction from the on-core memory system, but not before eviction from the L1D, particularly in workloads such as cactuBSSN17. Caerus does not directly aim for high L1D accuracy, rather it aims for high hit-rate in its recent requests table, which can exceed L1D capacity and thus make use of prefetches that, while too early to be used before eviction from the L1D, are still useful in the L2. Bringing this data into the L1D is a conscious design decision since it enables Caerus to track request timeliness (Section III-D) while incurring negligible performance overhead (hence Caerus is indifferent, as discussed in Section III-C).
Caerus sustains timeliness comparable to BOP even with the challenges of handling multiple filtered offsets (Section III-D), and rises well above BOP in Ligra due to Caerus’ rapid response to changes in program behavior. Caerus also achieves timeliness comparable to Berti while avoiding the L1D modifications (timestamped cache tags) that Berti requires.
Comparison with DPC4 Prefetchers
Figure 1 previously showed the performance of larger extensions of Berti, the DPC4 [1] winners BertiGO [35] and second-place GBerti [30] against their incurred DRAM traffic and required hardware overhead. Despite requiring significantly less state, Caerus is able to outperform these two prefetchers by 1.5% and 2.4% respectively while incurring less DRAM traffic. Figure 15 gives more insight on this performance gap. Although BertiGO’s larger history enables it to beat Caerus in workloads such as bwaves and lbm, it lags behind Caerus in most benchmarks, especially in cactuBSSN due to its inability to discover global offsets. GBerti attempts to identify global spatial patterns via column accesses, however its restrictive definition of global offsets hinders it from discovering effective offsets in benchmarks such as cactuBSSN and fotonik3d.
Figure 15. Speedup of Caerus, Berti, GBerti, and BertiGO in SPECspeed 2017 workloads that show a performance delta of larger than 1%. Caerus outperforms BertiGO, the highest-performance, largest, most aggressive Berti variant, by 1.5% in the full SPECspeed 2017 suite (Figure 1) and up to 30% in individual workloads.
Comparison with Composite L1D Prefetchers
Figure 16 shows how Caerus compares to a composite of global and PC-local offset prefetching strategies. MLOP and Berti running simultaneously in the L1D does not perform as well as MLOP on its own. Although coverage is slightly higher, the extra DRAM traffic results in a slight net performance loss. Using the prefetcher selection algorithm Alecto [17], applied to Berti and MLOP combined, also results in reduced performance gains. While Berti does not see much filtering from Alecto due to its high accuracy, MLOP sees extensive filtering but not always in a way that is helpful. While workloads like cactuBSSN are improved by Alecto removing inaccurate prefetches (from 14.2% to 21.4% speedup, better than MLOP’s 13.9% and Berti’s 0.0%, but still worse than Caerus’ 30.9%), performance meaningfully drops on many workloads including bwaves (15.1% to 5.5%) and roms (27.1% to 21.2%) due to Alecto’s PC-based input filtering. In a cross-PC setting, which is where MLOP (and Caerus) achieve additional coverage over Berti, inaccurate prefetches at PC A may be caused by observations originating from PC B. If training is then disabled at PC A, PC B will still be trained on, potentially causing inaccurate prefetches at PC C instead.
Figure 16. Caerus compared with combinations of global and PC-local offset L1D Prefetchers in SPECspeed 2017.
Using Caerus’ local accuracy filter (Section III-C) to filter prefetches from MLOP (aMLOP), in combination with Berti, considerably reduces DRAM traffic by contrast, but performance is still significantly below Caerus. Under per-PC accuracy filtering, the aggressive overlap-prone offsets in MLOP lose much of their performance advantage compared to Caerus’ overlap-resistant next-best offsets. Conversely, we demonstrate that filtering does not lower performance for Caerus (§ 5-I).
This demonstrates that Caerus is not merely a combination of Berti and MLOP’s best parts, nor is it simply that combination with added filtering to MLOP or both. As previously described in Section III, Caerus bears far more resemblance to an evolved BOP than either previous state-of-the-art mechanisms. Though accuracy filtering is key to achieving Caerus’ low DRAM traffic (§ 5-I), this filtering requires our novel methods of overlap-resistant offset derivation in order to perform well.
Multi-Level Prefetching
Figure 17. Speedup in SPECspeed 2017 vs. overhead for Caerus and Berti in the L1D combined with various state-of-the-art L2 prefetchers. Caerus+CaerusL2 achieves the highest performance out of any combination of prefetchers, and at comparatively low hardware and DRAM traffic overhead.
F. Multi-Level Prefetching Figure 17 shows how both Berti and Caerus combine with commonly used L2 prefetchers: BOP [19], Gaze [9], SPP-PPF [16], [6] and Pythia [4], all at default settings from their original papers. We also evaluate SMS [36] and Bingo [3], sized at 12.5KiB and 48.6KiB respectively. Caerus + CaerusL2 is the best performing combination while incurring considerably less hardware and DRAM traffic overhead compared to all close contenders.
Berti gains considerable performance even from the addition of BOP, because it cannot handle cross-PC offsets alone. However, this combination does not outperform Caerus on its own and incurs significantly more DRAM traffic. Caerus gains only slightly from the addition of Gaze and BOP because it already effectively covers cross-PC patterns. SMS and Bingo bring moderately more performance gains by capturing nonlinear spatial patterns, but Caerus in the L1D alone still outperforms combinations of SMS and Bingo with Berti. SPP-PPF and Pythia add significant performance to both Berti and Caerus. Nevertheless, Caerus combined with itself, configured as an L2 prefetcher18, outperforms any other combination. Compared with Berti+Pythia (the second-highest performing combination), Caerus+CaerusL2 brings better performance while incurring only a fraction of the DRAM traffic (8.9% vs. 22.7%) and requiring significantly less hardware cost (6.90KiB vs. 28.05KiB).
Multi-Core Performance Analysis
Figure 18 and Figure 19 show 8-core heterogeneous and homogeneous multi-core performance of Caerus, MLOP, and Berti.
Figure 18. Speedup of Caerus, MLOP, and Berti across 55 randomly selected 8-core heterogeneous workload mixes from all benchmark suites (sorted by speedup).
Figure 19. Speedup of Caerus, MLOP, and Berti in 8-core SPECspeed 2017 homogeneous workloads that show a performance delta of larger than 1%.
Berti. Caerus shows consistent speedups in heterogeneous workloads, achieving a 9.6% geomean speedup compared to Berti at 8.2% and MLOP at 7.8%. MLOP’s inefficient use of DRAM traffic is exacerbated in this multi-core setting causing it to be the lowest performer in 31 out of 55 mixes. In homogeneous SPECspeed 2017 workloads, while the benefits of all prefetchers are limited because these workloads are highly DRAM-bound, Caerus achieves a geomean performance improvement of 1.0% over Berti and 3.6% over MLOP.
Parameter Sensitivity
Figure 20 shows Caerus’ sensitivity to its various parameters. Performance is only weakly affected by increasing global offsets past 10, due to Caerus already avoiding overlap in the offsets trained and immediately retraining offsets when needed. Lowering or increasing the accuracy threshold (implemented via biasing the saturating counters [2]) is able to trade off speedup and traffic, with a 66% threshold lowering traffic to just 2.9% while still outperforming Berti. Having fewer sets means more 4KiB regions end up in the same entry concurrently, reducing the lifetime of RR elements and thus lowering training coverage. Increasing the length of each shift register in the RR sets increases aggression by making the bar for accuracy lower, producing a sweet spot based on L1D capacity. When using 16 RR sets with 8 entries each (at 1.88 KiB total state versus Berti’s 2.55KiB), Caerus still outperforms Berti while consuming 1.5% less DRAM traffic.
Figure 20. Sensitivity study of Caerus parameters on SPECspeed 2017 (default parameters indicated in bold).
Ablation Study
Figure 21 shows the contribution of each of Caerus’ core components. A version of Caerus that trains one offset and has no accuracy filtering still outperforms BOP. This is because the same-region fast offset derivation training method (Section III-D) greatly increases Caerus’ training speed and thus its ability to adapt to access-pattern changes. Adding multiple offsets slightly increases performance but comes with untenable DRAM traffic. This traffic is massively cut down by accuracy filtering (Section III-C), allowing a multiple-offset approach to give substantial benefits. Preventing overlap (Section III-B) between offsets adds a final speedup while reducing DRAM traffic. The addition of indifference (Section III-C) distinguishes prefetches that will be L2 hits instead of L1D hits, reducing DRAM traffic particularly in leela and perlbench by selectively reducing aggression but keeping consistent performance.
Figure 21. Ablation Study. Starting with BOP and progressively adding Caerus’ features on SPECspeed 2017.
Related Work
Prefetching is a widely researched topic. Surveys of the full area have been performed by Mittal [20] and by Wenisch and Falsafi [12]. We document the most relevant topics here.
Offset Prefetchers
Sandbox prefetching [31] introduced the concept of prefetching by offsets: address-deltas that would have been accurate based on looking at a wide selection of recent history rather than just the last access (as is typical in e.g., stride prefetchers [8]). Best-offset prefetching [19], [18] formalizes many of the details and also introduces the concept of timely offsets: the best offset is a historical address-delta that is able to bring in the highest number of memory accesses where the data arrives back to the cache before they are demand-requested. MLOP extends further to produce a set of offsets varying in timeliness [33].
Berti generalizes timely offsets by training on a PC-local viewpoint to choose distinct sets of offsets per-PC, allowing much more precise prefetching than BOP, but missing out on cross-PC potential. Berto [24] uses a more efficient method to track timeliness, and increases the size of other structures to better fit server workloads. Chimera [14] and Hyperion [10] introduce a set of Berti-style prefetchers, training on local groups other than PCs, including region-local best offsets. BertiGO [35] and Global Berti (GBerti) [30] took first and second place at the 4th Data Prefetching Championship [1] respectively. The former adds filtering and multi-PC histories to Berti, and the latter adds a more limited version of global offsets to Berti than Caerus sees, by only looking at the last access at all PCs (i.e., a column access to the history table in addition to Berti’s row access), where Caerus sees all recent accesses of all PCs within a page.
Other Prefetch Techniques
Stride prefetchers [8], which learn scenarios at a PC-local level where the difference between address pairs are constant, are widely deployed [7] but less general than offset prefetching. Spatial Memory Streaming [36], [5], [3], where patterns that repeat across different regions (e.g., pages) are learned, are also widely deployed [7]. Temporal prefetchers [39], [2], [40], [15], [26], which store large amounts of past historical addresses rather than arithmetic relations between them, have recently become viable [7]. Addresses can be used to correlate patterns more generally, such as the Signature Path Prefetcher [16] which learns sequences along with confidence values in those sequences. Neural-inspired techniques are also becoming gradually more implementable [34], [11]. Other prefetchers learn patterns based on data itself rather than addresses: these include run-ahead mechanisms [21], [23], [32], [22], which precalculate segments of programs to learn their memory accesses, and the Indirect Memory Prefetcher [41], which spots use of indexed values in arrays.
Prefetcher Control
Caerus is not the first prefetching technique to throttle prefetches via accuracy-centric mechanisms. Feedback-directed prefetching [37] measures prefetcher accuracy and adapts aggression, for example by increasing or decreasing the multiplicative degree of stride or next-line prefetchers (e.g., issuing for a stride and base address , , and ). Most offset prefetchers, including BOP, Caerus and Berti, issue prefetches at multiplicative degree even if Caerus and Berti can potentially issue multiple distinct offsets at once. Since they already handle timeliness through direct tracking rather than through aggression control, feedback-directed prefetching is harder to directly apply. Perceptron prefetch filtering [6] potentially allows richer filtering to be built on top of Caerus’ accuracy table, and we leave this exploration for future work. Aggression control has also been explored at a coarser granularity to control groups of prefetchers, such as in IPCP [27] and Alecto [17]. Caerus’ decisions are more fine-grained, working within the prefetcher itself, adapting the core prefetch algorithm to the use of accuracy control, and it can measure accuracy without actually issuing prefetches by using sandbox techniques [31], meaning it can drop aggression to when needed. Properties other than accuracy can also be considered in whether to issue prefetches, such as criticality [28].
Conclusion
We have introduced Caerus, an offset prefetcher that thinks globally and acts locally. It achieves high performance with sufficiently low DRAM-traffic and hardware overhead for real-world use in systems of all scales. It outperforms the state-of-the-art offset prefetcher Berti with similar hardware size while avoiding Berti’s expensive timestamp tags on L1D cache lines. We hope that its combination of practicality, performance, and suitability across many cache levels will enable the rapid deployment of Caerus.
Artifact Appendix
Abstract
This artifact contains the source code and simulation framework used to evaluate Caerus. The repository contains:
Source code for Caerus.
Source code for the Stride prefetcher, BOP [19], MLOP [33], Chimera [14], and Berti [25].
Modified ChampSim framework used to evaluate all presented prefetchers.
Scripts to download SPECspeed 2017 traces, run simulations, and collect results.
This artifact reproduces the data required to plot Figure 11, Figure 13, and the Accuracy / Coverage portion of Figure 14 for SPECspeed 2017.
Artifact check-list (meta-information)
Data set: SPECspeed 2017, download using provided scripts
Metrics: Speedup, DRAM Traffic, Coverage, Accuracy
Output: Table with per-benchmark metrics for each prefetcher
Experiments: Baseline (no prefetching), Caerus. Optional: Stride, BOP, MLOP, Chimera, Berti
How much disk space required (approximately)?: 30GB
How much time is needed to prepare workflow (approximately)?: 50 minutes to download workload traces
How much time is needed to complete experiments (approximately)?: 2 hours for reproducing main results (baseline + Caerus). [Optional] 7 hours for reproducing results for baseline + all presented prefetchers. Tested on a Xeon Platinum 8168 machine using 40 cores.
Publicly available?: Yes
Code licenses (if publicly available)?: Apache 2.0
Archived (provide DOI)?: https://doi.org/10.5281/zenodo.21512560
Description
How to access
How to access: The source code is available on GitHub (https://github.com/jw38176/Caerus_Artifact/) and Zenodo (https://doi.org/10.5281/zenodo.21512560).
Software dependencies
Software dependencies: Installing and running this artifact requires the following software dependencies: Python 3.9+, g++ with C++17 support, make and git.
The artifact is tested with the following system specs: Fedora 44, Linux Kernel 7.0.13, GCC 16.1.1 and Python 3.14.6.
Data sets
Data sets: This artifact contains a script to download SPECspeed 2017 traces used in DPC3 [38], hosted on https://dpc3.compas.cs.stonybrook.edu/champsim-traces/speccpu/.
This artifact can also be easily modified to reproduce all other evaluated benchmarks. The SPEC CPU2006 traces are hosted on the same archive as the SPECspeed 2017 traces. The Ligra traces can be found at https://zenodo.org/records/14267978 and PARSEC traces at https://zenodo.org/records/14268119.
Installation
Use the following steps to download the source code, install dependencies for ChampSim, and download the required traces:
# Clone the repository
git clone \
https://github.com/jw38176/Caerus_Artifact.git
cd Caerus_Artifact
# Build champsim dependencies
git submodule update --init
vcpkg/bootstrap-vcpkg.sh
vcpkg/vcpkg install
# Download SPECspeed 2017 traces
python3 scripts/download_spec2017_traces.py
Experiment workflow
In the commands below, change the parameter to run experiments in parallel.
To reproduce Caerus
To reproduce Caerus:
# Run baseline (no prefetching) and Caerus
python3 scripts/run_experiments.py no -j N
python3 scripts/run_experiments.py caerus -j N
[OPTIONAL] To reproduce all prefetchers
[OPTIONAL] To reproduce all prefetchers:
# [OPTIONAL] Run baseline and all prefetchers
for pref in no ip_stride bop mlop \
chimera berti caerus; do
python3 scripts/run_experiments.py "$pref" -j N
done
Evaluation and expected results
The scripts/print_results.py script produces a table of the per-benchmark and geomean results for Speedup, DRAM Traffic, Accuracy, and Coverage. Using geomean Speedup as an example:
Reproducing Caerus
Reproducing Caerus:
# Print Caerus results
python3 scripts/print_results.py caerus
# Results should look like:
SPEEDUP:
caerus 1.0828
[OPTIONAL] Reproducing all prefetchers
[OPTIONAL] Reproducing all prefetchers:
# [OPTIONAL] Print all prefetchers results
python3 scripts/print_results.py ip_stride bop \
mlop chimera berti caerus
# Results should look like:
SPEEDUP:
ip_stride 1.0319
bop 1.0354
mlop 1.0684
chimera 1.0340
berti 1.0614
caerus 1.0828
Experiment customization
Caerus, along with other prefetchers, are implemented in the directory prefetcher/caerus. You can change the parameters of Caerus in caerus_parameters.h. You can also change the parameters of the simulated processor and cache in params/baseline.json.
Methodology
Submission, reviewing and badging methodology:
https://www.acm.org/publications/policies/artifact-review-and-badging-current
https://cTuning.org/ae
References
- [1]“4th Data Prefetching Championship (DPC4) 2026,” https://sites.google.com/view/dpc4-2026/home, 2026, in conjunction with the 32nd IEEE International Symposium on High-Performance Computer Architecture (HPCA), Sydney, Australia. Competition date: February 1, 2026.
- [2]S. Ainsworth and L. Mukhanov, “Triangel: A high-performance, accurate, timely on-chip temporal data prefetcher,” in 51st Annual International Symposium on Computer Architecture (ISCA), 2024.DOI
- [3]M. Bakhshalipour, M. Shakerinava, P. Lotfi-Kamran, and H. Sarbazi-Azad, “Bingo spatial data prefetcher,” in 2019 IEEE International Symposium on High Performance Computer Architecture (HPCA), 2019.
- [4]R. Bera, K. Kanelopoulos, A. Nori, T. Shahroodi, S. Subramoney, and O. Mutlu, “Pythia: A customizable hardware prefetching framework using online reinforcement learning,” in 54th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO), 2021.DOI
- [5]R. Bera, A. V. Nori, O. Mutlu, and S. Subramoney, “DSPatch: Dual spatial pattern prefetcher,” in 52nd Annual IEEE/ACM International Symposium on Microarchitecture (MICRO), 2020.
- [6]E. Bhatia, G. Chacon, S. Pugsley, E. Teran, P. V. Gratz, and D. A. Jiménez, “Perceptron-based prefetch filtering,” in 46th International Symposium on Computer Architecture (ISCA), 2019.DOI
- [7]M. Bruce, “Arm Neoverse V2 platform: Leadership Performance and Power Efficiency for Next-Generation Cloud Computing, ML and HPC Workloads,” in 2023 IEEE Hot Chips 35 Symposium (HCS), Aug. 2023. [Online]. Available: https://ieeexplore.ieee.org/document/10254718/DOI
- [8]T.-F. Chen and J.-L. Baer, “Effective hardware-based data prefetching for high-performance processors,” IEEE Transactions on Computers, vol. 44, no. 5, 1995.DOI
- [9]Z. Chen, C. Wu, Y. Gu, R. Jia, J. Li, and M. Guo, “Gaze into the pattern: Characterizing spatial patterns with internal temporal correlations for hardware prefetching,” in 2025 IEEE International Symposium on High Performance Computer Architecture (HPCA), 2025.arxiv.org/abs/2412.05211
- [10]Y. Cui, W. Chen, X. Cheng, and J. Yi, “Hyperion: A highly effective page and pc based delta prefetcher,” ACM Trans. Archit. Code Optim., vol. 21, no. 4, Nov. 2024.DOI
- [11]Q. Dong, A. Jain, and C. Lim, “A new formulation of neural data prefetching,” in 51st Annual International Symposium on Computer Architecture (ISCA), 2024.
- [12]B. Falsafi and T. F. Wenisch, A Primer on Hardware Prefetching, ser. Synthesis Lectures on Computer Architecture. Cham, Switzerland: Springer Cham, 2014. [Online]. Available: https://doi.org/10.1007/978-3-031-01743-8
- [13]N. Gober, G. Chacon, L. Wang, P. V. Gratz, D. A. Jimenez, E. Teran, S. Pugsley, and J. Kim, “The championship simulator: Architectural simulation for education and competition,” 2022. [Online]. Available: https://arxiv.org/abs/2210.14324
- [14]S. He, Z. Wang, X. Tang, Q. Sun, and D. Dong, “Chimera: Leveraging Hybrid Offsets for Efficient Data Prefetching,” in Proceedings of the 2024 International Conference on Parallel Architectures and Compilation Techniques (PACT), 2024.DOI
- [15]A. Jain and C. Lin, “Linearizing irregular memory accesses for improved correlated prefetching,” in 46th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO), 2013.DOI
- [16]J. Kim, S. H. Pugsley, P. V. Gratz, A. N. Reddy, C. Wilkerson, and Z. Chishti, “Path confidence based lookahead prefetching,” in 2016 49th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO), 2016.
- [17]M. Li, Q. Zhang, Y. Ren, and Z. Xie, “Integrating prefetcher selection with dynamic request allocation improves prefetching efficiency,” in 2025 IEEE International Symposium on High Performance Computer Architecture (HPCA), 2025.
- [18]P. Michaud, “A best-offset prefetcher,” in The 2nd Data Prefetching Championship (DPC2), 2015.
- [19]——, “A survey of recent prefetching techniques for processor caches,” in 2016 IEEE International Symposium on High Performance Computer Architecture (HPCA), 2016.
- [20]S. Mittal, “A survey of recent prefetching techniques for processor caches,” ACM Comput. Surv., vol. 49, no. 2, aug 2016.DOI
- [21]O. Mutlu, J. Stark, C. Wilkerson, and Y. N. Patt, “Runahead execution: An alternative to very large instruction windows for out-of-order processors,” in 9th International Symposium on High-Performance Computer Architecture (HPCA), 2003.DOI
- [22]A. Naithani, S. Ainsworth, T. M. Jones, and L. Eeckhout, “Vector runahead,” in 48th Annual International Symposium on Computer Architecture (ISCA), 2021.DOI
- [23]A. Naithani, J. Roelands, S. Ainsworth, T. M. Jones, and L. Eeckhout, “Decoupled vector runahead,” in 5th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO), 2023.DOI
- [24]A. Navarro-Torres, B. Panda, J. Alastruey-Benedé, P. Ibáñez, V. Viñals Yúfera, and A. Ros, “A complexity-effective local delta prefetcher,” IEEE Trans. Comput., vol. 74, no. 5, p. 1482–1494, Jan. 2025.
- [25]A. Navarro-Torres, B. Panda, J. Alastruey-Benedé, P. Ibáñez, V. Viñals-Yúfera, and A. Ros, “Berti: an accurate local-delta data prefetcher,” in 55th IEEE/ACM International Symposium on Microarchitecture (MICRO), 2022.
- [26]K. Nesbit and J. Smith, “Data cache prefetching using a global history buffer,” in 10th International Symposium on High Performance Computer Architecture (HPCA), 2004.
- [27]S. Pakalapati and B. Panda, “Bouquet of instruction pointers: Instruction pointer classifier-based spatial hardware prefetching,” in 47th Annual International Symposium on Computer Architecture (ISCA), 2020.DOI
- [28]B. Panda, “CLIP: Load critically based data prefetching for bandwidth-constrained many-core systems,” in 56th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO), 2023.DOI
- [29]A. Pellegrini, “Arm Neoverse N2: Arm’s 2nd generation high performance infrastructure CPUs and system IPs,” https://hc33.hotchips.org/assets/program/conference/day1/20210818_HotChips_NeoverseN2.pdf.DOI
- [30]G. Posluns and M. C. Jeffrey, “Global Berti: Simultaneous streaming and spatial prefetching,” in Proc. of the 4th Data Prefetching Championship (DPC), Feb 2026. [Online]. Available: https://github.com/CMU-SAFARI/DPC4/blob/main/final-versions/GBerti-final.pdf
- [31]S. H. Pugsley, Z. Chishti, C. Wilkerson, P.-f. Chuang, R. L. Scott, A. Jaleel, S.-L. Lu, K. Chow, and R. Balasubramonian, “Sandbox prefetching: Safe run-time evaluation of aggressive prefetchers,” in 20th International Symposium on High Performance Computer Architecture (HPCA), 2014.DOI
- [32]J. Roelands, A. Naithani, S. Ainsworth, T. M. Jones, and L. Eeckhout, “Scalar vector runahead,” in 57th IEEE/ACM International Symposium on Microarchitecture (MICRO), 2024.
- [33]M. Shakerinava, M. Bakhshalipour, P. Lotfi-Kamran, and H. Sarbazi-Azad, “Multi-lookahead offset prefetching,” The Third Data Prefetching Championship, 2019.
- [34]Z. Shi, A. Jain, K. Swersky, M. Hashemi, P. Ranganathan, and C. Lin, “A hierarchical neural model of data prefetching,” in Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, ser. ASPLOS ’21, 2021.DOI
- [35]S. Singh, A. Navarro-Torres, and A. Ros, “Pushing the limits of the berti prefetcher,” in Proc. of the 4th Data Prefetching Championship (DPC), Feb 2026. [Online]. Available: https://github.com/CMU-SAFARI/DPC4/blob/main/final-versions/BertiGO-final.pdf
- [36]S. Somogyi, T. F. Wenisch, A. Ailamaki, B. Falsafi, and A. Moshovos, “Spatial memory streaming,” in 33rd Annual International Symposium on Computer Architecture (ISCA), 2006.
- [37]S. Srinath, O. Mutlu, H. Kim, and Y. N. Patt, “Feedback directed prefetching: Improving the performance and bandwidth-efficiency of hardware prefetchers,” in 13th International Symposium on High Performance Computer Architecture (HPCA), 2007.DOI
- [38]“ChampSim traces for spec cpu,” https://dpc3.comps.cs.stonybrook.edu/champsim-traces/spec cpu/, Stony Brook University, COMPAS / PACE Lab, 2025, accessed: 2025-11-15.
- [39]H. Wu, K. Nathella, J. Pusdesris, D. Sunwoo, A. Jain, and C. Lin, “Temporal prefetching without the off-chip metadata,” in 52nd Annual IEEE/ACM International Symposium on Microarchitecture (MICRO), 2019.DOI
- [40]H. Wu, K. Nathella, D. Sunwoo, A. Jain, and C. Lin, “Efficient metadata management for irregular data prefetching,” in 46th International Symposium on Computer Architecture (ISCA), 2019.DOI
- [41]X. Yu, C. J. Hughes, N. Satish, and S. Devadas, “IMP: indirect memory prefetcher,” in 48th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO), 2015.


















