<div dir="ltr"><div>mem_join=1 on cfg.</div><div>MEMDBG=0 on makefile.def</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 25, 2013 at 10:40 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
are you still using mem_join=1?<br>
<br>
Cheers,<br>
Daniel<div class="im"><br>
<br>
<div>On 11/24/13 10:01 AM, Uri Shacked
wrote:<br>
</div>
</div><blockquote type="cite">
<div dir="ltr">
<div><font color="#000000" size="3" face="Times New Roman">
</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" size="3" face="Times New Roman">
</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><div>
<div class="h5">
<font color="#000000" size="3" face="Times New Roman">
</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" size="3" face="Times New Roman">
</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" size="3" face="Times New Roman">
</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" size="3" face="Times New Roman">
</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" size="3" face="Times New Roman">
</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" size="3" face="Times New Roman">
</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" size="3" face="Times New Roman">
</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" size="3" face="Times New Roman">
</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" size="3" face="Times New Roman">
</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" size="3" face="Times New Roman">
</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" size="3" face="Times New Roman">
</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" size="3" face="Times New Roman">
</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" size="3" face="Times New Roman">
</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" size="3" face="Times New Roman">
</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" size="3" face="Times New Roman">
</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" size="3" face="Times New Roman">
</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" size="3" face="Times New Roman">
</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" size="3" face="Times New Roman">
</font></div></div></div><div><div class="h5">
<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 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 size="3" face="Times New Roman">
</font>
<p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span><br>
Hi,</span></p>
<font size="3" face="Times New Roman">
</font>
<p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span>I
have this memory issue again.</span></p>
<font size="3" face="Times New Roman">
</font>
<p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span>The
status now is that I compiled
kamailio as followed here and use mem_join=1.</span></p>
<font size="3" face="Times New Roman">
</font>
<p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span>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 size="3" face="Times New Roman">
</font>
<p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span>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 size="3" face="Times New Roman">
</font>
<p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span>The
traffic is not the issue.</span></p>
<font size="3" face="Times New Roman">
</font>
<p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span>Still,
can defrag of memory improve?
Ideas for defrag?</span></p>
<font size="3" face="Times New Roman">
</font>
<p style="margin:0cm 0cm 0pt;line-height:normal" class="MsoNormal"><span>Thanks,</span></p>
<font size="3" face="Times New Roman">
</font>
<p style="margin:0cm 0cm 6pt;line-height:normal" class="MsoNormal"><span>Uri</span></p>
<font size="3" face="Times New Roman">
</font><br>
</div>
<div>
<div>
<div class="gmail_quote">On Tue, Nov 27, 2012 at
12:37 PM, Uri Shacked <span dir="ltr"><<a 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></div></div>
</blockquote>
<br><div class="im">
<pre cols="72">--
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</div></div>
</blockquote></div><br></div>