Personal tools
You are here: Home Members marc blog Blog on Virtualisation [XEN] On guaranteed cpu power to VMs
Document Actions

[XEN] On guaranteed cpu power to VMs

Can you guarantee cpu power to VMs with XEN and how?

From rhel5 mailing list:

Q: I want to control that a certain VM is for example limited to 60% of total CPU power, another is limited to 20%, and another to 20%. In case of no cpu contention, one VM could take up to 100% of CPU power. Does such a facility exist ?

A: You can also control the amount of CPU power a domain is guaranteed to get via the xm sched-credit command. You assign weights to domains, which are relative. For example if Dom1 and Dom2 should get both 30 percent and Dom0 should get 40, you would set it for example thus:

    xm sched-credit -d Dom1 -w 300
    xm sched-credit -d Dom2 -w 300
    xm sched-credit -d Dom0 -w 400 

In other cases, domains can eat up to the assigned number of VCPUs of CPU power.

Blog on Virtualisation
« May 2012 »
Su Mo Tu We Th Fr Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Blog on Virtualisation:
More...
Categories:
Virtualisation (3)
Xen (2)
libvirt (1)
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: