summaryrefslogtreecommitdiffstats
path: root/run_all_tacle.sh
diff options
context:
space:
mode:
authorleochanj <jbakita@cs.unc.edu>2020-10-23 00:13:06 -0400
committerleochanj <jbakita@cs.unc.edu>2020-10-23 00:13:06 -0400
commitd427b910baffcc330b0b24d87c9b3216f306d0fb (patch)
treeef312bc5757860a03673316be421c1624a5bb6b7 /run_all_tacle.sh
parentb839934c04b214c9bdab399628ee2b94a65bcd10 (diff)
parenta7c3210215bd1181ae93b23c313941dfb44519fb (diff)
merged
Diffstat (limited to 'run_all_tacle.sh')
-rwxr-xr-xrun_all_tacle.sh62
1 files changed, 62 insertions, 0 deletions
diff --git a/run_all_tacle.sh b/run_all_tacle.sh
new file mode 100755
index 0000000..51a9c24
--- /dev/null
+++ b/run_all_tacle.sh
@@ -0,0 +1,62 @@
1#!/bin/bash
2# Copyright 2020 Joshua Bakita
3# Runs TACLeBench 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
20cd baseline
21make all -j32
22# Full L3, full L2 - xi is the baseline for the pairs
23baseXI=baseline/$(date +"%b%d-%H")-c-xi-$runID.txt
24echo "" | ../run_bench.sh -m base -p 15 -l $maxJobs -b tacleNames.txt -B -I xi $runID
25# Half L3, full L2 - i3 sees effect of half L3
26baseI3=baseline/$(date +"%b%d-%H")-c-i3-$runID.txt
27echo "" | ../run_bench.sh -m base -p 15 -l $maxJobs -b tacleNames.txt -B -I i3 $runID
28# Half L3, half L2 - additional effect of half L2
29baseI=baseline/$(date +"%b%d-%H")-c-i-$runID.txt
30echo "" | ../run_bench.sh -m base -p 15 -l $maxJobs -b tacleNames.txt -B -I i $runID
31date
32
33# Run the Level-A/-B pairs
34cd ../all_pairs
35make all -j32
36# No cache isolation
37pairXI=all_pairs/$(date +"%b%d-%H")-c-xi-$runID"-A.txt and -B.txt"
38echo "" | ../run_bench.sh -m pair -p 15 -P 31 -l $maxJobs -b tacleNames.txt -B -I xi $runID
39# Shared L2, split L3
40pairI3=all_pairs/$(date +"%b%d-%H")-c-i3-$runID"-A.txt and -B.txt"
41echo "" | ../run_bench.sh -m pair -p 15 -P 31 -l $maxJobs -b tacleNames.txt -B -I i3 $runID
42# Split L2, split L3
43pairI=all_pairs/$(date +"%b%d-%H")-c-i-$runID"-A.txt and -B.txt"
44echo "" | ../run_bench.sh -m pair -p 15 -P 31 -l $maxJobs -b tacleNames.txt -B -I i $runID
45date
46
47# Run the Level-C pairs
48cd ../baseline
49pairC=baseline/$(date +"%b%d-%H")-c-xi-async-$runID.txt
50echo "" | ../run_bench.sh -m pair -p 15 -P 31 -l $maxJobs -b tacleNames.txt -B -I xi -A $runID
51date
52
53echo "==== DONE ===="
54echo "Results are in:"
55echo "- $baseXI"
56echo "- $baseI3"
57echo "- $baseI"
58echo "- $pairXI"
59echo "- $pairI3"
60echo "- $pairI"
61echo "- $pairC"
62