summaryrefslogtreecommitdiff
path: root/old/lindy/vm/vmconf.sh
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-01-17 12:45:46 +0100
committerAlex Auvolat <alex@adnab.me>2023-01-17 12:45:46 +0100
commitd47dd5aa3882aea1a8eff4fb9faa4881274559dc (patch)
treeb438c8fb8953b84614c170a5278ae72ece90bb68 /old/lindy/vm/vmconf.sh
parenteaf6d5b07bcdd9a3eb9bfdac93566b7432e46c37 (diff)
downloaduser-config-d47dd5aa3882aea1a8eff4fb9faa4881274559dc.tar.gz
user-config-d47dd5aa3882aea1a8eff4fb9faa4881274559dc.zip
Unify things and rename things
Diffstat (limited to 'old/lindy/vm/vmconf.sh')
-rwxr-xr-xold/lindy/vm/vmconf.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/old/lindy/vm/vmconf.sh b/old/lindy/vm/vmconf.sh
new file mode 100755
index 0000000..c5dfd7f
--- /dev/null
+++ b/old/lindy/vm/vmconf.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+set -x
+
+grep AnonHugePages /proc/meminfo
+
+sudo systemctl set-property --runtime -- user.slice AllowedCPUs=4-7
+sudo systemctl set-property --runtime -- user-1000.slice AllowedCPUs=4-7
+sudo systemctl set-property --runtime -- system.slice AllowedCPUs=4-7
+sudo systemctl set-property --runtime -- systemd-getty.slice AllowedCPUs=4-7
+sudo systemctl set-property --runtime -- init.scope AllowedCPUs=4-7
+
+sudo echo f0 | sudo tee /sys/bus/workqueue/devices/writeback/cpumask
+
+MAX=4
+for i in $(seq $MAX); do
+ echo "== $i/$MAX =="
+ echo 3 | sudo tee /proc/sys/vm/drop_caches
+ echo 1 | sudo tee /proc/sys/vm/compact_memory
+ sleep 5
+ sudo virsh allocpages 2M 3072
+ grep AnonHugePages /proc/meminfo
+done
+
+sudo virsh start win10
+
+systemctl --user restart scream-client
+
+grep AnonHugePages /proc/meminfo
+