<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <font face="Helvetica, Arial, sans-serif">Nope, no swapping...<br>
      <br>
      Thanks.<br>
      Jonas.<br>
      <br>
    </font><br>
    On 03/08/2012 09:44 AM, [Digital^Dude] &reg; wrote:
    <blockquote
cite="mid:CAArAGKm83A4q6yziwWgK+3fBzT1dyUQj_+UgAsH+ZCp8pc07_Q@mail.gmail.com"
      type="cite"><font face="trebuchet ms,sans-serif">AFAIK:<br>
        Linux has a tendency to keep RAM filled up with any recently
        accessed progarm. To keep programs access fast enough, it never
        removes something from the memory, only replaces it, in case
        some program has more frequent access than the one already
        present in ram.<br>
        <br>
        If your server isn't swapping.. things are okay.<br>
      </font><br>
      <div class="gmail_quote">On Thu, Mar 8, 2012 at 1:15 PM, Jonas
        Kellens <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:jonas.kellens@telenet.be">jonas.kellens@telenet.be</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div text="#000000" bgcolor="#ffffff"> <font face="Helvetica,
              Arial, sans-serif">Hello,<br>
              <br>
              I notice that at the end of the day, after about 4000
              calls have passed my Asterisk-system, that the use of
              memory is very high and stays that way untill a restart of
              Asterisk or a reboot of the server.<br>
              <br>
              This is the situation at the end of the day :<br>
              <br>
              [root@sp asterisk]# free -m<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; total&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; used&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free&nbsp;&nbsp;&nbsp;&nbsp; shared&nbsp;&nbsp;&nbsp;
              buffers&nbsp;&nbsp;&nbsp;&nbsp; cached<br>
              Mem:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3923&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1931&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1992&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              268&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1308<br>
              -/+ buffers/cache:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 353&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3569<br>
              Swap:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4031&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4031<br>
              <br>
              So total of 3923</font><font face="Helvetica, Arial,
              sans-serif"> MB</font><font face="Helvetica, Arial,
              sans-serif">, where 1992</font><font face="Helvetica,
              Arial, sans-serif"> MB</font><font face="Helvetica, Arial,
              sans-serif"> is used and 1931</font><font face="Helvetica,
              Arial, sans-serif"> MB</font><font face="Helvetica, Arial,
              sans-serif"> still free.<br>
              <br>
              This memory never decreases and increases with every call
              that passes my Asterisk system. After some more calls :<br>
              <br>
              [root@sp asterisk]# free -m<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; total&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; used&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free&nbsp;&nbsp;&nbsp;&nbsp; shared&nbsp;&nbsp;&nbsp;
              buffers&nbsp;&nbsp;&nbsp;&nbsp; cached<br>
              Mem:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3923&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1934&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1989&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              270&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1309<br>
              -/+ buffers/cache:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 353&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3569<br>
              Swap:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4031&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4031<br>
              <br>
            </font><font face="Helvetica, Arial, sans-serif"> So total
              of 3923</font><font face="Helvetica, Arial, sans-serif">
              MB</font><font face="Helvetica, Arial, sans-serif">, where
              1934</font><font face="Helvetica, Arial, sans-serif"> MB</font><font
              face="Helvetica, Arial, sans-serif"> is used and 1989</font><font
              face="Helvetica, Arial, sans-serif"> MB</font><font
              face="Helvetica, Arial, sans-serif"> still free.</font><font
              face="Helvetica, Arial, sans-serif"><br>
              <br>
              As I said, only a restart of Asterisk or reboot of the
              server can decrease this value :<br>
              <br>
              [root@sp asterisk]# free -m<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; total&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; used&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free&nbsp;&nbsp;&nbsp;&nbsp; shared&nbsp;&nbsp;&nbsp;
              buffers&nbsp;&nbsp;&nbsp;&nbsp; cached<br>
              Mem:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3923&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 974&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2948&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              150&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 524<br>
              -/+ buffers/cache:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 299&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3624<br>
              Swap:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4031&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4031<br>
              <br>
              So total of 3923 MB, where 974 MB is used and 2948 MB
              still free.<br>
              <br>
              <br>
              So why does this memory usage only decrease with a restart
              ? What keeps asterisk stored in the RAM-memory ? Even if
              there are 0 calls, the memory does not decrease.<br>
              <br>
              <br>
              <br>
              Kind regards,<br>
              <font color="#888888"> Jonas<br>
                <br>
              </font></font> </div>
          <br>
          --<br>
_____________________________________________________________________<br>
          -- Bandwidth and Colocation Provided by <a
            moz-do-not-send="true" href="http://www.api-digital.com"
            target="_blank">http://www.api-digital.com</a> --<br>
          New to Asterisk? Join us for a live introductory webinar every
          Thurs:<br>
          &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a moz-do-not-send="true"
            href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
          <br>
          asterisk-users mailing list<br>
          To UNSUBSCRIBE or update options visit:<br>
          &nbsp; <a moz-do-not-send="true"
            href="http://lists.digium.com/mailman/listinfo/asterisk-users"
            target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
        </blockquote>
      </div>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               <a class="moz-txt-link-freetext" href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a>

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   <a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
    </blockquote>
  </body>
</html>