English

Improved Prefetching Techniques for Linked Data Structures

Hardware Architecture 2025-05-29 v1

Abstract

With ever-increasing main memory stall times, we need novel techniques to reduce effective memory access latencies. Prefetching has been shown to be an effective solution, especially with contiguous data structures that follow the traditional principles of spatial and temporal locality. However, on linked data structures-made up of many nodes linked together with pointers-typical prefetchers struggle, failing to predict accesses as elements are arbitrarily scattered throughout memory and access patters are arbitrarily complex and hence difficult to predict. To remedy these issues, we introduce Linkey\textit{Linkey}, a novel prefetcher that utilizes hints from the programmer/compiler to cache layout information and accurately prefetch linked data structures. Linkey\textit{Linkey} obtains substantial performance improvements over a striding baseline. We achieve a geomean 13% reduction in miss rate with a maximum improvement of 58.8%, and a 65.4% geomean increase in accuracy, with many benchmarks improving from 0%. On benchmarks where Linkey\textit{Linkey} is applicable, we observe a geomean IPC improvement of 1.40%, up to 12.1%.

Keywords

Cite

@article{arxiv.2505.21669,
  title  = {Improved Prefetching Techniques for Linked Data Structures},
  author = {Nikola Vuk Maruszewski},
  journal= {arXiv preprint arXiv:2505.21669},
  year   = {2025}
}

Comments

73 pages, 11 figures