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

无因果建模的自顶向下微架构分析存在风险!

Top-Down Microarchitecture Analysis Without Causal Modelling Is Dangerous!

BenchCouncil: International Open Benchmark Council(国际开放基准委员会)

Chenxi Wang, Lei Wang, Wanling Gao, Guoxin Kang, Fanda Fan, Jianfeng Zhan

AI总结:

本文针对自顶向下微架构分析(TMA)的因果盲区问题,提出因果自顶向下微架构分析(CTMA),在Intel、AMD、ARM平台验证后发现多项反直觉性能现象,并提出动态推测节流机制。

摘要:

自顶向下微架构分析(Top-Down Microarchitecture Analysis, TMA)是识别CPU瓶颈的标准方法,但它隐含地通过单一因果路径对性能建模:工作负载(数据集、算法)→CPU(CPI)→系统(性能)(微架构效率路径),忽略了两条隐藏的因果路径:工作负载(数据集、算法)→已执行指令数→系统(性能)(算法效率路径),以及工作负载(数据集、算法)→已执行指令数→CPU(CPI)→系统(性能)(微架构-算法效率路径)。这种因果盲区常误导架构师开展无效的硬件优化。为解决该问题,本文提出因果自顶向下微架构分析(Causal Top-Down Microarchitecture Analysis, CTMA),利用对象因果模型,明确对工作负载、已执行指令数、CPU和系统之间的这三条因果路径进行建模。本文在Intel、AMD和ARM平台上对CTMA进行验证,实验揭示了反直觉的见解:(1)CPI分析盲区:算法指令膨胀可使运行时间翻倍,但CPI分析结果保持不变;(2)过度推测拥塞:对前端进行节流反而能提升指针追踪算法的性能;(3)指令级并行窗口崩溃:极端数据拓扑会将瓶颈从后端重排序缓冲区(ROB)容量转移到前端填充率不足;(4)操作缓存的同步多线程(SMT)重叠:极小的内存占用会在Intel平台上产生SMT加速效果,但在AMD平台上引发严重抖动;(5)“幽灵状态”伪影:Intel Xeon Gold 5120T上过时的流水线缓解措施人为地将SPEC CPU2017的性能提升了22.75%,将SPEC CPU2026的性能提升了42.2%。基于上述发现,本文提出一种动态推测节流机制。

英文摘要:

Top-Down Microarchitecture Analysis (TMA) is the standard for identifying CPU bottlenecks. However, TMA implicitly models performance via a single causal path: Workload(dataset, algorithm) => CPU(CPI) => System(Performance) (microarchitectural efficiency path). It overlooks two hidden causal paths: Workload(dataset, algorithm) => Instructions(Retired) => System(Performance) (algorithmic efficiency path) and Workload(dataset, algorithm) => Instructions(Retired) => CPU(CPI) => System(Performance) (microarchitecture-algorithm efficiency path). This causal blindness often misleads architects into futile hardware optimizations. To address this, we propose Causal Top-Down Microarchitecture Analysis (CTMA). Utilizing the object causal model, CTMA explicitly models these three causal paths among the workload, instructions, CPU, and system. We validate CTMA across Intel, AMD, and ARM platforms. Our experiments reveal counterintuitive insights: (1) CPI Profiling Blindness: Algorithmic instruction bloat can double elapsed time while the CPI profile remains frozen. (2) Over-Speculation Congestion: Throttling the Frontend paradoxically improves performance in pointer-chasing algorithms. (3) ILP Window Collapse: Extreme data topologies shift bottlenecks from Backend ROB capacity to Frontend fill-rate starvation. (4) Op-Cache SMT Overlap: Ultra-small footprints yield SMT speedups on Intel but cause severe thrashing on AMD. (5) "Ghost State" Artifact: Stale pipeline mitigations on Intel Xeon Gold 5120T artificially boost performance by 22.75% on SPEC CPU2017 and 42.2% on SPEC CPU2026. Based on this, we propose a dynamic speculation throttling mechanism.

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

↑