<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    are you still using mem_join=1?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 11/24/13 10:01 AM, Uri Shacked
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAMMbDhQWW9h4hwnf3KF7406_YftAiHfs6M2K52peMnBAoe_R3g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><font color="#000000" face="Times New Roman" size="3">
          </font>
          <p style="margin:0cm 0cm 0pt;line-height:normal"
            class="MsoNormal"><span
style="font-family:"Arial","sans-serif";font-size:12pt"><font
                color="#000000">Hi,</font></span></p>
          <font color="#000000" face="Times New Roman" size="3">
          </font>
          <p style="margin:0cm 0cm 0pt;line-height:normal"
            class="MsoNormal"><span
style="font-family:"Arial","sans-serif";font-size:12pt"><font
                color="#000000">It has been a while.</font></span></p>
          <font color="#000000" face="Times New Roman" size="3">
          </font>
          <p style="margin:0cm 0cm 0pt;line-height:normal"
            class="MsoNormal"><span
style="font-family:"Arial","sans-serif";font-size:12pt"><font
                color="#000000">Still, I have some problems with
                reloading data into shared memory.</font></span></p>
          <font color="#000000" face="Times New Roman" size="3">
          </font>
          <p style="margin:0cm 0cm 0pt;line-height:normal"
            class="MsoNormal"><span
style="font-family:"Arial","sans-serif";font-size:12pt"><font
                color="#000000">I can obviously notice that there is
                always an increase of shmem after each reload.</font></span></p>
          <font color="#000000" face="Times New Roman" size="3">
          </font>
          <p style="margin:0cm 0cm 0pt;line-height:normal"
            class="MsoNormal"><span
style="font-family:"Arial","sans-serif";font-size:12pt"><font
                color="#000000"> </font></span></p>
          <font color="#000000" face="Times New Roman" size="3">
          </font>
          <p style="margin:0cm 0cm 0pt;line-height:normal"
            class="MsoNormal"><span
style="font-family:"Arial","sans-serif";font-size:12pt"><font
                color="#000000">When my system starts, it has 4G of
                memory reserved and approximately 0.8G is populated at
                start.</font></span></p>
          <font color="#000000" face="Times New Roman" size="3">
          </font>
          <p style="margin:0cm 0cm 0pt;line-height:normal"
            class="MsoNormal"><span
style="font-family:"Arial","sans-serif";font-size:12pt"><font
                color="#000000"> </font></span></p>
          <font color="#000000" face="Times New Roman" size="3">
          </font>
          <p style="margin:0cm 0cm 0pt;line-height:normal"
            class="MsoNormal"><span
style="font-family:"Arial","sans-serif";font-size:12pt"><font
                color="#000000">After 30 days, when reloading 15-25
                times per day only part of the 0.8G, the shmem size is
                approximately 3.5G.</font></span></p>
          <font color="#000000" face="Times New Roman" size="3">
          </font>
          <p style="margin:0cm 0cm 0pt;line-height:normal"
            class="MsoNormal"><span
style="font-family:"Arial","sans-serif";font-size:12pt"><font
                color="#000000"> </font></span></p>
          <font color="#000000" face="Times New Roman" size="3">
          </font>
          <p style="margin:0cm 0cm 0pt;line-height:normal"
            class="MsoNormal"><span
style="font-family:"Arial","sans-serif";font-size:12pt"><font
                color="#000000">As I mentioned before, the traffic does
                not seems to be the issue. How do I, or can I, check the
                size of memory occupied
                by traffic only?</font></span></p>
          <font color="#000000" face="Times New Roman" size="3">
          </font>
          <p style="margin:0cm 0cm 0pt;line-height:normal"
            class="MsoNormal"><span
style="font-family:"Arial","sans-serif";font-size:12pt"><font
                color="#000000"> </font></span></p>
          <font color="#000000" face="Times New Roman" size="3">
          </font>
          <p style="margin:0cm 0cm 0pt;line-height:normal"
            class="MsoNormal"><span
style="font-family:"Arial","sans-serif";font-size:12pt"><font
                color="#000000">Any ideas how to handle the reloads?
              </font></span></p>
          <font color="#000000" face="Times New Roman" size="3">
          </font>
          <p style="margin:0cm 0cm 0pt;line-height:normal"
            class="MsoNormal"><span
style="font-family:"Arial","sans-serif";font-size:12pt"><font
                color="#000000"> </font></span></p>
          <font color="#000000" face="Times New Roman" size="3">
          </font>
          <p style="margin:0cm 0cm 0pt;line-height:normal"
            class="MsoNormal"><span
style="font-family:"Arial","sans-serif";font-size:12pt"><font
                color="#000000">I am using kamailio 3.3.2 with
                modules like ACC, DIALOG, CARRIERROUTE and more….</font></span></p>
          <font color="#000000" face="Times New Roman" size="3">
          </font>
          <p style="margin:0cm 0cm 0pt;line-height:normal"
            class="MsoNormal"><span
style="font-family:"Arial","sans-serif";font-size:12pt"><font
                color="#000000"> </font></span></p>
          <font color="#000000" face="Times New Roman" size="3">
          </font>
          <p style="margin:0cm 0cm 0pt;line-height:normal"
            class="MsoNormal"><span
style="font-family:"Arial","sans-serif";font-size:12pt"><font
                color="#000000"> </font></span></p>
          <font color="#000000" face="Times New Roman" size="3">
          </font>
          <p style="margin:0cm 0cm 10pt" class="MsoNormal"><span
style="line-height:115%;font-family:"Arial","sans-serif";font-size:12pt"><font
                color="#000000">Thanks,</font></span></p>
          <font color="#000000" face="Times New Roman" size="3">
          </font>
          <p style="margin:0cm 0cm 10pt" class="MsoNormal"><span
style="line-height:115%;font-family:"Arial","sans-serif";font-size:12pt"><font
                color="#000000">BR,</font></span></p>
          <font color="#000000" face="Times New Roman" size="3">
          </font>
          <p style="margin:0cm 0cm 10pt" class="MsoNormal"><span
style="line-height:115%;font-family:"Arial","sans-serif";font-size:12pt"><font
                color="#000000">Uri</font></span></p>
          <font color="#000000" face="Times New Roman" size="3">
          </font></div>
        <div class="gmail_extra"><br>
          <br>
          <div class="gmail_quote">On Sun, Mar 3, 2013 at 7:36 PM, Uri
            Shacked <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:ushacked@gmail.com" target="_blank">ushacked@gmail.com</a>></span>
            wrote:<br>
            <blockquote style="margin:0px 0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"
              class="gmail_quote">
              <div dir="ltr">
                <div><font face="Times New Roman" size="3">
                  </font>
                  <p style="margin:0cm 0cm 0pt;line-height:normal"
                    class="MsoNormal"><span
                      style="font-family:"Times New
                      Roman","serif";font-size:12pt"><br>
                      Hi,</span></p>
                  <font face="Times New Roman" size="3">
                  </font>
                  <p style="margin:0cm 0cm 0pt;line-height:normal"
                    class="MsoNormal"><span
                      style="font-family:"Times New
                      Roman","serif";font-size:12pt">I
                      have this memory issue again.</span></p>
                  <font face="Times New Roman" size="3">
                  </font>
                  <p style="margin:0cm 0cm 0pt;line-height:normal"
                    class="MsoNormal"><span
                      style="font-family:"Times New
                      Roman","serif";font-size:12pt">The
                      status now is that I compiled
                      kamailio as followed here and use mem_join=1.</span></p>
                  <font face="Times New Roman" size="3">
                  </font>
                  <p style="margin:0cm 0cm 0pt;line-height:normal"
                    class="MsoNormal"><span
                      style="font-family:"Times New
                      Roman","serif";font-size:12pt">I
                      reload my data from DB every
                      minute! I know i reload a lot, will take care of
                      that (will update you all on April
                      :-)). </span></p>
                  <font face="Times New Roman" size="3">
                  </font>
                  <p style="margin:0cm 0cm 0pt;line-height:normal"
                    class="MsoNormal"><span
                      style="font-family:"Times New
                      Roman","serif";font-size:12pt">When
                      kamailio starts the shmem is
                      about 17% of 4Gb and after 7 days (600 reloads per
                      day) the shmem is about 24%.</span></p>
                  <font face="Times New Roman" size="3">
                  </font>
                  <p style="margin:0cm 0cm 0pt;line-height:normal"
                    class="MsoNormal"><span
                      style="font-family:"Times New
                      Roman","serif";font-size:12pt">The
                      traffic is not the issue.</span></p>
                  <font face="Times New Roman" size="3">
                  </font>
                  <p style="margin:0cm 0cm 0pt;line-height:normal"
                    class="MsoNormal"><span
                      style="font-family:"Times New
                      Roman","serif";font-size:12pt">Still,
                      can defrag of memory improve?
                      Ideas for defrag?</span></p>
                  <font face="Times New Roman" size="3">
                  </font>
                  <p style="margin:0cm 0cm 0pt;line-height:normal"
                    class="MsoNormal"><span
                      style="font-family:"Times New
                      Roman","serif";font-size:12pt">Thanks,</span></p>
                  <font face="Times New Roman" size="3">
                  </font>
                  <p style="margin:0cm 0cm 6pt;line-height:normal"
                    class="MsoNormal"><span
                      style="font-family:"Times New
                      Roman","serif";font-size:12pt">Uri</span></p>
                  <font face="Times New Roman" size="3">
                  </font><br>
                </div>
                <div>
                  <div class="h5">
                    <div class="gmail_quote">On Tue, Nov 27, 2012 at
                      12:37 PM, Uri Shacked <span dir="ltr"><<a
                          moz-do-not-send="true"
                          href="mailto:ushacked@gmail.com"
                          target="_blank">ushacked@gmail.com</a>></span>
                      wrote:<br>
                      <blockquote style="margin:0px 0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"
                        class="gmail_quote">
                        <div dir="ltr">
                          <div><br>
                            OK</div>
                          <div>
                            <div>>>ok - it's 56sec or 36sec?</div>
                          </div>
                          <div>It was 56 sec.</div>
                          <div> </div>
                          <div>Now, after recompile, when cfg mem_join=0
                            the reload takes 8 sec and the shmem real
                            used is 25% of 4Gb.</div>
                          <div>When mem_join=, the reload take 30 sec
                            and the shmem real used is 17%.</div>
                          <div> </div>
                          <div> </div>
                          <div>Looks good with mem_join=1.</div>
                          <div> </div>
                          <div>Thanks,</div>
                          <div>Uri</div>
                        </div>
                      </blockquote>
                    </div>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>