summaryrefslogtreecommitdiffstats
path: root/run_all_dis.sh
blob: 5a6b6e13c1f96a6e6bfee9397aa861886d3006de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/bash
# Run baselines for all the DIS tasks
if [ "$EUID" -ne 0 ]
then
    echo "You need to be root to enable cache way and interrupt isolation!"
    exit
fi

if uname -a | grep -q "mc2"; then
    echo "MC^2 detected! Cache isolation will be enabled"
    iso="i"
else
    echo "MC^2 not detected."
    iso="xi"
fi

datestring=$(date +"%b%d-%H")
if ! grep -q irqaffinity /proc/cmdline; then
    /playpen/move_interrupts_off_core15.sh
else
    echo "performance" > /sys/devices/system/cpu/cpu15/cpufreq/scaling_governor
fi
WSSS=WSSS_maxstride2mb
caches=caches_all
# Consider re-enabling this only if you're interested in exploring bandwidth effects
#./setup_mem_and_global.sh
if [[ $1 == "--contend" ]]; then
    echo "Will run 6 contending tasks"
    echo "Files will be named $datestring-<benchmark name>-c-"$iso".txt"
    echo "Please verify the above settings. Press enter to continue..."
    read
    # Run two contending tasks on each other CCX
    taskset -c 1 /playpen/mc2/imx6q-thrasher/thrasher &
    taskset -c 2 /playpen/mc2/imx6q-thrasher/thrasher &
    taskset -c 5 /playpen/mc2/imx6q-thrasher/thrasher &
    taskset -c 6 /playpen/mc2/imx6q-thrasher/thrasher &
    taskset -c 9 /playpen/mc2/imx6q-thrasher/thrasher &
    taskset -c 10 /playpen/mc2/imx6q-thrasher/thrasher &
    ./run_dis.sh 15 10 $datestring-field-c-$iso Field inputs/Field/in0 inputs/$WSSS inputs/$caches
    ./postproc.sh $datestring-field-c-$iso
    ./run_dis.sh 15 10 $datestring-matrix-c-$iso Matrix inputs/Matrix/in0 inputs/$WSSS inputs/$caches
    ./postproc.sh $datestring-matrix-c-$iso
    ./run_dis.sh 15 10 $datestring-neighborhood-c-$iso Neighborhood inputs/Neighborhood/in0 inputs/$WSSS inputs/$caches
    ./postproc.sh $datestring-neighborhood-c-$iso
    ./run_dis.sh 15 10 $datestring-pointer-c-$iso Pointer inputs/Pointer/in0 inputs/$WSSS inputs/$caches
    ./postproc.sh $datestring-pointer-c-$iso
    ./run_dis.sh 15 10 $datestring-transitive-c-$iso Transitive inputs/Transitive/in0 inputs/$WSSS inputs/$caches
    ./postproc.sh $datestring-transitive-c-$iso
    ./run_dis.sh 15 10 $datestring-update-c-$iso Update inputs/Update/in0 inputs/$WSSS inputs/$caches
    ./postproc.sh $datestring-update-c-$iso
    killall thrasher
else
    echo "Will run no contending tasks (use --contend for contending tasks)"
    echo "Files will be named $datestring-<benchmark name>-xc-"$iso".txt"
    echo "Please verify the above settings. Press enter to continue..."
    read
    killall thrasher
    ./run_dis.sh 15 10 $datestring-field-xc-$iso Field inputs/Field/in0 inputs/$WSSS inputs/$caches
    ./postproc.sh $datestring-field-xc-$iso
    ./run_dis.sh 15 10 $datestring-matrix-xc-$iso Matrix inputs/Matrix/in0 inputs/$WSSS inputs/$caches
    ./postproc.sh $datestring-matrix-xc-$iso
    ./run_dis.sh 15 10 $datestring-neighborhood-xc-$iso Neighborhood inputs/Neighborhood/in0 inputs/$WSSS inputs/$caches
    ./postproc.sh $datestring-neighborhood-xc-$iso
    ./run_dis.sh 15 10 $datestring-pointer-xc-$iso Pointer inputs/Pointer/in0 inputs/$WSSS inputs/$caches
    ./postproc.sh $datestring-pointer-xc-$iso
    ./run_dis.sh 15 10 $datestring-transitive-xc-$iso Transitive inputs/Transitive/in0 inputs/$WSSS inputs/$caches
    ./postproc.sh $datestring-transitive-xc-$iso
    ./run_dis.sh 15 10 $datestring-update-xc-$iso Update inputs/Update/in0 inputs/$WSSS inputs/$caches
    ./postproc.sh $datestring-update-xc-$iso
fi