diff options
author | Alex Auvolat <alex@adnab.me> | 2023-01-17 12:45:46 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-01-17 12:45:46 +0100 |
commit | d47dd5aa3882aea1a8eff4fb9faa4881274559dc (patch) | |
tree | b438c8fb8953b84614c170a5278ae72ece90bb68 /old/lindy/vm/vmunconf.sh | |
parent | eaf6d5b07bcdd9a3eb9bfdac93566b7432e46c37 (diff) | |
download | user-config-d47dd5aa3882aea1a8eff4fb9faa4881274559dc.tar.gz user-config-d47dd5aa3882aea1a8eff4fb9faa4881274559dc.zip |
Unify things and rename things
Diffstat (limited to 'old/lindy/vm/vmunconf.sh')
-rwxr-xr-x | old/lindy/vm/vmunconf.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/old/lindy/vm/vmunconf.sh b/old/lindy/vm/vmunconf.sh new file mode 100755 index 0000000..768ebc1 --- /dev/null +++ b/old/lindy/vm/vmunconf.sh @@ -0,0 +1,17 @@ + +#!/bin/sh + +set -x + +grep AnonHugePages /proc/meminfo + +sudo systemctl set-property --runtime -- user.slice AllowedCPUs=0-7 +sudo systemctl set-property --runtime -- user-1000.slice AllowedCPUs=0-7 +sudo systemctl set-property --runtime -- system.slice AllowedCPUs=0-7 +sudo systemctl set-property --runtime -- systemd-getty.slice AllowedCPUs=0-7 +sudo systemctl set-property --runtime -- init.scope AllowedCPUs=0-7 + +sudo echo ff | sudo tee /sys/bus/workqueue/devices/writeback/cpumask + +sudo virsh allocpages 2M 0 + |