Tyche: An Efficient and General Prefetcher for Indirect Memory Accesses
Open Access
- 23 March 2024
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Architecture and Code Optimization
- Vol. 21 (2) , 1-26
Abstract
Indirect memory accesses (IMAs, i.e., A [ f ( B [ i ])]) are typical memory access patterns in applications such as graph analysis, machine learning, and database. IMAs are composed of producer-consumer pairs, where the consumers’ memory addresses are derived from the producers’ memory data. Due to the built-in value-dependent feature, IMAs exhibit poor locality, making prefetching ineffective. Hindered by the challenges of recording the potentially complex graphs of instruction dependencies among IMA producers and consumers, current state-of-the-art hardware prefetchers either (a) exhibit inadequate IMA identification abilities or (b) rely on the run-ahead mechanism to prefetch IMAs intermittently and insufficiently. To solve this problem, we propose Tyche, 1 an efficient and general hardware prefetcher to enhance IMA performance. Tyche adopts a bilateral propagation mechanism to precisely excavate the instruction dependencies in simple chains with moderate length (rather than complex graphs). Based on the exact instruction dependencies, Tyche can accurately identify various IMA patterns, including nonlinear ones, and generate accurate prefetching requests continuously. Evaluated on broad benchmarks, Tyche achieves an average performance speedup of 16.2% over the state-of-the-art spatial prefetcher Berti. More importantly, Tyche outperforms the state-of-the-art IMA prefetchers IMP, Gretch, and Vector Runahead, by 15.9%, 12.8%, and 10.7%, respectively, with a lower storage overhead of only 0.57 KB.Keywords
Funding Information
- National Key Research and Development Program of China (2022YFB3105103)
This publication has 33 references indexed in Scilit:
- IBM POWER8 processor core microarchitectureIBM Journal of Research and Development, 2015
- Linearizing irregular memory accesses for improved correlated prefetching2013
- Inter-core prefetching for multicore processors using migrating helper threadsACM SIGARCH Computer Architecture News, 2011
- Compiler orchestrated prefetching via speculation and predicationACM SIGARCH Computer Architecture News, 2004
- A general framework for prefetch scheduling in linked data structures and its application to multi-chain prefetchingACM Transactions on Computer Systems, 2004
- Runahead execution: an effective alternative to large instruction windowsIEEE Micro, 2003
- Automatically characterizing large scale program behaviorACM SIGPLAN Notices, 2002
- Speculative precomputationACM SIGARCH Computer Architecture News, 2001
- Simultaneous subordinate microthreading (SSMT)ACM SIGARCH Computer Architecture News, 1999
- Prefetching using Markov predictors1997