summaryrefslogtreecommitdiffstats
path: root/run_bench.sh
diff options
context:
space:
mode:
authorleochanj105 <leochanj@live.unc.edu>2021-10-29 03:40:38 -0400
committerleochanj105 <leochanj@live.unc.edu>2021-10-29 03:40:38 -0400
commit92df3dcae6747e4410574e7bf1f14dd1c07c3471 (patch)
treefafe9dbe89a4f7f715eee72644b906e698af29dc /run_bench.sh
parent895707a76ef3711474eb98c4358588a96926739f (diff)
tmp 10/29
Diffstat (limited to 'run_bench.sh')
-rwxr-xr-xrun_bench.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/run_bench.sh b/run_bench.sh
index 39e9dcb..0498e37 100755
--- a/run_bench.sh
+++ b/run_bench.sh
@@ -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-$userRunID 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 0
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-$userRunID 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 0
356 fi 356 fi
357 done < $wss_settings 357 done < $wss_settings
358 done < $cache_settings 358 done < $cache_settings
@@ -367,22 +367,22 @@ for (( i = 0; i < ${#bench[@]} ; i++ )); do
367 if [[ ! -v async ]]; then 367 if [[ ! -v async ]]; then
368 # Synchronize between pairs - original hard real-time SMT approach 368 # Synchronize between pairs - original hard real-time SMT approach
369 if [[ -v $LITMUS ]]; then 369 if [[ -v $LITMUS ]]; then
370 echo "${input[$i]}" | numactl $numa_arg0 taskset -c $core $prefix/${bench[$i]} ${bench[$i]} $maxJobs $core $core_two ${bench[$j]} $runID-$userRunID-A 1 & PID1=$!; 370 echo "${input[$i]}" | numactl $numa_arg0 taskset -c $core $prefix/${bench[$i]} ${bench[$i]} $maxJobs $core $core_two ${bench[$j]} $runID-$userRunID-A 1 0 & PID1=$!;
371 echo "${input[$j]}" | numactl $numa_arg1 taskset -c $core_two $prefix/${bench[$j]} ${bench[$j]} $maxJobs $core_two $core ${bench[$i]} $runID-$userRunID-B 1 & PID2=$!; 371 echo "${input[$j]}" | numactl $numa_arg1 taskset -c $core_two $prefix/${bench[$j]} ${bench[$j]} $maxJobs $core_two $core ${bench[$i]} $runID-$userRunID-B 1 0 & PID2=$!;
372 else 372 else
373 echo "${input[$i]}" | chrt -r 97 numactl $numa_arg0 taskset -c $core $prefix/${bench[$i]} ${bench[$i]} $maxJobs $core $core_two ${bench[$j]} $runID-$userRunID-A 1 & PID1=$!; 373 echo "${input[$i]}" | chrt -r 97 numactl $numa_arg0 taskset -c $core $prefix/${bench[$i]} ${bench[$i]} $maxJobs $core $core_two ${bench[$j]} $runID-$userRunID-A 1 0 & PID1=$!;
374 echo "${input[$j]}" | chrt -r 97 numactl $numa_arg1 taskset -c $core_two $prefix/${bench[$j]} ${bench[$j]} $maxJobs $core_two $core ${bench[$i]} $runID-$userRunID-B 1 & PID2=$!; 374 echo "${input[$j]}" | chrt -r 97 numactl $numa_arg1 taskset -c $core_two $prefix/${bench[$j]} ${bench[$j]} $maxJobs $core_two $core ${bench[$i]} $runID-$userRunID-B 1 0 & PID2=$!;
375 fi 375 fi
376 # We launched them asynchronously, so we have to wait 376 # We launched them asynchronously, so we have to wait
377 wait $PID1 $PID2 377 wait $PID1 $PID2
378 else 378 else
379 # No synchronization between pairs - original soft real-time SMT approach 379 # No synchronization between pairs - original soft real-time SMT approach
380 if [[ -v $LITMUS ]]; then 380 if [[ -v $LITMUS ]]; then
381 echo "${input[$j]}" | numactl $numa_arg0 taskset -c $core $prefix/${bench[$j]} ${bench[$j]} -1 $core NULL 0 & PID1=$!; 381 echo "${input[$j]}" | numactl $numa_arg0 taskset -c $core $prefix/${bench[$j]} ${bench[$j]} -1 $core NULL 0 0 & PID1=$!;
382 echo "${input[$i]}" | numactl $numa_arg1 taskset -c $core_two $prefix/${bench[$i]} ${bench[$i]}"+"${bench[$j]} $maxJobs $core_two $runID-$userRunID 1 & PID2=$!; 382 echo "${input[$i]}" | numactl $numa_arg1 taskset -c $core_two $prefix/${bench[$i]} ${bench[$i]}"+"${bench[$j]} $maxJobs $core_two $runID-$userRunID 1 0 & PID2=$!;
383 else 383 else
384 echo "${input[$j]}" | chrt -r 97 numactl $numa_arg0 taskset -c $core $prefix/${bench[$j]} ${bench[$j]} -1 $core NULL 0 & PID1=$!; 384 echo "${input[$j]}" | chrt -r 97 numactl $numa_arg0 taskset -c $core $prefix/${bench[$j]} ${bench[$j]} -1 $core NULL 0 & PID1=$!;
385 echo "${input[$i]}" | chrt -r 97 numactl $numa_arg1 taskset -c $core_two $prefix/${bench[$i]} ${bench[$i]}"+"${bench[$j]} $maxJobs $core_two $runID-$userRunID 1 & PID2=$!; 385 echo "${input[$i]}" | chrt -r 97 numactl $numa_arg1 taskset -c $core_two $prefix/${bench[$i]} ${bench[$i]}"+"${bench[$j]} $maxJobs $core_two $runID-$userRunID 1 0 & PID2=$!;
386 fi 386 fi
387 wait $PID2 387 wait $PID2
388 kill $PID1 388 kill $PID1