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!
Asked
Active
Viewed 716 times
1 Answers
2
You can use both CPU pining:
http://panoskrt.wordpress.com/2009/02/02/pin-cpu-cores-to-specific-xen-domu-guest/
And the CreditScheduler:
http://wiki.xensource.com/xenwiki/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.

Peter
- 909
- 8
- 10
-
You can set the number of "pinned" CPUs higher than the VCPUs - then a subset of the real CPUs will be used. – Nils Feb 11 '12 at 22:26
-
Thank you! The scheduler is exactly what I'm looking for. CPU pining is also very interesting.I found these two books useful: _The Definitive Guide to the Xen Hypervisor_ by **David Chisnall** and _The Book of Xen: A Practical Guide for the System Administrator_ by **Chris Takemura**. – Yuliang Feb 12 '12 at 06:43