blob: 6770c558850435825befedb51520faf5a63f441e (
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
|
#!/bin/bash
# Copyright 2020 Joshua Bakita
# This script runs the baselines and Level-A/B and Level-C all_pairs for TACLe w/out MC^2
if uname -a | grep -q mc2; then
echo "You need to run this without MC^2!"
exit
fi
if [ "$EUID" -ne 0 ]; then
echo "You need to be root to enable interrupt isolation and real-time execution!"
exit
fi
echo "This will run the contended and uncontended TACLe baseline, all-pairs, and Level-C micro-benchamarks in non-interactive mode."
echo "Please press enter to confirm (Ctrl-C to abort)..."
read
echo "performance" > /sys/devices/system/cpu/cpu15/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu31/cpufreq/scaling_governor
cd baseline
baseNo=baseline/$(date +"%b%d-%H")-xc-xi-1k.txt
echo "" | ./run_baseline.sh 15 1001 1k ../all_pairs/tacleNames.txt
baseYes=baseline/$(date +"%b%d-%H")-c-xi-1k.txt
echo "" | ./run_baseline.sh 15 1001 1k ../all_pairs/tacleNames.txt --contend
cd ../all_pairs
pairsNo=all_pairs/$(date +"%b%d-%H")-xc-xi-1k
echo "" | ./run_all_pairs.sh 15 31 1001 1k ./tacleNames.txt
pairsYes=all_pairs/$(date +"%b%d-%H")-c-xi-1k
echo "" | ./run_all_pairs.sh 15 31 1001 1k ./tacleNames.txt --contend
cd ../baseline
echo "" | ../smt_analysis_rtss20/run_all_pairs_Level-C_TACLe.sh 15 31 1001 1k ./tacleNames.txt
cNo=all_pairs/$(date +"%b%d-%H")-xc-xi-1k-LC-TACLe.txt
echo "" | ../smt_analysis_rtss20/run_all_pairs_Level-C_TACLe.sh 15 31 1001 1k ./tacleNames.txt --contend
cYes=all_pairs/$(date +"%b%d-%H")-c-xi-1k-LC-TACLe.txt
echo "==== DONE ==="
echo "Results are in:"
echo "- "$baseNo
echo "- "$baseYes
echo "- "$pairsNo" (A/B)"
echo "- "$pairsYes" (A/B)"
echo "- "$cNo
echo "- "$cYes
|