First Analysis Guide
Complete walkthrough of your first gem5 data analysis with RING-5.
Prerequisites
- RING-5 installed and running
- gem5 simulator output directory containing
stats.txtfiles - Basic understanding of gem5 statistics
Overview
This guide covers:
- Launching the web application
- Loading gem5 data via parsing
- Visualizing statistics
- Applying data transformations
- Saving your analysis
Step 1: Launch the Application
Start the RING-5 web interface:
cd RING-5
./launch_webapp.sh
The application opens at http://localhost:8501.
Step 2: Navigate to Data Source
- In the sidebar, select Data Source
- You’ll see two options:
- Parse gem5 Stats: Parse gem5 simulator output
- Upload CSV: Upload pre-parsed data
Choose Parse gem5 Stats for this tutorial.
Step 3: Configure Parsing
Select gem5 Output Directory
- Click Browse to select your gem5 output directory
- The directory should contain
stats.txtfiles - Enter the stats file pattern (default:
stats.txt)
Scan for Variables
- Click Scan Variables
- Wait for scanning to complete (progress bar shows status)
- Review discovered variables in the table
What is scanning? Scanning discovers all available statistics in your gem5 output without parsing values. It identifies:
- Variable names (e.g.,
system.cpu.ipc) - Variable types (scalar, vector, histogram, distribution)
- Available entries for vector variables
Select Variables to Parse
- Review the scanned variables table
- Select variables you want to analyze:
system.cpu.ipc(scalar)system.cpu.numCycles(scalar)system.cpu.dcache.overall_miss_rate(scalar)
- Click Parse Selected Variables
Pattern Variables: Notice variables like system.cpu\d+.ipc - these are pattern aggregations where multiple components (cpu0, cpu1, cpu2) are consolidated into a single regex pattern.
Wait for Parsing
Parsing extracts actual data values from stats.txt files:
- Progress bar shows completion percentage
- Parsing runs asynchronously for speed
- Large datasets may take several minutes
Step 4: Review Loaded Data
Once parsing completes:
- The Current Dataset section shows:
- Number of rows
- Number of columns
- Data source path
- Navigate to Data Managers to inspect the data:
- View raw data in table format
- Check column names and types
- Verify data was parsed correctly
Step 5: Create Your First Plot
Navigate to Manage Plots
- In the sidebar, select Manage Plots
- Click Create New Plot
Configure Plot
- Select Plot Type:
- Bar Chart
- Grouped Bar Chart
- Line Plot
- Scatter Plot
- Histogram
- Name Your Plot:
- Enter descriptive name (e.g., “IPC Comparison”)
- Click Create
Configure Plot Mapping
For a bar chart comparing IPC across configurations:
- X-axis: Select
config(configuration name) - Y-axis: Select
system.cpu.ipc - Group by (optional): Select
benchmarkfor grouped bars
Apply Data Transformations (Optional)
Add transformations in the Data Processing Pipeline:
- Column Selector: Keep only needed columns
- Filter: Remove outliers or specific benchmarks
- Normalize: Normalize values to baseline configuration
- Sort: Order data for better visualization
Example pipeline:
# 1. Select columns
{"type": "columnSelector", "columns": ["config", "benchmark", "ipc"]}
# 2. Filter benchmarks
{"type": "conditionSelector", "column": "benchmark", "mode": "equals", "value": "mcf"}
# 3. Normalize to baseline
{"type": "normalize", "normalizeVars": ["ipc"], "normalizerColumn": "config", "normalizerValue": "baseline"}
Generate Plot
Click Update Plot to render the visualization.
Step 6: Customize Your Plot
Plot Configuration
Customize appearance:
- Title: Update plot title
- Axis Labels: Customize X/Y axis labels
- Legend: Show/hide legend, adjust position
- Colors: Change color scheme
- Size: Adjust plot dimensions
Interactive Features
Use Plotly’s interactive tools:
- Zoom: Box zoom or scroll zoom
- Pan: Click and drag
- Hover: View exact values
- Legend: Click to hide/show traces
- Download: Export as PNG
Step 7: Create Multiple Plots
Create additional plots for comparison:
- Click Create New Plot
- Select different plot type
- Configure different variables
- Apply different transformations
Tip: Each plot has its own independent data pipeline.
Step 8: Save Your Analysis
Create a Portfolio
Save your complete analysis session:
- Navigate to Portfolio in sidebar
- Click Save Portfolio
- Enter portfolio name (e.g., “IPC Analysis 2026-02”)
- Optional: Add description
- Click Save
What gets saved?
- All loaded data
- All plot configurations
- All data pipelines
- All transformations
Load Saved Portfolio
Restore a previous session:
- Navigate to Portfolio
- Select saved portfolio from dropdown
- Click Load Portfolio
- All plots and data are restored
Common Issues
“No data loaded”
Solution: Navigate to Data Source and parse or upload data first.
“Variable not found after parsing”
Solution: Check variable name spelling, ensure it was selected during parsing.
“Parsing takes too long”
Solutions:
- Reduce number of files: Use
limitparameter in scan - Select fewer variables: Parse only needed statistics
- Check file size: Very large stats.txt files take longer
“Plot shows no data”
Solutions:
- Check data pipeline: Filters may be excluding all data
- Verify column names: Ensure mapped columns exist
- Review data: Use Data Managers to inspect loaded data
Next Steps
- Data Transformations: Learn about Data Transformations
- Advanced Plotting: Explore Creating Plots
- Shapers: Master Shaper Pipelines
- Pattern Aggregation: Understand Pattern Aggregation
Tips for Effective Analysis
- Start Small: Parse a subset of files first (use
limitparameter) - Incremental Approach: Add transformations one at a time
- Save Often: Create portfolios for important analyses
- Name Descriptively: Use clear names for plots and portfolios
- Check Data: Always review raw data in Data Managers first
Need Help? Check Troubleshooting or open a GitHub issue.