1

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!

1 Answer 1

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.

2
  • 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, 2012 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, 2012 at 6:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .