arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2107.13649cs.AR
收藏

异构CPU-GPU系统的Cache复用

Reuse Cache for Heterogeneous CPU-GPU Systems

Tejas Shah, Bobbi Yogatama, Kyle Roarty, Rami Dahman

摘要:

通常观察到,对于芯片多处理器(CMP),共享末级高速缓存(SLLC)中的活线的比例非常小。这可以使用基于提升的替换策略来解决,例如重新引用间隔预测(RRIP)而不是LRU,死块预测器或基于重用的缓存分配方案。在GPU系统中,使用各种高速缓存旁路技术来缓解类似的LLC问题。这些问题在异构CPU-GPU系统中更加严重,因为这两个处理器具有不同的数据访问模式和频率。GPU通常处理流数据,但与CPU相比,有更多的线程访问内存。因此,大多数传统的高速缓存替换和分配策略被证明是无效的,这是由于GPU应用中的高速缓存访问数量更高,导致GPU高速缓存行的分配更高,尽管它们的重用最小。在这项工作中,我们实现了重用缓存方法的异构CPU-GPU系统。重用缓存是一个解耦的标签/数据SLLC,旨在仅存储被访问多次的数据。这种设计是基于这样的观察,即LLC中的大部分高速缓存行被存储,但在被替换之前不会被重用。我们发现,重用缓存实现的IPC收益的0.5%内的静态分区的LLC,同时减少了平均40%的LLC的面积成本。

英文摘要:

It is generally observed that the fraction of live lines in shared last-level caches (SLLC) is very small for chip multiprocessors (CMPs). This can be tackled using promotion-based replacement policies like re-reference interval prediction (RRIP) instead of LRU, dead-block predictors, or reuse-based cache allocation schemes. In GPU systems, similar LLC issues are alleviated using various cache bypassing techniques. These issues are worsened in heterogeneous CPU-GPU systems because the two processors have different data access patterns and frequencies. GPUs generally work on streaming data, but have many more threads accessing memory as compared to CPUs. As such, most traditional cache replacement and allocation policies prove ineffective due to the higher number of cache accesses in GPU applications, resulting in higher allocation for GPU cache lines, despite their minimal reuse. In this work, we implement the Reuse Cache approach for heterogeneous CPU-GPU systems. The reuse cache is a decoupled tag/data SLLC which is designed to only store the data that is being accessed more than once. This design is based on the observation that most of the cache lines in the LLC are stored but do not get reused before being replaced. We find that the reuse cache achieves within 0.5% of the IPC gains of a statically partitioned LLC, while decreasing the area cost of the LLC by an average of 40%.

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

↑