diff options
Diffstat (limited to 'dis/setup_mem_and_global.sh')
| -rwxr-xr-x | dis/setup_mem_and_global.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dis/setup_mem_and_global.sh b/dis/setup_mem_and_global.sh new file mode 100755 index 0000000..56d6219 --- /dev/null +++ b/dis/setup_mem_and_global.sh | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | # Setup group | ||
| 2 | mkdir -p /sys/fs/resctrl/benchmarks | ||
| 3 | echo 15 > /sys/fs/resctrl/benchmarks/cpus_list | ||
| 4 | # Remove mem from global domain | ||
| 5 | echo "L3:0=ffff;1=ffff;2=ffff;3=0000" > /sys/fs/resctrl/schemata | ||
| 6 | # Remove bandwidth from global domain | ||
| 7 | echo "MB:0=2;1=2;2=2;3=2" > /sys/fs/resctrl/schemata | ||
| 8 | echo "MB:0=2048;1=2048;2=2048;3=2048" > /sys/fs/resctrl/benchmarks/schemata | ||
| 9 | echo "=== Global Config ===" | ||
| 10 | cat /sys/fs/resctrl/schemata | ||
| 11 | echo "=== Core 15 Config ===" | ||
| 12 | cat /sys/fs/resctrl/benchmarks/schemata | ||
| 13 | |||
