Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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!

share|improve this question
up vote 2 down vote accepted

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.

share|improve this answer
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. – Gnailuy Feb 12 '12 at 6:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.