Hardware prefetching is one of the latency tolerance optimization techniques that tolerate costly DRAM accesses. Though hardware prefetching is one of the fundamental mechanisms prevalent on most of the commercial machines, there is no prefetching technique that works well across all the access patterns and different types of workloads. Through this paper, we propose Arsenal, a prefetching framework which allows the advantages provided by different data prefetchers to be combined, by dynamically selecting the best-suited prefetcher for the current workload. Thus effectively improving the versatility of the prefetching system. It bases on the classic Sandbox prefetcher that dynamically adapts and utilizes multiple offsets for sequential prefetchers. We take it to the next step by switching between prefetchers like Multi look Ahead Offset Prefetching and Timing SKID Prefetcher on the run. Arsenal utilizes a space-efficient pooling filter, Bloom filters, that keeps track of useful prefetches of each of these component prefetchers and thus helps to maintain a score for each of the component prefetchers. This approach is shown to provide better speedup than anyone prefetcher alone. Arsenal provides a performance improvement of 44.29% on the single-core mixes and 19.5% for some of the selected 25 representative multi-core mixes.
高速缓存预取器通过在处理器实际需要数据之前将数据从较慢的内存提取到较快的高速缓存,极大地消除了强制性的高速缓存未命中。复杂的预取器通过重复程序的历史空间和时间存储器访问模式来预测下一次使用高速缓存行。然而,它们是容易出错的,错误的预测导致缓存污染,并施加额外的压力,内存子系统。提出了一种基于感知器学习的数据缓存预取方案。其核心思想是两级预取机制。该算法首先利用已有的基于表的预取机制(如步幅预取或马尔可夫预取)进行预取决策,然后利用神经网络感知器检测和跟踪程序的访存模式,以剔除不必要的预取决策。感知器可以从时间和空间的局部和全局历史中学习,并且可以容易地由硬件实现。这种机制通过理想地减轻缓存污染并消除预取器发出的冗余内存请求来提高执行性能。基于SPEC CPU 2006基准测试进行了详细的评估和分析。仿真结果表明,该方案在保证指令周期(IPC)(浮动在-2.22%至2.55%之间)和缓存命中率(浮动在-1.67%至2.46%之间)的前提下,平均减少了60.64%~ 83.84%的预取内存请求。虽然感知器可能会拒绝有用的块,从而导致缓存未命中率的轻微上升,但较低的内存请求计数可以减少平均内存访问延迟,从而补偿损失,同时提高多程序工作负载的整体性能。