Hi Aleksandar,<br><br>I just saw your email on CPU usage. I have been looking at this as well. What I see is that Open Nebula just displays usage stats based on what KVM does in the background. ( Assuming you are using KVM as your hypervisor). <br>

<br>The CPU parameters you give in Open Nebula is just to control the overprovisioning part ( For eg, with 1 physical CPU , you want to run 5 VMs, you would allocate 0.2 to each). What it displays is what KVM tells it to display.  For one of our servers, I could find this  on doing a "virsh vcpuinfo" on the VMs running. You can set affinities to make sure that certain VMs run only on specific Cores <br>
<br>for i in `virsh list | grep running | cut -d " " -f3` ; do echo $i ,  `virsh vcpuinfo $i`  ; done<br>one-27 , VCPU: 0 CPU: 15 State: running CPU time: 13579.7s CPU Affinity: yyyyyyyyyyyyyyyy<br>one-37 , VCPU: 0 CPU: 11 State: running CPU time: 35643.0s CPU Affinity: yyyyyyyyyyyyyyyy<br>
one-41 , VCPU: 0 CPU: 8 State: running CPU time: 224883.1s CPU Affinity: yyyyyyyyyyyyyyyy<br>one-50 , VCPU: 0 CPU: 15 State: running CPU time: 59100.8s CPU Affinity: yyyyyyyyyyyyyyyy<br>one-51 , VCPU: 0 CPU: 14 State: running CPU time: 196545.6s CPU Affinity: yyyyyyyyyyyyyyyy<br>
one-52 , VCPU: 0 CPU: 13 State: running CPU time: 75126.3s CPU Affinity: yyyyyyyyyyyyyyyy<br>one-53 , VCPU: 0 CPU: 1 State: running CPU time: 148284.6s CPU Affinity: yyyyyyyyyyyyyyyy<br>one-54 , VCPU: 0 CPU: 4 State: running CPU time: 53316.7s CPU Affinity: yyyyyyyyyyyyyyyy<br>
one-56 , VCPU: 0 CPU: 13 State: running CPU time: 11596.5s CPU Affinity: yyyyyyyyyyyyyyyy<br>one-57 , VCPU: 0 CPU: 6 State: running CPU time: 12659.4s CPU Affinity: yyyyyyyyyyyyyyyy<br>one-68 , VCPU: 0 CPU: 13 State: running CPU time: 18008.8s CPU Affinity: yyyyyyyyyyyyyyyy<br>
<br>
For multiple CPUs, even if you allocate 2 in Open nebula, it doesn't actually allocate 2. My feeling is you will have to use the VCPU parameter to do that.<br>Refer to this link for more info - <a href="http://docs.fedoraproject.org/en-US/Fedora/13/html/Virtualization_Guide/ch25s06.html">http://docs.fedoraproject.org/en-US/Fedora/13/html/Virtualization_Guide/ch25s06.html</a> <br>
<br>cheers<br><br>Madhurranjan<br><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
   1. CPU usage (Aleksandar DRAGANOV)<br>
   2. running vms appears as suspended (Zamore, Kherry (contractor))<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 29 Jul 2011 16:57:25 +0100<br>
From: Aleksandar DRAGANOV <<a href="mailto:s1058571@sms.ed.ac.uk" target="_blank">s1058571@sms.ed.ac.uk</a>><br>
To: <a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a><br>
Subject: [one-users] CPU usage<br>
Message-ID: <<a href="mailto:20110729165725.4ree9zd3y8wk8o8g@www.sms.ed.ac.uk" target="_blank">20110729165725.4ree9zd3y8wk8o8g@www.sms.ed.ac.uk</a>><br>
Content-Type: text/plain;       charset=ISO-8859-1;     DelSp="Yes";<br>
        format="flowed"<br>
<br>
Hello guys,<br>
<br>
I am trying to collect some data about the CPU usage for each VM<br>
running. And I don't understand what are the numbers that ONe gives as<br>
info:<br>
<br>
   -bash-4.1$ onevm list<br>
     ID     USER     NAME STAT CPU     MEM        HOSTNAME        TIME<br>
    122 oneadmin  one-122 runn  15   1024M       hostName  01 04:42:46<br>
    123 oneadmin  one-123 runn  10   1024M       hostName  01 04:42:45<br>
    125 oneadmin  one-125 runn  19   1024M       hostName  00 18:13:36<br>
    126 oneadmin  one-126 runn   0   1024M       hostName2 00 18:13:32<br>
    127 oneadmin  one-127 runn   0   1024M       hostName2 00 18:13:30<br>
    130 oneadmin  one-130 runn   4      2G       hostName2 00 15:22:43<br>
<br>
What are these number 15, 10, 19? If the host has 4 core CPU and I<br>
have specified 1CPU per VM, is the maximum for each VM 25 or it is<br>
100? Is it anything related to the CPU usage because at the time a got<br>
this data one-122 and one-123 were doing absolutely nothing and the<br>
graph in virt-manager about CPU usage agrees about that.<br>
<br>
If I specify 2 CPUs per VM in the template the instance still has only<br>
1 CPU. I guess that's because the image is installed in this way. So<br>
how can I control this on the fly? I understand this is probably not<br>
ONe related question but any direction or help will be highly<br>
appreciated.<br>
<br>
Cheers,<br>
Sasho<br>
<br>
--<br>
The University of Edinburgh is a charitable body, registered in<br>
Scotland, with registration number SC005336.<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Fri, 29 Jul 2011 18:21:47 +0000<br>
From: "Zamore, Kherry (contractor)" <<a href="mailto:Kherry_Zamore@cable.comcast.com" target="_blank">Kherry_Zamore@cable.comcast.com</a>><br>
To: "<a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a>" <<a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a>><br>
Subject: [one-users] running vms appears as suspended<br>
Message-ID:<br>
        <<a href="mailto:E2C488D04AF5FB42B7B096E5238DC644220149@PACDCEXMB01.cable.comcast.com" target="_blank">E2C488D04AF5FB42B7B096E5238DC644220149@PACDCEXMB01.cable.comcast.com</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
First of all, a big thank you to all the developers and supporters who make this project possible.  We wouldn't be here without you!<br>
<br>
I have an interesting problem where I created a method of backing up virtual machine disks (qcow2) by suspending the vm, copying the disk image locally, and resuming the vm.  Not the most elegant solution, but for what I need it gets the job done.  The problem occurs when the virtual machine manager polls a host that the backup job is currently running on.  If the vm is suspended, VMM puts the host into the SUSPENDED state.  However when VMM returns to the host for later polls, it seems the vm is ignored.  The vms are up and running, without issue, yet onevm shows the host as being suspended.  Onevm resume will cause the vm to be destroyed (there is no state file).<br>


<br>
I am running 2.2, do more recent versions resolve this issue?  How can I force VMM to poll the host or is there a way to set the state back to running without destroying and redeploying the vm?<br>
<br>
<br>
<br>
Thanks,<br>
~kzamore<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110729/5a2e5a45/attachment.html" target="_blank">http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110729/5a2e5a45/attachment.html</a>><br>


<br>
------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br>
<br>
End of Users Digest, Vol 41, Issue 70<br>
*************************************<br>
</blockquote><br></div><br>