Analyze a Scaling Study
Glossary terms: Benchmark, Experiment, System, Modifier, Scaling Study
Previously completed
Before starting this page, you should have completed either Build and Run an Experiment or Troubleshoot a Failed Experiment Run and have a completed HPL scaling study. These standard initialization commands from the build and run workflow are reminders.
The AWS tutorial system was initialized with:
benchpark]$ benchpark system init --dest=hpc-tutorial fluxtainer-aws
The HPL experiment was initialized with:
benchpark]$ benchpark experiment init hpc-tutorial hpl +strong caliper=time,mpi
Install the analysis dependencies once from the Benchpark repository (this has already been installed in the container for the hands-on tutorials):
$ pip install .[analyze]
Analyze the completed HPL scaling study.
First, move back to the Benchpark root directory to continue with the remaining steps:
benchpark]$ cd benchpark
The completed run from step #2 or the repaired run
from step #3 should have produced one Caliper profile
(.cali file) for each scaling configuration. Check that the profiles exist:
$ find wkp/hpc-tutorial/hpl/workspace/ -name "*.cali"
wkp/hpc-tutorial/hpl/workspace/experiments/hpl/standard/hpl_standard_test_mpi_caliper_time_mpi_strong_scaling_1_1000_1/261114-000638_8848_p2kDeiLLZOoJ.cali
wkp/hpc-tutorial/hpl/workspace/experiments/hpl/standard/hpl_standard_test_mpi_caliper_time_mpi_strong_scaling_2_1000_2/261114-000639_8968_JG2xp1S9kIFI.cali
wkp/hpc-tutorial/hpl/workspace/experiments/hpl/standard/hpl_standard_test_mpi_caliper_time_mpi_strong_scaling_4_1000_4/261114-000640_9089_STBbU0buU6H6.cali
wkp/hpc-tutorial/hpl/workspace/experiments/hpl/standard/hpl_standard_test_mpi_caliper_time_mpi_strong_scaling_8_1000_8/261114-000642_9225_AP4K3qYsdBsu.cali
The profile filenames contain run-specific identifiers, so your output will differ.
Strong Scaling
The default stacked area chart shows the exclusive average time per rank for each
instrumented region. The x-axis records the node and MPI-rank counts varied in the
strong-scaling study. Within each profile, Calls/rank (max) is the largest call
count among its ranks. For each region, the legend shows the largest of these values
across all profiles, so the profile supplying the legend value can differ by region.
benchpark]$ benchpark analyze --workspace-dir wkp/hpc-tutorial/hpl/workspace
Strong-scaling area chart.
Percentage
The percentage chart expresses each region’s metric relative to the sum for all regions. This makes each region’s share of total time easier to compare.
benchpark]$ benchpark analyze --workspace-dir wkp/hpc-tutorial/hpl/workspace --chart-type percentage
Strong-scaling data shown as a percentage of total time.
Inclusive Metrics
The inclusive chart uses Avg time/rank instead of Avg time/rank (exc).
benchpark]$ benchpark analyze --workspace-dir wkp/hpc-tutorial/hpl/workspace --yaxis-metric "Avg time/rank"
Strong-scaling data using an inclusive metric.
Region Filtering
This figure combines regions that have the same name, then retains the regions with the highest metric values. The filtered view emphasizes the regions that contribute most to the measured time. The sum of the metric for all removed regions is also shown, so you can see if you removed too many regions.
benchpark]$ benchpark analyze --workspace-dir wkp/hpc-tutorial/hpl/workspace --group-regions-name --top-n-regions 10
Strong-scaling data after filtering regions.
For additional chart types and filtering options, see Analyze a Scaling Study.