<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
To refresh, what is the version you are using now? Looking at old
messages in this thread is about 3.3.2, but memjoin was not there,
iirc.<br>
<br>
Can you give the output for next command?<br>
<br>
kamctl mi get_statistics shmem:<br>
<br>
You can walk the shared memory chunks with gdb, but it may take
quite a while and not sure how useful will be.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 12/4/13 8:29 PM, Uri Shacked wrote:<br>
</div>
<blockquote
cite="mid:CAMMbDhQgjTnOapuihg1EQzF-vHBKOx-LpqfptjHA8w48MRomgA@mail.gmail.com"
type="cite">
<div dir="ltr">Any ideas?</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Nov 26, 2013 at 9:38 AM, 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 class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>mem_join=1 on cfg.</div>
<div>MEMDBG=0 on makefile.def</div>
</div>
<div class="HOEnZb">
<div class="h5">
<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
moz-do-not-send="true"
href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" 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">
<div text="#000000" bgcolor="#FFFFFF"> Hello,<br>
<br>
are you still using mem_join=1?<br>
<br>
Cheers,<br>
Daniel
<div><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" face="Times New
Roman" size="3"> </font>
<p class="MsoNormal" style="margin:0cm 0cm
0pt;line-height:normal"><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 class="MsoNormal" style="margin:0cm 0cm
0pt;line-height:normal"><span
style="font-family:"Arial","sans-serif";font-size:12pt"><font
color="#000000">It has been a while.</font></span></p>
<div>
<div> <font color="#000000" face="Times
New Roman" size="3"> </font>
<p class="MsoNormal" style="margin:0cm
0cm 0pt;line-height:normal"><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 class="MsoNormal" style="margin:0cm
0cm 0pt;line-height:normal"><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 class="MsoNormal" style="margin:0cm
0cm 0pt;line-height:normal"><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 class="MsoNormal" style="margin:0cm
0cm 0pt;line-height:normal"><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 class="MsoNormal" style="margin:0cm
0cm 0pt;line-height:normal"><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 class="MsoNormal" style="margin:0cm
0cm 0pt;line-height:normal"><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 class="MsoNormal" style="margin:0cm
0cm 0pt;line-height:normal"><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 class="MsoNormal" style="margin:0cm
0cm 0pt;line-height:normal"><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 class="MsoNormal" style="margin:0cm
0cm 0pt;line-height:normal"><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 class="MsoNormal" style="margin:0cm
0cm 0pt;line-height:normal"><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 class="MsoNormal" style="margin:0cm
0cm 0pt;line-height:normal"><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 class="MsoNormal" style="margin:0cm
0cm 0pt;line-height:normal"><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 class="MsoNormal" style="margin:0cm
0cm 0pt;line-height:normal"><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 class="MsoNormal" style="margin:0cm
0cm 0pt;line-height:normal"><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 class="MsoNormal" style="margin:0cm
0cm 10pt"><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 class="MsoNormal" style="margin:0cm
0cm 10pt"><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 class="MsoNormal" style="margin:0cm
0cm 10pt"><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>
</div>
<div>
<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 class="gmail_quote"
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">
<div dir="ltr">
<div><font face="Times New
Roman" size="3"> </font>
<p class="MsoNormal"
style="margin:0cm 0cm
0pt;line-height:normal"><span><br>
Hi,</span></p>
<font face="Times New Roman"
size="3"> </font>
<p class="MsoNormal"
style="margin:0cm 0cm
0pt;line-height:normal"><span>I
have this memory issue
again.</span></p>
<font face="Times New Roman"
size="3"> </font>
<p class="MsoNormal"
style="margin:0cm 0cm
0pt;line-height:normal"><span>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 class="MsoNormal"
style="margin:0cm 0cm
0pt;line-height:normal"><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 face="Times New Roman"
size="3"> </font>
<p class="MsoNormal"
style="margin:0cm 0cm
0pt;line-height:normal"><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 face="Times New Roman"
size="3"> </font>
<p class="MsoNormal"
style="margin:0cm 0cm
0pt;line-height:normal"><span>The
traffic is not the issue.</span></p>
<font face="Times New Roman"
size="3"> </font>
<p class="MsoNormal"
style="margin:0cm 0cm
0pt;line-height:normal"><span>Still,
can defrag of memory
improve? Ideas for defrag?</span></p>
<font face="Times New Roman"
size="3"> </font>
<p class="MsoNormal"
style="margin:0cm 0cm
0pt;line-height:normal"><span>Thanks,</span></p>
<font face="Times New Roman"
size="3"> </font>
<p class="MsoNormal"
style="margin:0cm 0cm
6pt;line-height:normal"><span>Uri</span></p>
<font face="Times New Roman"
size="3"> </font><br>
</div>
<div>
<div>
<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
class="gmail_quote"
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">
<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>
<pre cols="72">--
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</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>