<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>if you run with 512MB, is the shm free getting to 1.8MB as well
      for same figures of registrations and calls?</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 12.01.18 09:19, Andrey Deykunov
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAEsJsWD5622J1Br-OL4tGYZyJ1tsgKqLYamWyHu0XucF94hp4g@mail.gmail.com">
      <div dir="ltr">
        <div>Hi,</div>
        <div><br>
        </div>
        <div>We use kamailio as a router in our PBX server. The test
          below causes significant decreasing of free shared memory and </div>
        <div>many "out of memory" errors in kamailio log:</div>
        <div><br>
        </div>
        <div>Preconditions: kamailio server with 256Mb of shared memory
          allocated.</div>
        <div><br>
        </div>
        <div>Test actions: run two load testing scripts at the same
          time: </div>
        <div>  1) 10000 register operations;</div>
        <div>  2) 20000 calls (about 300 per sec);</div>
        <div><br>
        </div>
        <div>Results: </div>
        <div>    1) memory consumption in peak values:</div>
        <div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
           - shmem.free_size: 1.8Mb</div>
        <div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
           - core: 120Mb:</div>
        <div><span class="gmail-Apple-tab-span" style="white-space:pre">                </span>
           - build_req_buf_from_sip_req: 12.5Mb</div>
        <div><span class="gmail-Apple-tab-span" style="white-space:pre">                </span>
           - msg_lump_cloner: 23.6Mb</div>
        <div><span class="gmail-Apple-tab-span" style="white-space:pre">                </span>
           - sip_msg_shm_clone: 84Mb</div>
        <div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>
           - tm module: 118Mb</div>
        <div>    2) shmem.free_size parameter back to normal after the
          test, so it could be concluded that we don't have any memory
          leaks.</div>
        <div><br>
        </div>
        <div>Is it normal behavior or it's possible to do something to
          increase performance?</div>
        <div><br>
        </div>
        <div>PS: the same behaviour occurs for various values of shared
          memory defined at the start of kamailio server (128Mb, 256Mb,
          512Mb etc.).</div>
        <div><br>
        </div>
        <div>Thank you,</div>
        <div>Andrey</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - March 5-7, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>