arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.01265cs.ARcs.OScs.PF
收藏

CounterPoint: 使用硬件事件计数器反驳和修正微架构假设(扩展版)

CounterPoint: Using Hardware Event Counters to Refute and Refine Microarchitectural Assumptions (Extended Version)

Yale University(耶鲁大学);Stanford University(斯坦福大学)

Nick Lindsay, Caroline Trippel, Anurag Khandelwal, Abhishek Bhattacharjee

AI总结:

CounterPoint通过硬件事件计数器验证和修正微架构假设,揭示未文档化的微架构行为。

摘要:

硬件事件计数器有潜力不仅揭示性能瓶颈,还能展现详细的微架构行为。在实践中,这种承诺受到其模糊规范、透明设计和多路复用噪声的阻碍,使事件计数器数据难以解读。我们引入了CounterPoint框架,该框架测试用户指定的微架构模型——以μ路径决策图形式表达——与性能计数器数据的一致性。当出现不匹配时,CounterPoint通过多维计数器置信区域来缓解多路复用噪声,定位可能的微架构特征来解释这些不匹配。我们以Haswell内存管理单元为例进行案例研究,揭示了多个未文档化和未充分文档化的微架构行为。这些包括负载-存储队列侧的TLB预取器、合并页面表走查器、可中止的页面表走查等。总体而言,CounterPoint帮助专家将嘈杂的硬件性能计数器测量与他们的微架构心理模型协调一致——在过程中揭示了微妙而之前隐藏的硬件特性。

英文摘要:

Hardware event counters offer the potential to reveal not only performance bottlenecks but also detailed microarchitectural behavior. In practice, this promise is undermined by their vague specifications, opaque designs, and multiplexing noise, making event counter data hard to interpret. We introduce CounterPoint, a framework that tests user-specified microarchitectural models - expressed as $μ$path Decision Diagrams - for consistency with performance counter data. When mismatches occur, CounterPoint pinpoints plausible microarchitectural features that could explain them, using multi-dimensional counter confidence regions to mitigate multiplexing noise. We apply CounterPoint to the Haswell Memory Management Unit as a case study, shedding light on multiple undocumented and underdocumented microarchitectural behaviors. These include a load-store queue-side TLB prefetcher, merging page table walkers, abortable page table walks, and more. Overall, CounterPoint helps experts reconcile noisy hardware performance counter measurements with their mental model of the microarchitecture - uncovering subtle, previously hidden hardware features along the way.

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

↑