summaryrefslogtreecommitdiffstats
path: root/run_bench.sh
diff options
context:
space:
mode:
authorJoshua Bakita <jbakita@cs.unc.edu>2021-03-13 18:13:18 -0500
committerJoshua Bakita <jbakita@cs.unc.edu>2021-03-13 18:16:11 -0500
commit4235722244de5b47f78898a7e49bc8324ea323bf (patch)
treecf5eadde0b491a9a15d83c7f4d97664e48602bca /run_bench.sh
parent11b7de40aad15d8e3296ef5d9c487139a7073844 (diff)
Benchmarks and Analysis Scripts: Fix everything for 2D cache sensitivity exp.
- Adds plot_cache_sensitivity_at_4mb.py to plot the results - Fixes run_bench.sh to work in mode `dis` - Fixes postproc.sh to use updated paths
Diffstat (limited to 'run_bench.sh')
-rwxr-xr-xrun_bench.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/run_bench.sh b/run_bench.sh
index 6e4abb5..39e9dcb 100755
--- a/run_bench.sh
+++ b/run_bench.sh
@@ -27,8 +27,8 @@ if [ $# -lt 5 ]; then
27 echo " L3-only (i3), or color-based L2+L3 (i)" 27 echo " L3-only (i3), or color-based L2+L3 (i)"
28 echo "Mode base requires no additional options." 28 echo "Mode base requires no additional options."
29 echo "Mode dis does not support the 2nd col. of -b and needs:" 29 echo "Mode dis does not support the 2nd col. of -b and needs:"
30 echo " -W FILE List of working set sizes to pass gen_input.py" 30 echo " -W FILE List of kB working set sizes to pass gen_input.py"
31 echo " -T FILE Input template to pass to gen_input.py" 31 echo " -T IN_ID Input template to pass to gen_input.py (eg. in0)"
32 echo " -C FILE List of cache configurations to test" 32 echo " -C FILE List of cache configurations to test"
33 echo "Mode pair options:" 33 echo "Mode pair options:"
34 echo " -P CPU CPU to run the 2nd benchmark on" 34 echo " -P CPU CPU to run the 2nd benchmark on"
@@ -87,7 +87,7 @@ if [[ "$mode" == "dis" ]] && [[ ! -f "$wss_settings" ]]; then
87 echo "Invalid argument: $wss_settings does not exist" 87 echo "Invalid argument: $wss_settings does not exist"
88 exit 88 exit
89fi 89fi
90if [[ "$mode" == "dis" ]] && [[ ! -f "$template_input" ]]; then 90if [[ "$mode" == "dis" ]] && [[ ! -f "inputs/Field/$template_input" ]]; then
91 echo "Invalid argument: $template_input does not exist" 91 echo "Invalid argument: $template_input does not exist"
92 exit 92 exit
93fi 93fi
@@ -350,9 +350,9 @@ for (( i = 0; i < ${#bench[@]} ; i++ )); do
350 echo $j > /sys/fs/resctrl/benchmarks/schemata 350 echo $j > /sys/fs/resctrl/benchmarks/schemata
351 while read ii; do # For WSS setting 351 while read ii; do # For WSS setting
352 if [[ -v $LITMUS ]]; then 352 if [[ -v $LITMUS ]]; then
353 ./gen_input.py ${bench[$i]} inputs/${bench[$i]^}/$template_input $ii | numactl $numa_arg0 $prefix/${bench[$i]} $bench[$i]}-$ii-$j $maxJobs $core $runID 1 353 ./gen_input.py ${bench[$i]} inputs/${bench[$i]^}/$template_input $ii | numactl $numa_arg0 $prefix/${bench[$i]} $bench{[$i]}-$ii-$j $maxJobs $core $runID-$userRunID 1
354 else 354 else
355 ./gen_input.py ${bench[$i]} inputs/${bench[$i]^}/$template_input $ii | chrt -r 97 numactl $numa_arg0 taskset -c $core $prefix/${bench[$i]} ${bench[$i]}-$ii-$j $maxJobs $core $runID 1 355 ./gen_input.py ${bench[$i]} inputs/${bench[$i]^}/$template_input $ii | chrt -r 97 numactl $numa_arg0 taskset -c $core $prefix/${bench[$i]} ${bench[$i]}-$ii-$j $maxJobs $core $runID-$userRunID 1
356 fi 356 fi
357 done < $wss_settings 357 done < $wss_settings
358 done < $cache_settings 358 done < $cache_settings