<div dir="ltr">Hi,<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 29, 2013 at 5:18 AM, Carlos Martín Sánchez <span dir="ltr"><<a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</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"><div dir="ltr"><div><div><br></div><div>On Sun, Apr 28, 2013 at 12:18 AM, Jon <span dir="ltr"><<a href="mailto:three18ti@gmail.com" target="_blank">three18ti@gmail.com</a>></span> wrote:<br>

</div></div><div class="gmail_extra">

<div class="gmail_quote"><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 dir="ltr">Hello All,<div>

<br>

</div><div>I'm only able to provision resources up to 750 / 800 CPU and 7GB / 7.8GB.</div><div>VMs provisioned after this limit has been reached causes the VMs to stay in "pend" status until vms are turned off or destroyed.</div>



</div></blockquote><div><br></div></div><div>The scheduler will reserve some memory for the hypervisor, this can be configured with the HYPERVISOR_MEM attribute in sched.conf [1].<br></div><div><div><br></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 dir="ltr"><div>  Even though 7GB has been provisioned, I'm hardly using 2G.</div>
<div><br></div><div><div>>> HOST SHARES                                                                     </div><div>>> TOTAL MEM             : 7.8G                </div><div>>> USED MEM (REAL)       : 1.9G                </div>




<div>>> USED MEM (ALLOCATED)  : 7G                  </div><div>>> TOTAL CPU             : 800                 </div><div>>> USED CPU (REAL)       : 44                  </div><div>>> USED CPU (ALLOCATED)  : 750                 </div>




<div>>> RUNNING VMS           : 10</div></div><div><br></div><div>How can I configure OpenNebula to allow overcommit of resources?</div><div><br></div></div></blockquote></div><div><br>Currently there is no way to do Memory over-commitment, but you<span style="font-family:arial,sans-serif;font-size:13px"> can do cpu</span><span style="font-family:arial,sans-serif;font-size:13px"> </span><span style="font-family:arial,sans-serif;font-size:13px">over</span><span style="font-family:arial,sans-serif;font-size:13px">-</span><span style="font-family:arial,sans-serif;font-size:13px">commitment</span><span style="font-family:arial,sans-serif;font-size:13px"> </span><span style="font-family:arial,sans-serif;font-size:13px">with the CPU & VCPU attributes</span></div>

</div></div></div></blockquote><div><br></div><div><br></div><div>One trick is to set HYPERVISOR_MEM in sched.conf to a negative value, ex. :</div><div><br></div><div>HYPERVISOR_MEM = -0.4</div><div><br></div>
<div>This will allow for over provisioning memory by 40%. Beware that it will not check actual memory usage on the host so setting this limit too high will most likely crash the host or prevent VM from being deployed.<br>

</div><div><br></div><div><div>Simon<br></div><div><br></div><div><br></div></div></div>
</div></div>