TEA: Time-Proportional Event Analysis
Björn Gottschall, Lieven Eeckhout, Magnus Jahre
摘要
As computer architectures become increasingly complex and heterogeneous, it becomes progressively more difficult to write applications that make good use of hardware resources. Performance analysis tools are hence critically important as they are the only way through which developers can gain insight into the reasons why their application performs as it does. State-of-the-art performance analysis tools capture a plethora of performance events and are practically non-intrusive, but performance optimization is still extremely challenging. We believe that the fundamental reason is that current state-of-the-art tools in general cannot explain why executing the application's performance-critical instructions take time.
We hence propose Time-Proportional Event Analysis (TEA) which explains why the architecture spends time executing the application's performance-critical instructions by creating timeproportional Per-Instruction Cycle Stacks (PICS). PICS unify performance profiling and performance event analysis, and thereby (i) report the contribution of each static instruction to overall execution time, and (ii) break down per-instruction execution time across the (combinations of) performance events that a static instruction was subjected to across its dynamic executions. Creating timeproportional PICS requires tracking performance events across all in-flight instructions, but TEA only increases per-core power consumption by ∼3.2 mW (∼0.1%) because we carefully select events to balance insight and overhead. TEA leverages statistical sampling to keep performance overhead at 1.1% on average while incurring an average error of 2.1% compared to a non-sampling golden reference; a significant improvement upon the 55.6%, 55.5%, and 56.0% average error for AMD IBS, Arm SPE, and IBM RIS. We demonstrate that TEA's accuracy matters by using TEA to identify performance issues in the SPEC CPU2017 benchmarks lbm and nab that, once addressed, yield speedups of 1.28× and 2.45×, respectively.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Tintin: A Unified Hardware Performance Profiling Infrastructure to Uncover and Manage Uncertainty 引用了 BayesPerf: minimizing performance monitoring errors using Bayesian statistics
- Tintin: A Unified Hardware Performance Profiling Infrastructure to Uncover and Manage Uncertainty 引用了 TIP: Time-Proportional Instruction Profiling
- TIP: Time-Proportional Instruction Profiling 引用了 BayesPerf: minimizing performance monitoring errors using Bayesian statistics
- TIP: Time-Proportional Instruction Profiling 引用了 FirePerf: FPGA-Accelerated Full-System Hardware/Software Performance Profiling and Co-Design
- Chips Need DIP: Time-Proportional Per-Instruction Cycle Stacks at Dispatch 引用了 Tintin: A Unified Hardware Performance Profiling Infrastructure to Uncover and Manage Uncertainty
- Chips Need DIP: Time-Proportional Per-Instruction Cycle Stacks at Dispatch 引用了 BayesPerf: minimizing performance monitoring errors using Bayesian statistics
- Chips Need DIP: Time-Proportional Per-Instruction Cycle Stacks at Dispatch 引用了 TIP: Time-Proportional Instruction Profiling
- EXIST: Enabling Extremely Efficient Intra-Service Tracing Observability in Datacenters 引用了 TIP: Time-Proportional Instruction Profiling
引用它的顶会 Paper5
- EXIST: Enabling Extremely Efficient Intra-Service Tracing Observability in DatacentersXinkai Wang, Xiaofeng Hou, Chao Li, Yuancheng Li 等ASPLOS 2025 · 4 次引用
- Temporarily Unauthorized Stores: Write First, Ask for Permission LaterJuan M. Cebrian, Magnus Jahre, Alberto RosMICRO 2024 · 2 次引用
- Tintin: A Unified Hardware Performance Profiling Infrastructure to Uncover and Manage UncertaintyAo Li, Marion Sudvarg, Zihan Li, Sanjoy K. Baruah 等OSDI 2025 · 2 次引用
- Performance Predictability in Heterogeneous MemoryJinshu Liu, Hanchen Xu, Daniel S. Berger, Marcos K. Aguilera 等ASPLOS 2026 · 1 次引用
- Chips Need DIP: Time-Proportional Per-Instruction Cycle Stacks at DispatchSilvio Heverton Campelo de Santana, Joseph Rogers, Lieven Eeckhout, Magnus JahreASPLOS 2026 · 1 次引用
它引用的 Paper3
- FirePerf: FPGA-Accelerated Full-System Hardware/Software Performance Profiling and Co-DesignSagar Karandikar, Albert J. Ou, Alon Amid, Howard Mao 等ASPLOS 2020 · 18 次引用
- TIP: Time-Proportional Instruction ProfilingBjörn Gottschall, Lieven Eeckhout, Magnus JahreMICRO 2021 · 16 次引用
- BayesPerf: minimizing performance monitoring errors using Bayesian statisticsSubho S. Banerjee, Saurabh Jha, Zbigniew Kalbarczyk, Ravishankar K. IyerASPLOS 2021 · 14 次引用
相关 Paper
- LDB: An Efficient Latency Profiling Tool for Multithreaded ApplicationsInho Cho, Seo Jin Park, Ahmed Saeed, Mohammad Alizadeh 等NSDI 2024 · 4 次引用
- PerFlow: a domain specific framework for automatic performance analysis of parallel applicationsYuyang Jin, Haojie Wang, Runxin Zhong, Chen Zhang 等PPoPP 2022 · 10 次引用
- VESTA: Power Modeling with Language Runtime EventsJoseph Raskind, Timur Babakol, Khaled Mahmoud, Yu David LiuPLDI 2024 · 5 次引用
- DrCCTProf: a fine-grained call path profiler for ARM-based clustersQidong Zhao, Xu Liu, Milind ChabbiSC 2020 · 11 次引用
- Effective Performance Issue Diagnosis with Value-Assisted Cost ProfilingLingmei Weng, Yigong Hu, Peng Huang, Jason Nieh 等EuroSys 2023 · 8 次引用
