<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>My understanding is that used memory goes back to normal after
      the test, not something that stays high forever, so it doesn't
      look at all with what you refer to.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 12.01.18 11:13, Olle E. Johansson
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:EFB9D998-64B6-4A8B-A2E6-0E152FBDF221@edvina.net">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      Andrey,
      <div class="">Can you please run “kamcmd tm.stats” and check the
        values. I have a similar problem and see clearly</div>
      <div class="">a lot of transactions not being freed, eating up
        memory and ending with out of memory messages in the log.</div>
      <div class="">Have an open issue about it in the bug tracker.</div>
      <div class=""><br class="">
      </div>
      <div class="">/O</div>
      <div class=""><br class="">
        <div>
          <blockquote type="cite" class="">
            <div class="">On 12 Jan 2018, at 11:10, Daniel-Constantin
              Mierla <<a href="mailto:miconda@gmail.com" class=""
                moz-do-not-send="true">miconda@gmail.com</a>> wrote:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <meta http-equiv="Content-Type" content="text/html;
                charset=utf-8" class="">
              <div text="#000000" bgcolor="#FFFFFF" class="">
                <p class="">Hello,</p>
                <p class="">if you run with 512MB, is the shm free
                  getting to 1.8MB as well for same figures of
                  registrations and calls?</p>
                <p class="">Cheers,<br class="">
                  Daniel<br class="">
                </p>
                <br class="">
                <div class="moz-cite-prefix">On 12.01.18 09:19, Andrey
                  Deykunov wrote:<br class="">
                </div>
                <blockquote type="cite"
cite="mid:CAEsJsWD5622J1Br-OL4tGYZyJ1tsgKqLYamWyHu0XucF94hp4g@mail.gmail.com"
                  class="">
                  <div dir="ltr" class="">
                    <div class="">Hi,</div>
                    <div class=""><br class="">
                    </div>
                    <div class="">We use kamailio as a router in our PBX
                      server. The test below causes significant
                      decreasing of free shared memory and </div>
                    <div class="">many "out of memory" errors in
                      kamailio log:</div>
                    <div class=""><br class="">
                    </div>
                    <div class="">Preconditions: kamailio server with
                      256Mb of shared memory allocated.</div>
                    <div class=""><br class="">
                    </div>
                    <div class="">Test actions: run two load testing
                      scripts at the same time: </div>
                    <div class="">  1) 10000 register operations;</div>
                    <div class="">  2) 20000 calls (about 300 per sec);</div>
                    <div class=""><br class="">
                    </div>
                    <div class="">Results: </div>
                    <div class="">    1) memory consumption in peak
                      values:</div>
                    <div class=""><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>
                       - shmem.free_size: 1.8Mb</div>
                    <div class=""><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>
                       - core: 120Mb:</div>
                    <div class=""><span class="gmail-Apple-tab-span" style="white-space:pre">         </span>
                       - build_req_buf_from_sip_req: 12.5Mb</div>
                    <div class=""><span class="gmail-Apple-tab-span" style="white-space:pre">         </span>
                       - msg_lump_cloner: 23.6Mb</div>
                    <div class=""><span class="gmail-Apple-tab-span" style="white-space:pre">         </span>
                       - sip_msg_shm_clone: 84Mb</div>
                    <div class=""><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>
                       - tm module: 118Mb</div>
                    <div class="">    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 class=""><br class="">
                    </div>
                    <div class="">Is it normal behavior or it's possible
                      to do something to increase performance?</div>
                    <div class=""><br class="">
                    </div>
                    <div class="">PS: the same behaviour occurs for
                      various values of shared memory defined at the
                      start of kamailio server (128Mb, 256Mb, 512Mb
                      etc.).</div>
                    <div class=""><br class="">
                    </div>
                    <div class="">Thank you,</div>
                    <div class="">Andrey</div>
                  </div>
                  <br class="">
                  <fieldset class="mimeAttachmentHeader"></fieldset>
                  <br class="">
                  <pre class="" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
                </blockquote>
                <br class="">
                <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">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/" moz-do-not-send="true">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com/" moz-do-not-send="true">www.kamailioworld.com</a></pre>
              </div>
              _______________________________________________<br
                class="">
              Kamailio (SER) - Users Mailing List<br class="">
              <a href="mailto:sr-users@lists.kamailio.org" class=""
                moz-do-not-send="true">sr-users@lists.kamailio.org</a><br
                class="">
<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><br class="">
            </div>
          </blockquote>
        </div>
        <br class="">
      </div>
    </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>