summaryrefslogtreecommitdiffstats
path: root/run_all_dis.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run_all_dis.sh')
-rwxr-xr-xrun_all_dis.sh64
1 files changed, 64 insertions, 0 deletions
diff --git a/run_all_dis.sh b/run_all_dis.sh
new file mode 100755
index 0000000..588538d
--- /dev/null
+++ b/run_all_dis.sh
@@ -0,0 +1,64 @@
1#!/bin/bash
2# Copyright 2020 Joshua Bakita
3# Runs DIS 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 dis
22make baseline -j30 > /dev/null # Suppress noisy output
23echo "Done. Running experiments..."
24# Full L3, full L2 - xi is the baseline for the pairs
25baseXI=dis/$(date +"%b%d-%H")-c-xi-$runID.txt
26echo "" | ../run_bench.sh -m base -p 15 -l $maxJobs -b dis2MbInNames.txt -B -I xi $runID
27# Half L3, full L2 - i3 sees effect of half L3
28baseI3=dis/$(date +"%b%d-%H")-c-i3-$runID.txt
29echo "" | ../run_bench.sh -m base -p 15 -l $maxJobs -b dis2MbInNames.txt -B -I i3 $runID
30# Half L3, half L2 - additional effect of half L2
31baseI=dis/$(date +"%b%d-%H")-c-i-$runID.txt
32echo "" | ../run_bench.sh -m base -p 15 -l $maxJobs -b dis2MbInNames.txt -B -I i $runID
33date
34
35# Run the Level-C pairs
36pairC=dis/$(date +"%b%d-%H")-c-xi-async-$runID.txt
37echo "" | ../run_bench.sh -m pair -p 15 -P 31 -l $maxJobs -b dis2MbInNames.txt -B -I xi -A $runID
38date
39
40# Run the Level-A/-B pairs
41echo "Building benchmarks in paired configuration..."
42make pairs -j30 > /dev/null # Suppress noisy output
43echo "Done. Continuing experiments..."
44# No cache isolation
45pairXI=dis/$(date +"%b%d-%H")-c-xi-$runID"-A.txt and -B.txt"
46echo "" | ../run_bench.sh -m pair -p 15 -P 31 -l $maxJobs -b disPairs2MbInNames.txt -B -I xi $runID
47# Shared L2, split L3
48pairI3=dis/$(date +"%b%d-%H")-c-i3-$runID"-A.txt and -B.txt"
49echo "" | ../run_bench.sh -m pair -p 15 -P 31 -l $maxJobs -b disPairs2MbInNames.txt -B -I i3 $runID
50# Split L2, split L3
51pairI=dis/$(date +"%b%d-%H")-c-i-$runID"-A.txt and -B.txt"
52echo "" | ../run_bench.sh -m pair -p 15 -P 31 -l $maxJobs -b disPairs2MbInNames.txt -B -I i $runID
53date
54
55echo "==== DONE ===="
56echo "Results are in:"
57echo "- $baseXI"
58echo "- $baseI3"
59echo "- $baseI"
60echo "- $pairXI"
61echo "- $pairI3"
62echo "- $pairI"
63echo "- $pairC"
64