面向链表式数据结构的改进型预取技术
Improved Prefetching Techniques for Linked Data Structures
AI总结:
针对链表式数据结构预取困难的问题,提出利用程序员/编译器提示缓存布局信息的Linkey预取器,在缺失率、准确率和IPC上均实现显著提升。
摘要:
随着主存停顿时间不断增长,我们需要新型技术来降低有效内存访问延迟。预取已被证明是一种有效解决方案,尤其适用于遵循传统空间局部性和时间局部性原理的连续数据结构。然而,对于由大量通过指针链接的节点构成的链表式数据结构而言,典型预取器的表现不佳——由于元素在内存中任意分散,访问模式任意复杂,因此难以预测,预取器无法成功预测访问行为。为解决这些问题,我们提出了Linkey(一种新型预取器),它利用程序员/编译器提供的提示缓存布局信息,准确预取链表式数据结构。Linkey相较于步长基准预取器实现了显著的性能提升:我们取得了几何平均13%的缺失率降低,最大提升幅度达58.8%;预取准确率几何平均提升65.4%,许多基准测试的准确率从0%开始提升。在Linkey适用的基准测试中,我们观测到几何平均1.40%的IPC(每时钟周期指令数)提升,最高可达12.1%。
英文摘要:
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 $\textit{Linkey}$, a novel prefetcher that utilizes hints from the programmer/compiler to cache layout information and accurately prefetch linked data structures. $\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 $\textit{Linkey}$ is applicable, we observe a geomean IPC improvement of 1.40%, up to 12.1%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。