From 06f5922da67bb07e5e9ec510766884116b812524 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 11 Nov 2015 04:26:10 +0100 Subject: [PATCH] Adjust dom0 sched-credit weight based on default libvirt value for VMs While default value for VMs is normally 256, libvirt set it to (hardcoded) 1000. So adjust dom0 accordingly. Fixes QubesOS/qubes-issues#1404 --- linux/aux-tools/startup-misc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/aux-tools/startup-misc.sh b/linux/aux-tools/startup-misc.sh index bba40c33..8b5f8081 100755 --- a/linux/aux-tools/startup-misc.sh +++ b/linux/aux-tools/startup-misc.sh @@ -8,7 +8,7 @@ xenstore-write domid 0 DOM0_MAXMEM=`/usr/sbin/xl info | grep total_memory | awk '{ print $3 }'` xenstore-write /local/domain/0/memory/static-max $[ $DOM0_MAXMEM * 1024 ] -xl sched-credit -d 0 -w 512 +xl sched-credit -d 0 -w 2000 cp /var/lib/qubes/qubes.xml /var/lib/qubes/backup/qubes-$(date +%F-%T).xml /usr/lib/qubes/cleanup-dispvms