CachePerf:一种基于混合硬件采样的统一缓存未命中分类器
CachePerf: A Unified Cache Miss Classifier via Hybrid Hardware Sampling
摘要:
无论是同构还是异构体系结构上的顺序或并发程序,缓存都起着决定应用程序性能的关键作用。修复缓存未命中需要了解缓存未命中的来源和类型。然而,即使经过几十年的研究,这仍然是一个悬而未决的问题。本文提出了一个统一的分析工具-CachePerf-,可以正确地识别不同类型的缓存未命中,区分分配器引起的问题,从应用程序,并排除小问题,而没有太大的性能影响。CachePerf背后的核心思想是一种混合采样方案:它采用基于PMU的粗粒度采样来选择极少数易受影响的指令(具有频繁的缓存未命中),然后采用基于断点的细粒度采样来收集这些指令的存储器访问模式。根据我们的评估,CachePerf只需要14%的性能开销和19%的内存开销(对于占用空间大的应用程序),同时正确识别缓存未命中的类型。CachePerf检测到9个以前未知的bug。修复报告的错误实现了从3%到3788%的性能加速。CachePerf由于其有效性和低开销,将成为现有分析器不可或缺的补充。
英文摘要:
The cache plays a key role in determining the performance of applications, no matter for sequential or concurrent programs on homogeneous and heterogeneous architecture. Fixing cache misses requires to understand the origin and the type of cache misses. However, this remains to be an unresolved issue even after decades of research. This paper proposes a unified profiling tool--CachePerf--that could correctly identify different types of cache misses, differentiate allocator-induced issues from those of applications, and exclude minor issues without much performance impact. The core idea behind CachePerf is a hybrid sampling scheme: it employs the PMU-based coarse-grained sampling to select very few susceptible instructions (with frequent cache misses) and then employs the breakpoint-based fine-grained sampling to collect the memory access pattern of these instructions. Based on our evaluation, CachePerf only imposes 14% performance overhead and 19% memory overhead (for applications with large footprints), while identifying the types of cache misses correctly. CachePerf detected 9 previous-unknown bugs. Fixing the reported bugs achieves from 3% to 3788% performance speedup. CachePerf will be an indispensable complementary to existing profilers due to its effectiveness and low overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。