arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.18554cs.AR
收藏

Garibaldi:一种用于提升服务器工作负载中共享末级缓存性能的成对指令-数据管理方案

Garibaldi: A Pairwise Instruction-Data Management for Enhancing Shared Last-Level Cache Performance in Server Workloads

Jaewon Kwon, Yongju Lee, Jiwan Kim, Enhyeok Jang, Hongju Kal, Won Woo Ro

AI总结:

针对服务器工作负载中指令足迹过大导致的LLC指令未命中问题,提出成对指令-数据管理方案Garibaldi,通过选择性保护和成对预取提升CPU性能,在基线和Mockingjay上分别提升13.2%和6.1%。

摘要:

现代CPU面临前端瓶颈,因为服务器工作负载的指令足迹超过了私有缓存容量。先前的工作已研究了CPU组件或私有缓存以提高指令命中率。大的足迹不仅导致核心和较快级别缓存中的显著缓存未命中,也导致末级缓存(LLC)中的显著未命中。我们观察到,即使采用先进的分支预测器和指令预取技术,仍有相当数量的指令访问下降到LLC。然而,最先进的LLC设计通过精细的数据管理忽略了处理先于相应数据访问的指令未命中。具体来说,当一条需要大量数据访问的指令未命中时,CPU的前端应等待指令获取,无论LLC中存在多少数据。为了在LLC中保留热指令,我们提出了Garibaldi,一种新颖的成对指令-数据管理方案。Garibaldi通过将指令访问的热度与数据访问的热度耦合来跟踪指令访问的热度,并采用管理技术。一方面,该方案包括一种选择性保护机制,防止高成本指令缓存行的缓存驱逐。另一方面,在未受保护的指令行未命中的情况下,Garibaldi在处理这些未命中的同时,保守地发出成对数据行的预取请求。在我们的实验中,我们在40核机器上使用16个服务器工作负载评估了Garibaldi。我们还在现代LLC设计(包括Mockingjay)之上实现了Garibaldi。Garibaldi在基线LLC设计和Mockingjay上分别提高了13.2%和6.1%的CPU性能。

英文摘要:

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.

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

↑