TL;DR
Traditional CPU performance analysis is "blind" to how software algorithms adapt to different data, often leading architects to optimize the wrong hardware components. This paper introduces Causal Top-Down Microarchitecture Analysis (CTMA), a framework that uses causal modeling to decouple algorithmic changes from hardware efficiency, uncovering counterintuitive bottlenecks like "Over-Speculation Congestion" and a 42% performance boost triggered by a "Ghost State" artifact.
What Problem Does This Paper Address?
For years, Intel’s Top-Down Microarchitecture Analysis (TMA) has been the industry standard for finding CPU bottlenecks. It categorizes every pipeline cycle into buckets like "Frontend Bound" or "Backend Bound" to help architects minimize Cycles Per Instruction (CPI).
However, the authors argue that TMA is "dangerously" incomplete because it assumes a static relationship between software and hardware. It only looks at one path: how the CPU handles a fixed stream of instructions. In reality, real-world workloads are dynamic. If you change the input data (e.g., a more complex graph or a deeper search tree), the algorithm itself might change, producing more instructions or shifting how it uses the cache.
TMA suffers from "causal blindness": it can’t tell if a performance drop is due to a hardware inefficiency or simply because the software is doing more work. This leads architects to waste time optimizing hardware for what are actually software-driven anomalies.
Methods
The authors propose CTMA, which moves from passive profiling to active intervention using the Object Causal Model (OCM). The framework operates in three phases:
- Software Interface (Intervention): Instead of using a single static benchmark, they mutate specific algorithmic traits (like data randomness or recursion depth) while keeping the total data scale constant. This ensures an "apples-to-apples" comparison.
- Dynamic Bottleneck Analysis: They model three distinct causal paths between the Workload, the Instructions, the CPU, and the overall System performance.
- Hardware Interface (Cross-Validation): They use "hardware probes" on real silicon to verify their causal theories. These include:
- Frequency Clamping: Locking CPU speed to isolate memory-wall effects.
- SMT Resource Partitioning: Using a "pause" process on a sibling core to artificially shrink the Reorder Buffer (ROB).
- Manual Speculation Throttling: Injecting
NOPinstructions to see if slowing down the frontend actually helps the backend.
Datasets
The study evaluates CTMA across three major architectures: Intel Skylake (Xeon Gold), AMD Zen 3 (EPYC), and ARMv8 (Kunpeng 920). They use the industry-standard SPEC CPU2017 and SPEC CPU2026 suites, but with a twist: they developed custom tools to generate "treatment" datasets for specific workloads like leela_r (Go engine), mcf_r (network simplex), and cactuBSSN_r (physics solver).
Key Insights and Ideas
- CPI Profiling Blindness: In the
leela_rworkload, changing data locality can double the execution time while the TMA profile (and CPI) remains perfectly "frozen." The hardware is just as efficient, but the algorithm is trapped in "instruction bloat." - The Pointer-Chasing Paradox: In
mcf_r, more structured data actually worsens the CPI but improves total performance. Why? The predictable data allows the CPU to speculate so aggressively that it clogs its own memory buffers (Line Fill Buffers), yet the algorithm finds shorter paths that require fewer instructions overall. - The "Ghost State" Artifact: The most shocking find was on Intel Xeon processors. Forcefully killing a process (
kill -9) can leave the CPU pipeline in a "stale" state that bypasses Spectre v2 security mitigations. This "Ghost State" yields an artificial 42.2% performance boost on SPEC CPU2026 benchmarks. - Op-Cache SMT Overlap: They found that Intel’s Decoded Stream Buffer (DSB) allows two SMT threads to overlap their work efficiently if the code footprint is small, whereas AMD’s rigid partitioning causes a 50% performance hit in the same scenario.

Key Results
- Instruction Bloat: Confirmed a universal mathematical constant of 2.06x instruction expansion in
leela_racross all architectures when data locality shifts, proving that microarchitectural tuning is futile against this specific software degradation. - Speculation Throttling: By manually injecting
NOPinstructions to slow down the frontend, the authors actually improved performance in congested workloads, proving that "faster" isn't always better if it leads to buffer deadlock. - Ghost State Impact: Uncovered that stale pipeline mitigations on Intel Xeon Gold 5120T boost SPEC CPU2017 performance by an average of 22.75%.

Limitations and Future Work
The authors acknowledge that their current hardware probes are limited by what commercial silicon allows. To go deeper, they plan to:
- Integrate with Simulators: Use tools like
gem5to perform register-level causal interventions that are impossible on real chips. - Dynamic Speculation Throttling: Develop new hardware controllers that automatically monitor backend congestion and "throttle" the frontend in real-time to maintain pipeline balance.
Ultimately, CTMA provides a roadmap for architects to stop chasing "ghost" bottlenecks and start building processors that are resilient to the way software actually behaves.
Summary updated