[XEN] On guaranteed cpu power to VMs
From rhel5 mailing list:
Q: I want to control that a certain VM is for example limited to 60% of total CPU power, another is limited to 20%, and another to 20%. In case of no cpu contention, one VM could take up to 100% of CPU power. Does such a facility exist ?
A: You can also control the amount of CPU power a domain is guaranteed to get via the xm sched-credit command. You assign weights to domains, which are relative. For example if Dom1 and Dom2 should get both 30 percent and Dom0 should get 40, you would set it for example thus:
xm sched-credit -d Dom1 -w 300
xm sched-credit -d Dom2 -w 300
xm sched-credit -d Dom0 -w 400
In other cases, domains can eat up to the assigned number of VCPUs of CPU power.