summaryrefslogtreecommitdiffstats
path: root/run_all_sd-vbs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run_all_sd-vbs.sh')
-rwxr-xr-xrun_all_sd-vbs.sh67
1 files changed, 67 insertions, 0 deletions
diff --git a/run_all_sd-vbs.sh b/run_all_sd-vbs.sh
new file mode 100755
index 0000000..1f5948d
--- /dev/null
+++ b/run_all_sd-vbs.sh
@@ -0,0 +1,67 @@
1#!/bin/bash
2# Copyright 2020 Joshua Bakita
3# Runs SD-VBS in every configuration needed
4# for the paper and schedulability studies
5
6maxJobs=$1
7runID=$2
8
9if [ $# -lt 2 ]; then
10 echo "Usage $0 <number of iterations> <run ID>"
11 exit
12fi
13if [[ "$EUID" != 0 ]]; then
14 echo "You need to be root to enable spatial isolation!"
15 exit
16fi
17date
18
19# Run the pairs baseline and some comparisons to examine the effect of less cache
20echo "Building benchmarks in unpaired configuration..."
21cd SD-VBS/benchmarks
22make compile -j30 > /dev/null # Suppress noisy output
23cd ..
24echo "Done. Running experiments..."
25# Full L3, full L2 - xi is the baseline for the pairs
26baseXI=SD-VBS/$(date +"%b%d-%H")-c-xi-$runID.txt
27echo "" | ../run_bench.sh -m base -p 15 -l $maxJobs -b sd-vbsNames.txt -B -I xi $runID
28# Half L3, full L2 - i3 sees effect of half L3
29baseI3=SD-VBS/$(date +"%b%d-%H")-c-i3-$runID.txt
30echo "" | ../run_bench.sh -m base -p 15 -l $maxJobs -b sd-vbsNames.txt -B -I i3 $runID
31# Half L3, half L2 - additional effect of half L2
32baseI=SD-VBS/$(date +"%b%d-%H")-c-i-$runID.txt
33echo "" | ../run_bench.sh -m base -p 15 -l $maxJobs -b sd-vbsNames.txt -B -I i $runID
34date
35
36# Run the Level-C pairs
37pairC=SD-VBS/$(date +"%b%d-%H")-c-xi-async-$runID.txt
38echo "" | ../run_bench.sh -m pair -p 15 -P 31 -l $maxJobs -b sd-vbsNames.txt -B -I xi -A $runID
39date
40
41# Run the Level-A/-B pairs
42echo "Building benchmarks in paired configuration..."
43cd benchmarks
44make CFLAGS=-DPAIRED compile -j30 > /dev/null # Suppress noisy output
45cd ..
46echo "Done. Continuing experiments..."
47# No cache isolation
48pairXI=SD-VBS/$(date +"%b%d-%H")-c-xi-$runID"-A.txt and -B.txt"
49echo "" | ../run_bench.sh -m pair -p 15 -P 31 -l $maxJobs -b sd-vbsNames.txt -B -I xi $runID
50# Shared L2, split L3
51pairI3=SD-VBS/$(date +"%b%d-%H")-c-i3-$runID"-A.txt and -B.txt"
52echo "" | ../run_bench.sh -m pair -p 15 -P 31 -l $maxJobs -b sd-vbsNames.txt -B -I i3 $runID
53# Split L2, split L3
54pairI=SD-VBS/$(date +"%b%d-%H")-c-i-$runID"-A.txt and -B.txt"
55echo "" | ../run_bench.sh -m pair -p 15 -P 31 -l $maxJobs -b sd-vbsNames.txt -B -I i $runID
56date
57
58echo "==== DONE ===="
59echo "Results are in:"
60echo "- $baseXI"
61echo "- $baseI3"
62echo "- $baseI"
63echo "- $pairXI"
64echo "- $pairI3"
65echo "- $pairI"
66echo "- $pairC"
67