Hi All,<br><br>I have the same issue as the other thread on overcommitment of CPU (<a href="http://lists.opennebula.org/pipermail/users-opennebula.org/2011-May/005227.html">http://lists.opennebula.org/pipermail/users-opennebula.org/2011-May/005227.html</a>) . <br>
<br>I have an Intel Xeon server on which I am currently running open nebula over kvm.<br><br>I went through how KVM takes care of CPU and saw my template file from which I spawn VMs and that doesn't specify VCPUs. I have 2 questions :<br>
<br>1. Does VCPU value itself matter ? Because its 0 in all my VMs .  Htop on the box shows high cpu usage 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>2. When I actually have multiple cores in kvm, the link <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> shows me that this will be displayed in the following manner. When I have an equivalent VM with 2 dedicated CPUs ( CPU 2 in open nebula) , i don't see 2 cpus actually allocated to that VM  like below.:<br>
<pre class="screen"># virsh vcpuinfo <em class="replaceable"><code>guest1</code></em><br>VCPU:           0<br>CPU:            3<br>State:          running<br>CPU time:       0.5s<br>CPU Affinity:   yyyyyyyy<br>VCPU:           1<br>
CPU:            1<br>State:          running<br>CPU Affinity:   yyyyyyyy<br>VCPU:           2<br>CPU:            1<br>State:          running<br>CPU Affinity:   yyyyyyyy<br>VCPU:           3<br>CPU:            2<br>State:          running<br>
<font size="4"><br>Thoughts ?</font><br></pre>