summaryrefslogtreecommitdiffstats
path: root/dis/setup_mem_and_global.sh
diff options
context:
space:
mode:
authorJoshua Bakita <jbakita@cs.unc.edu>2020-10-17 21:22:08 -0400
committerJoshua Bakita <jbakita@cs.unc.edu>2020-10-17 21:30:01 -0400
commitecf6547fdce39b3ec0f333c9b391b0f1c25deba5 (patch)
treec6f25afe348be22172bed024ffe8881323e74aaf /dis/setup_mem_and_global.sh
parent1120161286ee5c855b630bccc9e0b37bb8a3ee65 (diff)
All the DIS runner scripts as used for the (rejected) RTSS'20 submission
DANGER! There's an inconsistency in the input files used for the all-pairs tests and those used for the baseline tests. Baselines: run_all_dis.sh calls run_dis.sh to do all baselines. All-pairs: Uses old TACLe script (not included here). Cache allocation 2nd-order effects on SMT friendliness: run_pair_convexity.sh
Diffstat (limited to 'dis/setup_mem_and_global.sh')
-rwxr-xr-xdis/setup_mem_and_global.sh19
1 files changed, 14 insertions, 5 deletions
diff --git a/dis/setup_mem_and_global.sh b/dis/setup_mem_and_global.sh
index 56d6219..6bddb2f 100755
--- a/dis/setup_mem_and_global.sh
+++ b/dis/setup_mem_and_global.sh
@@ -1,13 +1,22 @@
1# Setup group 1# Setup group
2mount -t resctrl resctrl /sys/fs/resctrl
2mkdir -p /sys/fs/resctrl/benchmarks 3mkdir -p /sys/fs/resctrl/benchmarks
3echo 15 > /sys/fs/resctrl/benchmarks/cpus_list 4echo 15 > /sys/fs/resctrl/benchmarks/cpus_list
4# Remove mem from global domain 5echo 31 > /sys/fs/resctrl/benchmarks/cpus_list
6# Remove mem from global domain and assign to local
5echo "L3:0=ffff;1=ffff;2=ffff;3=0000" > /sys/fs/resctrl/schemata 7echo "L3:0=ffff;1=ffff;2=ffff;3=0000" > /sys/fs/resctrl/schemata
6# Remove bandwidth from global domain 8echo "L3:0=ffff;1=ffff;2=ffff;3=ffff" > /sys/fs/resctrl/benchmarks/schemata
7echo "MB:0=2;1=2;2=2;3=2" > /sys/fs/resctrl/schemata 9if [[ $1 == "--bandwith" ]]; then
8echo "MB:0=2048;1=2048;2=2048;3=2048" > /sys/fs/resctrl/benchmarks/schemata 10 # Remove bandwidth from global domain
11 echo "MB:0=2;1=2;2=2;3=2" > /sys/fs/resctrl/schemata
12 echo "MB:0=2048;1=2048;2=2048;3=2048" > /sys/fs/resctrl/benchmarks/schemata
13else
14 # Disable bandwidth control
15 echo "MB:0=2048;1=2048;2=2048;3=2048" > /sys/fs/resctrl/schemata
16 echo "MB:0=2048;1=2048;2=2048;3=2048" > /sys/fs/resctrl/benchmarks/schemata
17fi
9echo "=== Global Config ===" 18echo "=== Global Config ==="
10cat /sys/fs/resctrl/schemata 19cat /sys/fs/resctrl/schemata
11echo "=== Core 15 Config ===" 20echo "=== Core 15 & 31 Config ==="
12cat /sys/fs/resctrl/benchmarks/schemata 21cat /sys/fs/resctrl/benchmarks/schemata
13 22