Skip to main content
QUICK REVIEW

[Paper Review] Accurate Throughput Prediction of Basic Blocks on Recent Intel Microarchitectures.

Andreas Abel, Jan Reineke|arXiv (Cornell University)|Jul 29, 2021
Parallel Computing and Optimization TechniquesComputer Science20 references4 citations
TL;DR

This paper proposes a high-accuracy simulator for predicting the throughput of basic blocks on recent Intel microarchitectures by reverse-engineering undocumented pipeline details using microbenchmarks. It achieves over tenfold improvement in prediction accuracy over state-of-the-art tools by modeling key pipeline components such as execution units, port constraints, and resource contention, and supports all Intel Core microarchitectures from the last decade.

ABSTRACT

Tools to predict the throughput of basic blocks on a specific microarchitecture are useful to optimize software performance and to build optimizing compilers. In recent work, several such tools have been proposed. However, the accuracy of their predictions has been shown to be relatively low. In this paper, we identify the most important factors for these inaccuracies. To a significant degree these inaccuracies are due to elements and parameters of the pipelines of recent CPUs that are not taken into account by previous tools. A primary reason for this is that the necessary details are often undocumented. In this paper, we build more precise models of relevant components by reverse engineering using microbenchmarks. Based on these models, we develop a simulator for predicting the throughput of basic blocks. In addition to predicting the throughput, our simulator also provides insights into how the code is executed. Our tool supports all Intel Core microarchitecture generations released in the last decade. We evaluate it on an improved version of the BHive benchmark suite. On many recent microarchitectures, its predictions are more accurate than the predictions of state-of-the-art tools by more than an order of magnitude.

Motivation & Objective

  • Address the poor accuracy of existing tools in predicting basic block throughput on modern Intel microarchitectures.
  • Identify and model previously undocumented pipeline characteristics—such as port constraints and resource sharing—that contribute to prediction errors.
  • Develop a simulator that not only predicts throughput with high precision but also provides insights into low-level execution behavior.
  • Support all Intel Core microarchitectures released in the past decade to ensure broad applicability.
  • Improve compiler optimization and performance tuning by enabling accurate, low-level performance modeling.

Proposed method

  • Reverse engineer key pipeline components of recent Intel microarchitectures using custom microbenchmarks to uncover undocumented behaviors.
  • Construct detailed models of execution units, ports, and resource contention by measuring instruction-level performance under controlled conditions.
  • Integrate these models into a cycle-accurate simulator that emulates the execution of basic blocks on target microarchitectures.
  • Use the simulator to predict throughput by simulating instruction scheduling, resource allocation, and pipeline hazards.
  • Validate the model's accuracy by comparing predictions against measurements from an enhanced version of the BHive benchmark suite.
  • Expose execution insights by tracking port usage, resource conflicts, and instruction-level dependencies during simulation.

Experimental results

Research questions

  • RQ1What undocumented pipeline features in recent Intel microarchitectures most significantly degrade the accuracy of existing throughput prediction tools?
  • RQ2To what extent can reverse-engineered microbenchmarks reconstruct accurate models of execution unit behavior and port constraints?
  • RQ3How does the inclusion of detailed pipeline modeling improve throughput prediction accuracy compared to existing tools?
  • RQ4Can the proposed simulator generalize across all Intel Core microarchitectures from the last decade?
  • RQ5What insights into low-level execution behavior can be derived from the simulator’s internal state analysis?

Key findings

  • The primary source of inaccuracy in prior tools is the omission of undocumented pipeline features such as port-level constraints and resource sharing behaviors.
  • The reverse-engineered models successfully capture critical pipeline details, including port contention and execution unit limitations, that were previously unaccounted for.
  • The simulator achieves more than a tenfold improvement in prediction accuracy compared to state-of-the-art tools on many recent Intel microarchitectures.
  • The tool supports all Intel Core microarchitectures released over the past decade, ensuring broad compatibility and practical utility.
  • Beyond throughput prediction, the simulator provides actionable insights into instruction-level execution, such as port usage and resource conflicts, aiding low-level performance analysis.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.