diff options
Diffstat (limited to 'run_all_dis.sh')
| -rwxr-xr-x | run_all_dis.sh | 19 |
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 | ||
| 6 | maxJobs=$1 | 6 | maxJobs=$1 |
| 7 | runID=$2 | 7 | runID=$2 |
| 8 | coreCPU=${3:-15} | ||
| 9 | threadCPU=${4:-31} | ||
| 8 | 10 | ||
| 9 | if [ $# -lt 2 ]; then | 11 | if [ $# -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 |
| 12 | fi | 15 | fi |
| 13 | if [[ "$EUID" != 0 ]]; then | 16 | if [[ "$EUID" != 0 ]]; then |
| @@ -26,18 +29,18 @@ make baseline -j30 > /dev/null # Suppress noisy output | |||
| 26 | echo "Done. Running experiments..." | 29 | echo "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 |
| 28 | baseXI=dis/$(date +"%b%d-%H")-c-xi-$runID.txt | 31 | baseXI=dis/$(date +"%b%d-%H")-c-xi-$runID.txt |
| 29 | echo "" | ../run_bench.sh -m base -p 15 -l $maxJobs -b dis2MbInNames.txt -B -I xi $runID | 32 | echo "" | ../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 |
| 31 | baseI3=dis/$(date +"%b%d-%H")-c-i3-$runID.txt | 34 | baseI3=dis/$(date +"%b%d-%H")-c-i3-$runID.txt |
| 32 | echo "" | ../run_bench.sh -m base -p 15 -l $maxJobs -b dis2MbInNames.txt -B -I i3 $runID | 35 | echo "" | ../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 |
| 34 | baseI=dis/$(date +"%b%d-%H")-c-i-$runID.txt | 37 | baseI=dis/$(date +"%b%d-%H")-c-i-$runID.txt |
| 35 | echo "" | ../run_bench.sh -m base -p 15 -l $maxJobs -b dis2MbInNames.txt -B -I i $runID | 38 | echo "" | ../run_bench.sh -m base -p $coreCPU -l $maxJobs -b dis2MbInNames.txt -B -I i $runID |
| 36 | date | 39 | date |
| 37 | 40 | ||
| 38 | # Run the Level-C pairs | 41 | # Run the Level-C pairs |
| 39 | pairC=dis/$(date +"%b%d-%H")-c-xi-async-$runID.txt | 42 | pairC=dis/$(date +"%b%d-%H")-c-xi-async-$runID.txt |
| 40 | echo "" | ../run_bench.sh -m pair -p 15 -P 31 -l $maxJobs -b dis2MbInNames.txt -B -I xi -A $runID | 43 | echo "" | ../run_bench.sh -m pair -p $coreCPU -P $threadCPU -l $maxJobs -b dis2MbInNames.txt -B -I xi -A $runID |
| 41 | date | 44 | date |
| 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 | |||
| 46 | echo "Done. Continuing experiments..." | 49 | echo "Done. Continuing experiments..." |
| 47 | # No cache isolation | 50 | # No cache isolation |
| 48 | pairXI=dis/$(date +"%b%d-%H")-c-xi-$runID"-A.txt and -B.txt" | 51 | pairXI=dis/$(date +"%b%d-%H")-c-xi-$runID"-A.txt and -B.txt" |
| 49 | echo "" | ../run_bench.sh -m pair -p 15 -P 31 -l $maxJobs -b disPairs2MbInNames.txt -B -I xi $runID | 52 | echo "" | ../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 |
| 51 | pairI3=dis/$(date +"%b%d-%H")-c-i3-$runID"-A.txt and -B.txt" | 54 | pairI3=dis/$(date +"%b%d-%H")-c-i3-$runID"-A.txt and -B.txt" |
| 52 | echo "" | ../run_bench.sh -m pair -p 15 -P 31 -l $maxJobs -b disPairs2MbInNames.txt -B -I i3 $runID | 55 | echo "" | ../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 |
| 54 | pairI=dis/$(date +"%b%d-%H")-c-i-$runID"-A.txt and -B.txt" | 57 | pairI=dis/$(date +"%b%d-%H")-c-i-$runID"-A.txt and -B.txt" |
| 55 | echo "" | ../run_bench.sh -m pair -p 15 -P 31 -l $maxJobs -b disPairs2MbInNames.txt -B -I i $runID | 58 | echo "" | ../run_bench.sh -m pair -p $coreCPU -P $threadCPU -l $maxJobs -b disPairs2MbInNames.txt -B -I i $runID |
| 56 | date | 59 | date |
| 57 | 60 | ||
| 58 | echo "==== DONE ====" | 61 | echo "==== DONE ====" |
