diff options
| author | leochanj105 <leochanj@live.unc.edu> | 2020-10-20 21:55:11 -0400 |
|---|---|---|
| committer | leochanj105 <leochanj@live.unc.edu> | 2020-10-20 21:55:11 -0400 |
| commit | e2d933df44b7b387b41c8c7805393ad3857c4448 (patch) | |
| tree | 35cbeee7b13ff92e3cb09e2bef5128a558ec39f1 /run_all_dis.sh | |
| parent | a32f220f06cc463e5b56e7fa0b1b1334d94d08f3 (diff) | |
| parent | e2b50015cebdfba68699abd6e8575e38230f5a78 (diff) | |
Merge branch 'sd-vbs' of ssh://rtsrv.cs.unc.edu/public/mc2-scripts-and-benchmarks into sd-vbs
Diffstat (limited to 'run_all_dis.sh')
| -rwxr-xr-x | run_all_dis.sh | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/run_all_dis.sh b/run_all_dis.sh new file mode 100755 index 0000000..5a6b6e1 --- /dev/null +++ b/run_all_dis.sh | |||
| @@ -0,0 +1,70 @@ | |||
| 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 | datestring=$(date +"%b%d-%H") | ||
| 18 | if ! grep -q irqaffinity /proc/cmdline; then | ||
| 19 | /playpen/move_interrupts_off_core15.sh | ||
| 20 | else | ||
| 21 | echo "performance" > /sys/devices/system/cpu/cpu15/cpufreq/scaling_governor | ||
| 22 | fi | ||
| 23 | WSSS=WSSS_maxstride2mb | ||
| 24 | caches=caches_all | ||
| 25 | # Consider re-enabling this only if you're interested in exploring bandwidth effects | ||
| 26 | #./setup_mem_and_global.sh | ||
| 27 | if [[ $1 == "--contend" ]]; then | ||
| 28 | echo "Will run 6 contending tasks" | ||
| 29 | echo "Files will be named $datestring-<benchmark name>-c-"$iso".txt" | ||
| 30 | echo "Please verify the above settings. Press enter to continue..." | ||
| 31 | read | ||
| 32 | # Run two contending tasks on each other CCX | ||
| 33 | taskset -c 1 /playpen/mc2/imx6q-thrasher/thrasher & | ||
| 34 | taskset -c 2 /playpen/mc2/imx6q-thrasher/thrasher & | ||
| 35 | taskset -c 5 /playpen/mc2/imx6q-thrasher/thrasher & | ||
| 36 | taskset -c 6 /playpen/mc2/imx6q-thrasher/thrasher & | ||
| 37 | taskset -c 9 /playpen/mc2/imx6q-thrasher/thrasher & | ||
| 38 | taskset -c 10 /playpen/mc2/imx6q-thrasher/thrasher & | ||
| 39 | ./run_dis.sh 15 10 $datestring-field-c-$iso Field inputs/Field/in0 inputs/$WSSS inputs/$caches | ||
| 40 | ./postproc.sh $datestring-field-c-$iso | ||
| 41 | ./run_dis.sh 15 10 $datestring-matrix-c-$iso Matrix inputs/Matrix/in0 inputs/$WSSS inputs/$caches | ||
| 42 | ./postproc.sh $datestring-matrix-c-$iso | ||
| 43 | ./run_dis.sh 15 10 $datestring-neighborhood-c-$iso Neighborhood inputs/Neighborhood/in0 inputs/$WSSS inputs/$caches | ||
| 44 | ./postproc.sh $datestring-neighborhood-c-$iso | ||
| 45 | ./run_dis.sh 15 10 $datestring-pointer-c-$iso Pointer inputs/Pointer/in0 inputs/$WSSS inputs/$caches | ||
| 46 | ./postproc.sh $datestring-pointer-c-$iso | ||
| 47 | ./run_dis.sh 15 10 $datestring-transitive-c-$iso Transitive inputs/Transitive/in0 inputs/$WSSS inputs/$caches | ||
| 48 | ./postproc.sh $datestring-transitive-c-$iso | ||
| 49 | ./run_dis.sh 15 10 $datestring-update-c-$iso Update inputs/Update/in0 inputs/$WSSS inputs/$caches | ||
| 50 | ./postproc.sh $datestring-update-c-$iso | ||
| 51 | killall thrasher | ||
| 52 | else | ||
| 53 | echo "Will run no contending tasks (use --contend for contending tasks)" | ||
| 54 | echo "Files will be named $datestring-<benchmark name>-xc-"$iso".txt" | ||
| 55 | echo "Please verify the above settings. Press enter to continue..." | ||
| 56 | read | ||
| 57 | killall thrasher | ||
| 58 | ./run_dis.sh 15 10 $datestring-field-xc-$iso Field inputs/Field/in0 inputs/$WSSS inputs/$caches | ||
| 59 | ./postproc.sh $datestring-field-xc-$iso | ||
| 60 | ./run_dis.sh 15 10 $datestring-matrix-xc-$iso Matrix inputs/Matrix/in0 inputs/$WSSS inputs/$caches | ||
| 61 | ./postproc.sh $datestring-matrix-xc-$iso | ||
| 62 | ./run_dis.sh 15 10 $datestring-neighborhood-xc-$iso Neighborhood inputs/Neighborhood/in0 inputs/$WSSS inputs/$caches | ||
| 63 | ./postproc.sh $datestring-neighborhood-xc-$iso | ||
| 64 | ./run_dis.sh 15 10 $datestring-pointer-xc-$iso Pointer inputs/Pointer/in0 inputs/$WSSS inputs/$caches | ||
| 65 | ./postproc.sh $datestring-pointer-xc-$iso | ||
| 66 | ./run_dis.sh 15 10 $datestring-transitive-xc-$iso Transitive inputs/Transitive/in0 inputs/$WSSS inputs/$caches | ||
| 67 | ./postproc.sh $datestring-transitive-xc-$iso | ||
| 68 | ./run_dis.sh 15 10 $datestring-update-xc-$iso Update inputs/Update/in0 inputs/$WSSS inputs/$caches | ||
| 69 | ./postproc.sh $datestring-update-xc-$iso | ||
| 70 | fi | ||
