[one-users] CPU parameter with KVM

Antonio Carlos Salzvedel Furtado Junior acsfj08 at inf.ufpr.br
Wed May 9 06:02:02 PDT 2012


Hello OpenNebula users,


I defined one VM template with the following attributes:
CPU=0.5
VCPU=1

As I read in the OpenNebula Documentation, this should give my VM half a
processor. The problem is that I don't think the CPU parameter is ever used.
I took a look at deployment.0 and at source code and I found out that only
the parameter VCPU is used when KVM is chosen as hypervisor.

In fact, I ran on my VM  the command 'stress -c 50', so it would force the
VM to use all the available CPU. The VM used all the processor, and not
only half.


I was wondering what you guys use to define a hard limit. Can cgroups solve
my problem and be easily integrated with OpenNebula?


Cordially,

Antonio Carlos Furtado
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120509/81ed1b3e/attachment.htm>


More information about the Users mailing list