<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 01/08/2013 11:38 AM, Alex Leonhardt
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAH4_GUtdRR611ePSun8zLyoGumXmeZnTsinK1O-B5Vz1AxUE8Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">thanks, yep noticed it has a negative value - <br>
        <br>
        Amador, does that mean the host is overcommitting by 18 G of
        avail physical memory although 20 G of phys memory is still free
        ?<br>
      </div>
    </blockquote>
    <br>
    memAvailable maps the worst case to the Host.<br>
    It means: considering your current state, to assure the "Physical
    Memory Guaranteed" for all running VMs, you need 18GB of additional
    RAM. This is the consequence of enabling overcommit policy. <br>
    <br>
    memAvailable = FREE_OR_CACHED + RESIDENT - memCommitted - Host
    Reserved Memory<br>
    <br>
    Where:<br>
    &nbsp;FREE_OR_CACHED: from /proc/meminfo<br>
    &nbsp;RESIDENT: RSS value (2nd. field in /proc/&lt;PID&gt;/statm) from
    all running VMs processes.<br>
    &nbsp;memCommitted&nbsp;&nbsp; --&gt;&nbsp; Physical Memory Guaranteed + Guest Overhead
    (default 65MB) from running VMs.<br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <br>
    *Notice that memAvailable does not considers KSM work.<br>
    <br>
    <blockquote
cite="mid:CAH4_GUtdRR611ePSun8zLyoGumXmeZnTsinK1O-B5Vz1AxUE8Q@mail.gmail.com"
      type="cite">
      <div dir="ltr"><br>
        Alex<br>
        <br>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">2013/1/7 Amador Pahim <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:apahim@redhat.com"
              target="_blank">apahim@redhat.com</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>
                <div class="h5">
                  <div>On 01/07/2013 06:18 AM, Alex Leonhardt wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">
                      <div>Hi,<br>
                        <br>
                        just seen a memory usage warning in oVirt's
                        Admin Interface saying the available memory is
                        below threshold of 1024MB - however - when I
                        checked the host, it had still 20GB left ? <br>
                        <br>
                      </div>
                      See screenshot. <br>
                      <br>
                      Alex<br>
                      <br>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <div class="im">
                  <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>
<a moz-do-not-send="true" href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a>
</pre>
                </div>
              </blockquote>
              <pre style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;padding:0px;line-height:14px;text-transform:none;font-size:12px;white-space:pre-wrap;margin:0px;word-spacing:0px">The message is happening due to "memAvailable" statistic coming from vdsm. The memAvailable field can be negative and considers a set of values from different sources to compose its result (free memory, cached memory, resident set size from qemu processes, committed memory from running vms and host reserved memory</pre>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>