Building a Dashboard to Analyze Sniper Results of SPEC CPU2006 (1)

I built a dashboard for running SPEC CPU2006 (SPECint2006) on Sniper, aggregating with SimPoint weights, and looking at the bottlenecks. The dashboard that an AI wrote for me (spec2006_work/notebooks/dashboard.py) turned out quite well, so as the first part I'll note down the structure of the dashboard itself.

The second part (interpreting and discussing the results) is split out into blog_spec2006_sniper_dashboard_part2.md.

Goals of the Dashboard

  • Pick up IPC / MPKI / DRAM bandwidth / latency / TLB from Sniper's sim.out
  • Take a weighted average with SimPoint weights to get a representative value for each benchmark
  • Roughly classify by MPKI thresholds to quickly grasp "what is wrong"
  • Converge on an answer while changing viewpoints with tables, bar charts, scatter plots, heatmaps, and radar charts

Structure of the Dashboard (spec2006_work/notebooks/dashboard.py)

It is designed to run in VS Code's Python Interactive, executing cells in order. Broadly, it flows through "configuration display", "data aggregation", "visualization", and "score table".

0. Setup

It looks for the location of sniper_results/ among several candidates, and stops with an assert if it is not found.

1. Simulation Configuration

It picks up one sniper_results/**/sim.cfg and extracts CPU/ROB/branch prediction/L1/L2/TLB/DRAM/mode and so on with configparser.

  • 1a. Styled Table: Displays the parameter table color-coded by category
  • 1b. Block Diagram: Draws a "plausible-looking block diagram" with matplotlib

The block diagram can be pasted into the blog too (and I did).

2. Data Collection

This is the core.

  • Parse sim.out line by line and pick up IPC/Branch MPKI/DTLB MPKI/L2 MPKI/DRAM MPKI/DRAM BW%...
  • Read (subcmd, simpoint)->weight from ipc_estimation.csv and take a weighted average using the weights
  • Build a per-benchmark df and a per-simpoint df_sp

2. Bottleneck Classification

The classification rules use six categories based on MPKI thresholds.

  • DRAM-bound: DRAM MPKI > 50 or DRAM BW > 50%
  • LLC+DRAM: L2 MPKI > 15 and DRAM MPKI > 15
  • LLC-bound: L2 MPKI > 5 and DRAM MPKI > 5
  • TLB-bound: DTLB MPKI > 50 or L2-TLB MPKI > 20
  • Branch-bound: Branch MPKI > 10
  • Compute-bound: everything else

3 to 12. Visualizations and Tables

There are many visualizations, but basically it is enough to grasp the following.

  • IPC Overview: First, understand the situation (colored by classification)
  • MPKI comparison: Which level is being hit (log scale)
  • Heatmap: Normalize the metrics and unify so that "red = bad"
  • Scatter plot: DRAM MPKI vs IPC (bubble size = L2 MPKI)
  • SimPoint distribution: Check the variation behind the average
  • SPEC score table: ratio and geomean from ipc_summary.csv

This is an English translation of the original Japanese post: SPEC CPU2006 のSniper実行結果を解析するダッシュボードを作る(1)