summaryrefslogtreecommitdiff
path: root/old/lindy/vm/vmunconf.sh
blob: 768ebc1519a1879c82cfb1fc47c96a26597aeac7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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