Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 2 down vote accepted

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.

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
add comment

Your Answer

 
discard

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.