diff options
Diffstat (limited to 'run_dis_cache_vs_wss.sh')
| -rwxr-xr-x | run_dis_cache_vs_wss.sh | 69 |
1 files changed, 69 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..46a12ff --- /dev/null +++ b/run_dis_cache_vs_wss.sh | |||
| @@ -0,0 +1,69 @@ | |||
| 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 | # Consider re-enabling this only if you're interested in exploring bandwidth effects | ||
| 22 | #./setup_mem_and_global.sh | ||
| 23 | if [[ $1 == "--contend" ]]; then | ||
| 24 | echo "Will run 6 contending tasks" | ||
| 25 | echo "Files will be named $datestring-<benchmark name>-10-c-"$iso".txt" | ||
| 26 | echo "Please verify the above settings. Press enter to continue..." | ||
| 27 | read | ||
| 28 | echo "field" > /tmp/disNames.txt | ||
| 29 | ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 field-10 | ||
| 30 | ./postproc.sh $datestring-field-10-c-$iso | ||
| 31 | echo "matrix" > /tmp/disNames.txt | ||
| 32 | ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 matrix-10 | ||
| 33 | ./postproc.sh $datestring-matrix-10-c-$iso | ||
| 34 | echo "neighborhood" > /tmp/disNames.txt | ||
| 35 | ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 neighborhood-10 | ||
| 36 | ./postproc.sh $datestring-neighborhood-10-c-$iso | ||
| 37 | echo "pointer" > /tmp/disNames.txt | ||
| 38 | ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 pointer-10 | ||
| 39 | ./postproc.sh $datestring-pointer-10-c-$iso | ||
| 40 | echo "transitive" > /tmp/disNames.txt | ||
| 41 | ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 transitive-10 | ||
| 42 | ./postproc.sh $datestring-transitive-10-c-$iso | ||
| 43 | echo "update" > /tmp/disNames.txt | ||
| 44 | ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 update-10 | ||
| 45 | ./postproc.sh $datestring-update-10-c-$iso | ||
| 46 | else | ||
| 47 | echo "Will run no contending tasks (use --contend for contending tasks)" | ||
| 48 | echo "Files will be named $datestring-<benchmark name>-10-xc-"$iso".txt" | ||
| 49 | echo "Please verify the above settings. Press enter to continue..." | ||
| 50 | read | ||
| 51 | echo "field" > /tmp/disNames.txt | ||
| 52 | ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 field-10 | ||
| 53 | ./postproc.sh $datestring-field-10-xc-$iso | ||
| 54 | echo "matrix" > /tmp/disNames.txt | ||
| 55 | ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 matrix-10 | ||
| 56 | ./postproc.sh $datestring-matrix-10-xc-$iso | ||
| 57 | echo "neighborhood" > /tmp/disNames.txt | ||
| 58 | ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 neighborhood-10 | ||
| 59 | ./postproc.sh $datestring-neighborhood-10-xc-$iso | ||
| 60 | echo "pointer" > /tmp/disNames.txt | ||
| 61 | ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 pointer-10 | ||
| 62 | ./postproc.sh $datestring-pointer-10-xc-$iso | ||
| 63 | echo "transitive" > /tmp/disNames.txt | ||
| 64 | ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 transitive-10 | ||
| 65 | ./postproc.sh $datestring-transitive-10-xc-$iso | ||
| 66 | echo "update" > /tmp/disNames.txt | ||
| 67 | ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 update-10 | ||
| 68 | ./postproc.sh $datestring-update-10-xc-$iso | ||
| 69 | fi | ||
