diff options
| author | leochanj105 <leochanj@live.unc.edu> | 2020-10-23 02:12:49 -0400 |
|---|---|---|
| committer | leochanj105 <leochanj@live.unc.edu> | 2020-10-23 02:12:49 -0400 |
| commit | e23e931be4776b89149fdb2596f47096e6cdb78c (patch) | |
| tree | faf3963cc501f103cd2554553ec74ce21157b42e /run_dis_cache_vs_wss.sh | |
| parent | e2d933df44b7b387b41c8c7805393ad3857c4448 (diff) | |
| parent | e0217a963c6c0e0667d41d075038685956bcfacf (diff) | |
Merge branch 'sd-vbs' of ssh://rtsrv.cs.unc.edu/public/mc2-scripts-and-benchmarks into sd-vbs
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 | ||
