Athena:通过在线强化学习协同数据预取和离芯片预测
Athena: Synergizing Data Prefetching and Off-Chip Prediction via Online Reinforcement Learning
AI总结:
Athena通过在线强化学习协调预取和离芯片预测,提升性能并降低存储开销。
摘要:
预取和离芯片预测是两种旨在隐藏高性能处理器中长内存访问延迟的技术。在本工作中,我们证明了:(1)预取和离芯片预测常常提供互补的性能收益,然而(2)简单地结合它们往往无法实现其全部性能潜力,且(3)现有的预取器控制策略在性能提升方面仍有很大改进空间。我们的目标是设计一个能够自主学习协调离芯片预测器与多个预取器(在不同缓存层级上使用)的完整框架。为此,我们提出了一种新的技术,称为Athena,它将预取器与离芯片预测器(OCP)之间的协调建模为一个强化学习(RL)问题。Athena作为RL代理,在程序执行的一个周期中观察多个系统级特征(例如预取器/OCP的准确性、带宽使用),并将这些作为状态信息来选择协调动作(即启用预取器和/或OCP,并调整预取器的激进程度)。在每个周期结束时,Athena会接收到一个数值奖励,该奖励衡量多个系统级指标(例如执行一个周期所耗费的周期数)的变化。Athena利用这个奖励自主且持续地学习一种策略来协调预取器与OCP。我们对一组多样化的内存密集型工作负载进行了广泛评估,结果表明,Athena在各种系统配置下,各种底层预取器、OCP和主内存带宽组合中,始终优于现有最先进的协调策略,同时仅带来微小的存储开销。Athena可在https://github.com/CMU-SAFARI/Athena上免费获取。
英文摘要:
Prefetching and off-chip prediction are two techniques proposed to hide long memory access latencies in high-performance processors. In this work, we demonstrate that: (1) prefetching and off-chip prediction often provide complementary performance benefits, yet (2) naively combining them often fails to realize their full performance potential, and (3) existing prefetcher control policies leave significant room for performance improvement behind. Our goal is to design a holistic framework that can autonomously learn to coordinate an off-chip predictor with multiple prefetchers employed at various cache levels. To this end, we propose a new technique called Athena, which models the coordination between prefetchers and off-chip predictor (OCP) as a reinforcement learning (RL) problem. Athena acts as the RL agent that observes multiple system-level features (e.g., prefetcher/OCP accuracy, bandwidth usage) over an epoch of program execution, and uses them as state information to select a coordination action (i.e., enabling the prefetcher and/or OCP, and adjusting prefetcher aggressiveness). At the end of every epoch, Athena receives a numerical reward that measures the change in multiple system-level metrics (e.g., number of cycles taken to execute an epoch). Athena uses this reward to autonomously and continuously learn a policy to coordinate prefetchers with OCP. Our extensive evaluation using a diverse set of memory-intensive workloads shows that Athena consistently outperforms prior state-of-the-art coordination policies across a wide range of system configurations with various combinations of underlying prefetchers, OCPs, and main memory bandwidths, while incurring only modest storage overhead. Athena is freely available at https://github.com/CMU-SAFARI/Athena.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。