Skip to content

Commit 0caeb9f

Browse files
committed
Increase dom0 scheduling weight
Dom0 is responsible for the UI and for critical background activities. In particular, it is on the critical path for VM start. Therefore, it should be prioritized over all other VMs to avoid priority inversion. Dom0 has been intended to have additional credit since a179894 ("Initial public commit."), but nowadays Xen uses the credit2 scheduler, so changing the parameters of the credit scheduler has no effect. Fixes: QubesOS/qubes-issues#10778 Fixes: a179894 ("Initial public commit.")
1 parent 53ca30f commit 0caeb9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

linux/aux-tools/startup-misc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
DOM0_MAXMEM=$(/usr/sbin/xl list 0 | tail -1 | awk '{ print $3 }')
77
xenstore-write /local/domain/0/memory/static-max $[ $DOM0_MAXMEM * 1024 ]
88

9-
xl sched-credit -d 0 -w 2000
9+
xl sched-credit2 -d 0 -w 2000
1010
cp /var/lib/qubes/qubes.xml /var/lib/qubes/backup/qubes-$(date +%F-%T).xml
1111

1212
/usr/lib/qubes/cleanup-dispvms

0 commit comments

Comments
 (0)