<div dir="ltr"><br><div class="gmail_extra">Hi,</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 29, 2013 at 5:15 PM, Christoph Pleger <span dir="ltr"><<a href="mailto:Christoph.Pleger@cs.tu-dortmund.de" target="_blank">Christoph.Pleger@cs.tu-dortmund.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello,<br>
<div><br>
> We have the "logical" OpenNebula level enforcement, and the hypervisor<br>
> level.<br>
><br>
> First one: the OpenNebula scheduler will not allocate more cpu/memory than<br>
> the Host reports as available.<br>
><br>
> Hypervisor level reservation: cgroups for kvm, credit scheduler for xen,<br>
> and the esx cpu scheduler for vmware<br>
<br>
</div>So, if I understand correctly, it is like following:<br>
<br>
1. One real CPU core represents 100 percent of CPU capacity.<br>
<br>
2. The CPU value in VM Templates is related to one CPU core.<br>
<br>
3. From the CPU values, OpenNebula calculates how much of the capacity of<br>
a cloud node is already used.<br>
<br>
4. If a node does not have enough CPU capacity for a new VM, the VM is not<br>
started on that node.<br>
<br>
5. For the kvm hypervisor, OpenNebula can use the cgroup feature to<br>
enforce relationship between CPU values of different VMs.<br>
<br>
Is this correct?<br>
<div><br></div></blockquote><div><br></div><div>That's right.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div>
>> I am also wondering why, in sunstone, one cloud node with one VM<br>
>> running<br>
>> on it shows a CPU usage of 6400. I thought that this is because the user<br>
>> set CPU=8, VCPU=8 and 8*8=64, but if CPU= is related to one physical<br>
>> CPU,<br>
>> that cannot be true ...<br>
>><br>
><br>
> Can you please paste the output of 'onehost show <id>' ?<br>
<br>
</div>HOST 151 INFORMATION<br>
ID : 151<br>
NAME : node18<br>
CLUSTER : -<br>
STATE : MONITORED<br>
IM_MAD : im_kvm<br>
VM_MAD : vmm_kvm<br>
VN_MAD : ebtables<br>
LAST MONITORING TIME : 04/29 17:06:11<br>
<br>
HOST SHARES<br>
TOTAL MEM : 252.4G<br>
USED MEM (REAL) : 9.1G<br>
USED MEM (ALLOCATED) : 8G<br>
TOTAL CPU : 6400<br>
USED CPU (REAL) : 384<br>
USED CPU (ALLOCATED) : 6400<br>
RUNNING VMS : 1<br>
<br>
MONITORING INFORMATION<br>
ARCH="x86_64"<br>
CPUSPEED="2100"<br>
FREECPU="6016.0"<br>
FREEMEMORY="255101900"<br>
HOSTNAME="cloudhost18"<br>
HYPERVISOR="kvm"<br>
MODELNAME="AMD Opteron(TM) Processor 6272 "<br>
NETRX="0"<br>
NETTX="0"<br>
TOTALCPU="6400"<br>
TOTALMEMORY="264614860"<br>
USEDCPU="384.0"<br>
USEDMEMORY="9512960"<br>
<br></blockquote><div><br></div><div>According to that, the host is running 1 VM with the template</div><div>CPU=64</div><div>MEMORY=8192</div><div><br></div><div>So if you only requested cpu=8, something went wrong... Can you think of anything that might have triggered this? A failed migration, oned segfault....</div>
<div><br></div><div>Cheers</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Regards<br>
<span><font color="#888888"> Christoph<br>
<br>
</font></span></blockquote></div><br></div><div class="gmail_extra"><div><div dir="ltr"><br class="">--<br>Join us at <a href="http://opennebulaconf.com/" target="_blank">OpenNebulaConf2013</a> in Berlin, 24-26 September, 2013<br>
--<div>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.opennebula.org/" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" target="_blank" style="color:rgb(42,93,176)"></a></span></div>
</div><div><br></div></div></div></div></div>