diff options
| author | leochanj <jbakita@cs.unc.edu> | 2020-10-23 00:13:06 -0400 |
|---|---|---|
| committer | leochanj <jbakita@cs.unc.edu> | 2020-10-23 00:13:06 -0400 |
| commit | d427b910baffcc330b0b24d87c9b3216f306d0fb (patch) | |
| tree | ef312bc5757860a03673316be421c1624a5bb6b7 /run_dis_cache_vs_wss.sh | |
| parent | b839934c04b214c9bdab399628ee2b94a65bcd10 (diff) | |
| parent | a7c3210215bd1181ae93b23c313941dfb44519fb (diff) | |
merged
Diffstat (limited to 'run_dis_cache_vs_wss.sh')
| -rwxr-xr-x | run_dis_cache_vs_wss.sh | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/run_dis_cache_vs_wss.sh b/run_dis_cache_vs_wss.sh new file mode 100755 index 0000000..2a7991e --- /dev/null +++ b/run_dis_cache_vs_wss.sh | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | # Run baselines for all the DIS tasks | ||
| 3 | if [ "$EUID" -ne 0 ] | ||
| 4 | then | ||
| 5 | echo "You need to be root to enable cache way and interrupt isolation!" | ||
| 6 | exit | ||
| 7 | fi | ||
| 8 | |||
| 9 | if uname -a | grep -q "mc2"; then | ||
| 10 | echo "MC^2 detected! Cache isolation will be enabled" | ||
| 11 | iso="i" | ||
| 12 | else | ||
| 13 | echo "MC^2 not detected." | ||
| 14 | iso="xi" | ||
| 15 | fi | ||
| 16 | |||
| 17 | cd dis | ||
| 18 | |||
| 19 | WSSS=WSSS_maxstride2mb | ||
| 20 | caches=caches_all | ||
| 21 | if [[ $1 == "--contend" ]]; then | ||
| 22 | echo "Will run 6 contending tasks" | ||
| 23 | echo "Files will be named $datestring-<benchmark name>-10-c-"$iso".txt" | ||
| 24 | echo "Please verify the above settings. Press enter to continue..." | ||
| 25 | read | ||
| 26 | echo "field" > /tmp/disNames.txt | ||
| 27 | ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 field-10 | ||
| 28 | ./postproc.sh $datestring-field-10-c-$iso | ||
| 29 | echo "matrix" > /tmp/disNames.txt | ||
| 30 | ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 matrix-10 | ||
| 31 | ./postproc.sh $datestring-matrix-10-c-$iso | ||
| 32 | echo "neighborhood" > /tmp/disNames.txt | ||
| 33 | ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 neighborhood-10 | ||
| 34 | ./postproc.sh $datestring-neighborhood-10-c-$iso | ||
| 35 | echo "pointer" > /tmp/disNames.txt | ||
| 36 | ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 pointer-10 | ||
| 37 | ./postproc.sh $datestring-pointer-10-c-$iso | ||
| 38 | echo "transitive" > /tmp/disNames.txt | ||
| 39 | ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 transitive-10 | ||
| 40 | ./postproc.sh $datestring-transitive-10-c-$iso | ||
| 41 | echo "update" > /tmp/disNames.txt | ||
| 42 | ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 update-10 | ||
| 43 | ./postproc.sh $datestring-update-10-c-$iso | ||
| 44 | else | ||
| 45 | echo "Will run no contending tasks (use --contend for contending tasks)" | ||
| 46 | echo "Files will be named $datestring-<benchmark name>-10-xc-"$iso".txt" | ||
| 47 | echo "Please verify the above settings. Press enter to continue..." | ||
| 48 | read | ||
| 49 | echo "field" > /tmp/disNames.txt | ||
| 50 | ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 field-10 | ||
| 51 | ./postproc.sh $datestring-field-10-xc-$iso | ||
| 52 | echo "matrix" > /tmp/disNames.txt | ||
| 53 | ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 matrix-10 | ||
| 54 | ./postproc.sh $datestring-matrix-10-xc-$iso | ||
| 55 | echo "neighborhood" > /tmp/disNames.txt | ||
| 56 | ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 neighborhood-10 | ||
| 57 | ./postproc.sh $datestring-neighborhood-10-xc-$iso | ||
| 58 | echo "pointer" > /tmp/disNames.txt | ||
| 59 | ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 pointer-10 | ||
| 60 | ./postproc.sh $datestring-pointer-10-xc-$iso | ||
| 61 | echo "transitive" > /tmp/disNames.txt | ||
| 62 | ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 transitive-10 | ||
| 63 | ./postproc.sh $datestring-transitive-10-xc-$iso | ||
| 64 | echo "update" > /tmp/disNames.txt | ||
| 65 | ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 update-10 | ||
| 66 | ./postproc.sh $datestring-update-10-xc-$iso | ||
| 67 | fi | ||
