OptiWISE: Combining Sampling and Instrumentation for Granular CPI Analysis

2024 IEEE/ACM INTERNATIONAL SYMPOSIUM ON CODE GENERATION AND OPTIMIZATION, CGO(2024)

引用 0|浏览4
暂无评分
摘要
Despite decades of improvement in compiler technology, it remains necessary to profile applications to improve performance. Existing profiling tools typically either sample hardware performance counters or instrument the program with extra instructions to analyze its execution. Both techniques are valuable with different strengths and weaknesses, but do not always correctly identify optimization opportunities. We present OPTIWISE, a profiling tool that runs the program twice, once with low-overhead sampling to accurately measure performance, and once with instrumentation to accurately capture control flow and execution counts. OPTIWISE then combines this information to give a highly detailed per-instruction CPI metric by computing the ratio of samples to execution counts, as well as aggregated information such as costs per loop, source-code line, or function. We evaluate OPTIWISE to show it has an overhead of 8.1 x geomean, and 57 x worst case on SPEC CPU2017 benchmarks. Using OPTIWISE, we present case studies of optimizing selected SPEC benchmarks on a modern x86 server processor. The perinstruction CPI metrics quickly reveal problems such as costly mispredicted branches and cache misses, which we use to manually optimize for effective performance improvements.
更多
查看译文
关键词
Instructions Per Cycle,Flow Control,Profiling Tool,Manually Optimized,Optimal Opportunity,Cache Misses,Heuristic,Part Of Program,Profiling Data,Per Cycle,Straightforward Way,Outer Loop,Profiling Techniques,Execution Of Operations,Function Calls,System Calls,Types Of Branches,Recursive Function,Edge Frequency,Single Instruction,Control Flow Graph,Back Edge,Bit-shift,Call Graph,Address Space,Conditional Branches,Low Overhead,Application Version
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要