summaryrefslogtreecommitdiffstats
path: root/dis
diff options
context:
space:
mode:
Diffstat (limited to 'dis')
-rwxr-xr-xdis/setup_mem_and_global.sh22
1 files changed, 0 insertions, 22 deletions
diff --git a/dis/setup_mem_and_global.sh b/dis/setup_mem_and_global.sh
deleted file mode 100755
index 6bddb2f..0000000
--- a/dis/setup_mem_and_global.sh
+++ /dev/null
@@ -1,22 +0,0 @@
1# Setup group
2mount -t resctrl resctrl /sys/fs/resctrl
3mkdir -p /sys/fs/resctrl/benchmarks
4echo 15 > /sys/fs/resctrl/benchmarks/cpus_list
5echo 31 > /sys/fs/resctrl/benchmarks/cpus_list
6# Remove mem from global domain and assign to local
7echo "L3:0=ffff;1=ffff;2=ffff;3=0000" > /sys/fs/resctrl/schemata
8echo "L3:0=ffff;1=ffff;2=ffff;3=ffff" > /sys/fs/resctrl/benchmarks/schemata
9if [[ $1 == "--bandwith" ]]; then
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
18echo "=== Global Config ==="
19cat /sys/fs/resctrl/schemata
20echo "=== Core 15 & 31 Config ==="
21cat /sys/fs/resctrl/benchmarks/schemata
22