arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.00188cs.ARcs.LG
收藏

Hermes: 通过基于感知器的片外负载预测加速长延迟负载请求

Hermes: Accelerating Long-Latency Load Requests via Perceptron-Based Off-Chip Load Prediction

ETH Zürich(苏黎世联邦理工学院);Intel Processor Architecture Research Lab(英特尔处理器架构研究实验室);LIRMM, Univ. Montpellier, CNRS(蒙彼利埃大学LIRMM实验室,CNRS)

Rahul Bera, Konstantinos Kanellopoulos, Shankar Balachandran, David Novo, Ataberk Olgun, Mohammad Sadrosadati, Onur Mutlu

AI总结:

提出Hermes技术,利用感知器预测片外负载请求,投机性地直接从主存获取数据,同时并行访问缓存层次,从而消除片外负载关键路径上的片上缓存访问延迟,显著提升处理器性能。

摘要:

长延迟负载请求持续限制高性能处理器的性能。为增加处理器的延迟容忍度,架构师主要依赖两种关键技术:复杂的数据预取器和大型片上缓存。在这项工作中,我们表明:1) 即使是最先进的复杂预取器,在广泛的工作负载中平均也只能预测一半的片外负载请求;2) 由于片上缓存的规模和复杂性不断增加,片外负载请求的大部分延迟都花费在访问片上缓存层次结构上。本工作的目标是通过从片外负载请求的关键路径中移除片上缓存访问延迟来加速它们。为此,我们提出了一种名为Hermes的新技术,其关键思想是:1) 准确预测哪些负载请求可能走向片外;2) 投机性地直接从主存获取预测的片外负载所需的数据,同时并发访问这些负载的缓存层次结构。为实现Hermes,我们开发了一种新的轻量级、基于感知器的片外负载预测技术,该技术学习使用多个程序特征(例如,程序计数器序列)来识别片外负载请求。对于每个负载请求,预测器观察一组程序特征以预测该负载是否会走向片外。如果预测负载将走向片外,Hermes在负载的物理地址生成后立即向内存控制器发出投机性请求。如果预测正确,负载最终会错过缓存层次结构,并等待正在进行的投机性请求完成,从而从片外负载的关键路径中隐藏片上缓存层次结构访问延迟。我们的评估表明,Hermes显著提升了最先进基线的性能。我们开源了Hermes。

英文摘要:

Long-latency load requests continue to limit the performance of high-performance processors. To increase the latency tolerance of a processor, architects have primarily relied on two key techniques: sophisticated data prefetchers and large on-chip caches. In this work, we show that: 1) even a sophisticated state-of-the-art prefetcher can only predict half of the off-chip load requests on average across a wide range of workloads, and 2) due to the increasing size and complexity of on-chip caches, a large fraction of the latency of an off-chip load request is spent accessing the on-chip cache hierarchy. The goal of this work is to accelerate off-chip load requests by removing the on-chip cache access latency from their critical path. To this end, we propose a new technique called Hermes, whose key idea is to: 1) accurately predict which load requests might go off-chip, and 2) speculatively fetch the data required by the predicted off-chip loads directly from the main memory, while also concurrently accessing the cache hierarchy for such loads. To enable Hermes, we develop a new lightweight, perceptron-based off-chip load prediction technique that learns to identify off-chip load requests using multiple program features (e.g., sequence of program counters). For every load request, the predictor observes a set of program features to predict whether or not the load would go off-chip. If the load is predicted to go off-chip, Hermes issues a speculative request directly to the memory controller once the load's physical address is generated. If the prediction is correct, the load eventually misses the cache hierarchy and waits for the ongoing speculative request to finish, thus hiding the on-chip cache hierarchy access latency from the critical path of the off-chip load. Our evaluation shows that Hermes significantly improves performance of a state-of-the-art baseline. We open-source Hermes.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑