summaryrefslogtreecommitdiffstats
path: root/run_all_dis.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run_all_dis.sh')
-rwxr-xr-xrun_all_dis.sh19
1 files changed, 11 insertions, 8 deletions
diff --git a/run_all_dis.sh b/run_all_dis.sh
index 3907789..4022c88 100755
--- a/run_all_dis.sh
+++ b/run_all_dis.sh
@@ -5,9 +5,12 @@
5 5
6maxJobs=$1 6maxJobs=$1
7runID=$2 7runID=$2
8coreCPU=${3:-15}
9threadCPU=${4:-31}
8 10
9if [ $# -lt 2 ]; then 11if [ $# -lt 2 ]; then
10 echo "Usage $0 <number of iterations> <run ID>" 12 echo "Usage $0 <number of iterations> <run ID> <core CPU ID> <thread CPU ID>"
13 echo "CPU IDs are optional, otherwise assumed to be 15 and 31 respectively."
11 exit 14 exit
12fi 15fi
13if [[ "$EUID" != 0 ]]; then 16if [[ "$EUID" != 0 ]]; then
@@ -26,18 +29,18 @@ make baseline -j30 > /dev/null # Suppress noisy output
26echo "Done. Running experiments..." 29echo "Done. Running experiments..."
27# Full L3, full L2 - xi is the baseline for the pairs 30# Full L3, full L2 - xi is the baseline for the pairs
28baseXI=dis/$(date +"%b%d-%H")-c-xi-$runID.txt 31baseXI=dis/$(date +"%b%d-%H")-c-xi-$runID.txt
29echo "" | ../run_bench.sh -m base -p 15 -l $maxJobs -b dis2MbInNames.txt -B -I xi $runID 32echo "" | ../run_bench.sh -m base -p $coreCPU -l $maxJobs -b dis2MbInNames.txt -B -I xi $runID
30# Half L3, full L2 - i3 sees effect of half L3 33# Half L3, full L2 - i3 sees effect of half L3
31baseI3=dis/$(date +"%b%d-%H")-c-i3-$runID.txt 34baseI3=dis/$(date +"%b%d-%H")-c-i3-$runID.txt
32echo "" | ../run_bench.sh -m base -p 15 -l $maxJobs -b dis2MbInNames.txt -B -I i3 $runID 35echo "" | ../run_bench.sh -m base -p $coreCPU -l $maxJobs -b dis2MbInNames.txt -B -I i3 $runID
33# Half L3, half L2 - additional effect of half L2 36# Half L3, half L2 - additional effect of half L2
34baseI=dis/$(date +"%b%d-%H")-c-i-$runID.txt 37baseI=dis/$(date +"%b%d-%H")-c-i-$runID.txt
35echo "" | ../run_bench.sh -m base -p 15 -l $maxJobs -b dis2MbInNames.txt -B -I i $runID 38echo "" | ../run_bench.sh -m base -p $coreCPU -l $maxJobs -b dis2MbInNames.txt -B -I i $runID
36date 39date
37 40
38# Run the Level-C pairs 41# Run the Level-C pairs
39pairC=dis/$(date +"%b%d-%H")-c-xi-async-$runID.txt 42pairC=dis/$(date +"%b%d-%H")-c-xi-async-$runID.txt
40echo "" | ../run_bench.sh -m pair -p 15 -P 31 -l $maxJobs -b dis2MbInNames.txt -B -I xi -A $runID 43echo "" | ../run_bench.sh -m pair -p $coreCPU -P $threadCPU -l $maxJobs -b dis2MbInNames.txt -B -I xi -A $runID
41date 44date
42 45
43# Run the Level-A/-B pairs 46# Run the Level-A/-B pairs
@@ -46,13 +49,13 @@ make pairs -j30 > /dev/null # Suppress noisy output
46echo "Done. Continuing experiments..." 49echo "Done. Continuing experiments..."
47# No cache isolation 50# No cache isolation
48pairXI=dis/$(date +"%b%d-%H")-c-xi-$runID"-A.txt and -B.txt" 51pairXI=dis/$(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 disPairs2MbInNames.txt -B -I xi $runID 52echo "" | ../run_bench.sh -m pair -p $coreCPU -P $threadCPU -l $maxJobs -b disPairs2MbInNames.txt -B -I xi $runID
50# Shared L2, split L3 53# Shared L2, split L3
51pairI3=dis/$(date +"%b%d-%H")-c-i3-$runID"-A.txt and -B.txt" 54pairI3=dis/$(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 disPairs2MbInNames.txt -B -I i3 $runID 55echo "" | ../run_bench.sh -m pair -p $coreCPU -P $threadCPU -l $maxJobs -b disPairs2MbInNames.txt -B -I i3 $runID
53# Split L2, split L3 56# Split L2, split L3
54pairI=dis/$(date +"%b%d-%H")-c-i-$runID"-A.txt and -B.txt" 57pairI=dis/$(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 disPairs2MbInNames.txt -B -I i $runID 58echo "" | ../run_bench.sh -m pair -p $coreCPU -P $threadCPU -l $maxJobs -b disPairs2MbInNames.txt -B -I i $runID
56date 59date
57 60
58echo "==== DONE ====" 61echo "==== DONE ===="