Modern CPUs suffer from the frontend bottleneck because the instruction footprint of server workloads exceeds the private cache capacity. Prior works have examined the CPU components or private cache to improve the instruction hit rate. The large footprint leads to significant cache misses not only in the core and faster-level cache but also in the last-level cache (LLC). We observe that even with an advanced branch predictor and instruction prefetching techniques, a considerable amount of instruction accesses descend to the LLC. However, state-of-the-art LLC designs with elaborate data management overlook handling the instruction misses that precede corresponding data accesses. Specifically, when an instruction requiring numerous data accesses is missed, the frontend of a CPU should wait for the instruction fetch, regardless of how much data are present in the LLC.
To preserve hot instructions in the LLC, we propose Garibaldi, a novel pairwise instruction-data management scheme. Garibaldi tracks the hotness of instruction accesses by coupling it with that of data accesses and adopts management techniques. On the one hand, this scheme includes a selective protection mechanism that prevents the cache evictions of high-cost instruction cachelines. On the other hand, in the case of unprotected instruction line misses, Garibaldi conservatively issues prefetch requests of the paired data lines while handling those misses. In our experiments, we evaluate Garibaldi with 16 server workloads on a 40-core machine. We also implement Garibaldi on top of a modern LLC design, including Mockingjay. Garibaldi improves 13.2% and 6.1% of CPU performance on baseline LLC design and Mockingjay, respectively.
HyGain: High Performance, Energy-Efficient Hybrid Gain Cell based Cache Hierarchy
在本文中,我们提出了一个“全栈”的解决方案,设计高容量和低延迟的片上高速缓存层次结构的硬件设计栈的电路级开始。首先,我们提出了一种新颖的增益单元(GC)的设计使用FDSOI。GC具有几个理想的特性,包括与传统的6 T SRAM相比,存储密度高约50%,动态能量低约50%,即使在考虑外围电路开销之后。我们还利用背栅偏置将保留时间提高到1.12 ms(约为eDRAM的60倍),结合交错刷新等优化,使其成为构建各级片上缓存的理想候选者。我们表明,与6 T SRAM相比,对于给定的面积预算,基于GC的缓存平均为单编程和多编程工作负载分别提供29%和36%的IPC增加,包括SPEC CPU 2017在内的当代工作负载。我们还观察到,单编程和多编程工作负载的动态节能分别为42%和34%。我们利用所提出的GC的固有属性,包括解耦的读和写位线设计优化,以节省预充电能量和建筑GC缓存具有更好的能量和性能特性。最后,为了利用所有世界中最好的东西,我们将GC与STT-RAM结合起来创建混合层次结构。我们表明,在L1和L2的GC缓存的混合层次结构,和GC和STT-RAM之间的LLC分裂,启用非对称写入优化,能够提供54%的好处,在能量延迟产品(EDP)相比,全SRAM设计,和13%相比,全GC缓存层次结构,平均跨多编程的工作负载。
Adaptive Cache Pollution Control for Large Language Model Inference Workloads Using Temporal CNN-Based Prediction and Priority-Aware Replacement
University of Electronic Science and Technology of China(电子科技大学);Flinders University(弗林德斯大学);Siebel School of Computing and Data Science, University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校西贝尔计算与数据科学学院)
高速缓存预取器通过在处理器实际需要数据之前将数据从较慢的内存提取到较快的高速缓存,极大地消除了强制性的高速缓存未命中。复杂的预取器通过重复程序的历史空间和时间存储器访问模式来预测下一次使用高速缓存行。然而,它们是容易出错的,错误的预测导致缓存污染,并施加额外的压力,内存子系统。提出了一种基于感知器学习的数据缓存预取方案。其核心思想是两级预取机制。该算法首先利用已有的基于表的预取机制(如步幅预取或马尔可夫预取)进行预取决策,然后利用神经网络感知器检测和跟踪程序的访存模式,以剔除不必要的预取决策。感知器可以从时间和空间的局部和全局历史中学习,并且可以容易地由硬件实现。这种机制通过理想地减轻缓存污染并消除预取器发出的冗余内存请求来提高执行性能。基于SPEC CPU 2006基准测试进行了详细的评估和分析。仿真结果表明,该方案在保证指令周期(IPC)(浮动在-2.22%至2.55%之间)和缓存命中率(浮动在-1.67%至2.46%之间)的前提下,平均减少了60.64%~ 83.84%的预取内存请求。虽然感知器可能会拒绝有用的块,从而导致缓存未命中率的轻微上升,但较低的内存请求计数可以减少平均内存访问延迟,从而补偿损失,同时提高多程序工作负载的整体性能。
NVR: Vector Runahead on NPUs for Sparse Memory Access
National Center of Technology Innovation for EDA, School of Integrated Circuits, Southeast University(东南大学集成电路学院、国家EDA技术创新中心);Houmo AI(后摩智能);Nanjing University(南京大学);Huazhong University of Science and Technology(华中科技大学);Harbin Institute of Technology(哈尔滨工业大学);Dalian University of Technology(大连理工大学)