Cache prefetching
Cache prefetching is a technique used by central processing units (CPUs) to boost execution performance by fetching instructions or data from their primary or main storage in slower memory to a faster local memory before it is actually needed. Most modern CPUs have fast and local cache memory in which prefetched data is held until it is required. The source for the prefetch operation is usually main memory. Because of their design, accessing cache memories is typically much faster than accessing main memory. Prefetching can be done with non-blocking cache control instructions. Prefetching is based on the principle of data locality.
Cache prefetching is a technique used by central processing units (CPUs) to boost execution performance by fetching instructions or data from their primary or main storage in slower memory to a faster local memory before it is actually needed. Most modern CPUs have fast and local cache memory in which prefetched data is held until it is required. The source for the prefetch operation is usually main memory. Because of their design, accessing cache memories is typically much faster than accessing main memory. Prefetching can be done with non-blocking cache control instructions. Prefetching is based on the principle of data locality. for (size_t i = 0; i the th element of the array array1 is accessed. The system can prefetch the elements that are presumably accessed in future iterations by inserting a prefetch instruction as shown below: for (size_t i = 0; i Here, the prefetch stride, k depends on two factors, the cache miss penalty and the time it takes to execute a single iteration of the for-loop. For instance, if one iteration of the loop takes 7 cycles to execute, and the cache miss penalty is 49 cycles, then there should be k = 49/7 = 7 – which means that the system should prefetch 7 elements ahead. With the first iteration, i will be 0, so the system prefetches the 7th element. Now, with this arrangement, the first 7 accesses ( i = 0 → 6) will still be misses (under the simplifying assumption that each element of array1 is in a separate cache line of its own). The qualitative definition of timeliness is the amount of time elapsed from prefetch to the actual reference. For example: for prefetching to be useful in a for loop where each iteration takes three cycles to execute and the prefetch operation takes twelve cycles, the system must start the prefetch 12/3 = 4 iterations prior to its usage to maintain timeliness. ==References==
References
- ^ Ishii, Yasuo; Inaba, Mary; Hiraki, Kei (2009-06-08). "Access map pattern matching for data cache prefetch" . Proceedings of the 23rd International Conference on Supercomputing . ICS 2009. New York, New York, USA: Association for Computing Machinery. pp. 499– 500. doi : 10.1145/1542275.1542349 . ISBN 978-1-60558-498-0 . S2CID 37841036 . Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ Srinath, Santhosh; Mutlu, Onur ; Kim, Hyesoon ; Patt, Yale N. (February 2007). Feedback Directed Prefetching: Improving the Performance and Bandwidth-Efficiency of Hardware Prefetchers . 2007 IEEE 13th International Symposium on High Performance Computer Architecture. pp. 63– 74. doi : 10.1109/HPCA.2007.346185 . ISBN 978-1-4244-0804-7 . S2CID 6909725 . Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ Kondguli, Sushant; Huang, Michael (November 2017). T2: A Highly Accurate and Energy Efficient Stride Prefetcher . 2017 IEEE International Conference on Computer Design (ICCD). pp. 373– 376. doi : 10.1109/ICCD.2017.64 . ISBN 978-1-5386-2254-4 . S2CID 11055312 . Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ Shevgoor, Manjunath; Koladiya, Sahil; Balasubramonian, Rajeev; Wilkerson, Chris; Pugsley, Seth H.; Chishti, Zeshan (December 2015). Efficiently prefetching complex address patterns . 2015 48th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO). pp. 141– 152. doi : 10.1145/2830772.2830793 . ISBN 9781450340342 . S2CID 15294463 . Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ Kim, Jinchun; Pugsley, Seth H.; Gratz, Paul V.; Reddy, A.L. Narasimha; Wilkerson, Chris; Chishti, Zeshan (October 2016). Path confidence based lookahead prefetching . 2016 49th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO). pp. 1– 12. doi : 10.1109/MICRO.2016.7783763 . ISBN 978-1-5090-3508-3 . S2CID 1097472 . Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ Joseph, Doug; Grunwald, Dirk (1997-05-01). "Prefetching using Markov predictors". Proceedings of the 24th Annual International Symposium on Computer Architecture . ISCA 1997. ISCA 1997. New York, New York, USA: Association for Computing Machinery. pp. 252– 263. doi : 10.1145/264107.264207 . ISBN 978-0-89791-901-2 . S2CID 434419 . Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ Collins, J.; Sair, S.; Calder, B.; Tullsen, D.M. (November 2002). Pointer cache assisted prefetching . 35th Annual IEEE/ACM International Symposium on Microarchitecture, 2002. (MICRO-35). Proceedings. pp. 62– 73. doi : 10.1109/MICRO.2002.1176239 . ISBN 0-7695-1859-1 . S2CID 5608519 . Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ Jain, Akanksha; Lin, Calvin (2013-12-07). "Linearizing irregular memory accesses for improved correlated prefetching" . Proceedings of the 46th Annual IEEE/ACM International Symposium on Microarchitecture . MICRO-46. New York, New York, USA: Association for Computing Machinery. pp. 247– 259. doi : 10.1145/2540708.2540730 . ISBN 978-1-4503-2638-4 . S2CID 196831 . Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ "Making Temporal Prefetchers Practical: The MISB Prefetcher – Research Articles – Arm Research – Arm Community" . community.arm.com . 24 June 2019 . Retrieved 2022-03-16 . Wikipedia revision 1378609953, retrieved 2026-11-18 · 1647385200.0
- ^ Kim, Jinchun; Teran, Elvira; Gratz, Paul V.; Jiménez, Daniel A.; Pugsley, Seth H.; Wilkerson, Chris (2017-05-12). "Kill the Program Counter: Reconstructing Program Behavior in the Processor Cache Hierarchy" . ACM SIGPLAN Notices . 52 (4): 737– 749. doi : 10.1145/3093336.3037701 . ISSN 0362-1340 . Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ Li, Chunlin; Song, Mingyang; Du, Shaofeng; Wang, Xiaohai; Zhang, Min; Luo, Youlong (2020-09-01). "Adaptive priority-based cache replacement and prediction-based cache prefetching in edge computing environment" . Journal of Network and Computer Applications . 165 102715. doi : 10.1016/j.jnca.2020.102715 . S2CID 219506427 . Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ Kondguli, Sushant; Huang, Michael (2018-06-02). "Division of labor: a more effective approach to prefetching" . Proceedings of the 45th Annual International Symposium on Computer Architecture . ISCA '18. Los Angeles, California: IEEE Press. pp. 83– 95. doi : 10.1109/ISCA.2018.00018 . ISBN 978-1-5386-5984-7 . S2CID 50777324 . Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ Pakalapati, Samuel; Panda, Biswabandan (May 2020). Bouquet of Instruction Pointers: Instruction Pointer Classifier-based Spatial Hardware Prefetching . 2020 ACM/IEEE 47th Annual International Symposium on Computer Architecture (ISCA). pp. 118– 131. doi : 10.1109/ISCA45697.2020.00021 . ISBN 978-1-7281-4661-4 . S2CID 218683672 . Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ Callahan, David; Kennedy, Ken; Porterfield, Allan (1991-01-01). Software Prefetching . Fourth International Conference on Architectural Support for Programming Languages and Operating Systems. Santa Clara, California, USA: Association for Computing Machinery. pp. 40– 52. doi : 10.1145/106972.106979 . ISBN 978-0897913805 . Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ Lee, Jaekyu and Kim, Hyesoon and Vuduc, Richard (2012), "When Prefetching Works, When It Doesn't, and Why" (PDF) , ACM Trans. Archit. Code Optim. , 9 : 1– 29, doi : 10.1145/2133382.2133384 {{ citation }} : CS1 maint: multiple names: authors list ( link ) Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ Baer, Jean-Loup; Chen, Tien-Fu (1991-01-01). An Effective On-chip Preloading Scheme to Reduce Data Access Penalty . 1991 ACM/IEEE Conference on Supercomputing. Albuquerque, New Mexico, USA: Association for Computing Machinery. pp. 176– 186. doi : 10.1145/125826.125932 . ISBN 978-0897914598 . Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ Kennedy, Porterfield, Allan (1989-01-01). Software methods for improvement of cache performance on supercomputer applications (Thesis). Rice University. hdl : 1911/19069 . {{ cite thesis }} : CS1 maint: multiple names: authors list ( link ) Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ Chen, Tien-Fu; Baer, Jean-Loup (1995-05-01). "Effective hardware-based data prefetching for high-performance processors". IEEE Transactions on Computers . 44 (5): 609– 623. Bibcode : 1995ITCmp..44..609T . doi : 10.1109/12.381947 . ISSN 0018-9340 . S2CID 1450745 . Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ Palacharla, S.; Kessler, R. E. (1994-01-01). Evaluating Stream Buffers As a Secondary Cache Replacement . 21st Annual International Symposium on Computer Architecture. Chicago, Illinois, USA: IEEE Computer Society Press. pp. 24– 33. doi : 10.1109/ISCA.1994.288164 . ISBN 978-0818655104 . Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ a b c Jouppi, Norman P. (1990). "Improving direct-mapped cache performance by the addition of a small fully-associative cache and prefetch buffers". Proceedings of the 17th annual international symposium on Computer Architecture – ISCA 1990 . 17th annual international symposium on Computer Architecture – ISCA 1990. New York, New York, USA: Association for Computing Machinery Press. pp. 364– 373. doi : 10.1145/325164.325162 . ISBN 0-89791-366-3 . Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ a b c d e f Solihin, Yan (2016). Fundamentals of parallel multicore architecture . Boca Raton, Florida: CRC Press, Taylor & Francis Group. p. 163. ISBN 978-1482211184 . Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ a b Smith, Alan Jay (1982-09-01). "Cache Memories". ACM Comput. Surv . 14 (3): 473– 530. doi : 10.1145/356887.356892 . ISSN 0360-0300 . S2CID 6023466 . Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
- ^ a b Grannaes, Marius; Jahre, Magnus; Natvig, Lasse (2011). "Storage Efficient Hardware Prefetching using Delta-Correlating Prediction Tables". Journal of Instruction-Level Parallelism (13): 1– 16. CiteSeerX 10.1.1.229.3483 . {{ cite journal }} : Cite uses deprecated parameter |citeseerx= ( help ) Wikipedia revision 1378609953, retrieved 2026-11-18 · 1794956400.0
Cite this
"Cache prefetching". 1791170840. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1378609953 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy