Examem:面向智能内存系统的低开销内存插桩
Examem: Low-Overhead Memory Instrumentation for Intelligent Memory Systems
AI总结:
Examem 是一个基于 LLVM 的低开销内存性能内省框架,通过静态指令混合信息与动态插桩相结合,在低于 10% 的几何平均开销下实现 93% 的字节准确率,并已应用于四种 ISA。
摘要:
内存性能通常是现代计算系统中的主要瓶颈。近年来,研究人员尝试通过利用 CXL、HBM 以及内存内和近内存处理等新技术来突破内存墙。针对此类硬件进行优化的开发人员需要了解目标应用程序的性能表现,才能充分利用这些系统。现有的软件和硬件性能内省技术由于以下一个或多个因素而不适合这一目的:测量粒度粗、无法提供调试关键问题所需的数据、运行时开销高以及硬件依赖性强。在许多已提出的系统中,计算与内存之间高度集成为扩展编译器支持以实现这一目的提供了机会。我们开发了 Examem,一个基于 LLVM 编译器基础设施的内存性能内省框架。Examem 支持代码中由开发人员标注的区域,从而能够对内核进行有针对性的插桩。除软件插桩外,Examem 在硬件性能计数器可用时也支持使用它们。它以静态方式记录代码指令混合的相关信息,并添加动态插桩以在运行时为被插桩区域生成估计的内存带宽。这种组合方法在保持低运行时开销的同时仍保持准确性,几何平均开销低于 10%,几何平均字节准确率为 93%。最后,我们的插桩通过 LLVM IR 通道实现,该通道与目标平台无关,我们已将其应用于四种 ISA。
英文摘要:
Memory performance is often the main bottleneck in modern computing systems. In recent years, researchers have attempted to scale the memory wall by leveraging new technology such as CXL, HBM, and in- and near-memory processing. Developers optimizing for such hardware need to understand how target applications perform to fully take advantage of these systems. Existing software and hardware performance introspection techniques are ill-suited for this purpose due to one or more of the following factors: coarse-grained measurement, inability to offer data needed to debug key issues, high runtime overhead, and hardware dependence. The heightened integration between compute and memory in many proposed systems offers an opportunity to extend compiler support for this purpose. We have developed Examem, a memory performance introspection framework based on the LLVM compiler infrastructure. Examem supports developer annotated regions in code, allowing for targeted instrumentation of kernels. Examem supports hardware performance counters when available, in addition to software instrumentation. It statically records information about the instruction mix of the code and adds dynamic instrumentation to produce estimated memory bandwidth for an instrumented region at runtime. This combined approach keeps runtime overhead low while remaining accurate, with a geomean overhead under 10% and a geomean byte accuracy of 93%. Finally, our instrumentation is performed using an LLVM IR pass, which is target agnostic, and we have applied it to four ISAs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。