I'm going to set up three or two Xen virtual machines on one physical machine. I want those VMs to share different CPU time on average. I've Googled for a long while but still haven't been able to find a way to achieve my goal. I'm wondering is that possible? And how? Thank you!
You can use both CPU pining:
And the CreditScheduler:
The CPU pining will assign real CPUs to specific virtual machines while the CreditScheduler allows you to limit CPU usage by the virtual machines.