<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I have no idea.. im new to ser.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Just thought id point out that the total
mem used is not always accurate.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Arun Kumar
[mailto:arunvoip@gmail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> 20 June 2007 16:57<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Morgan
 Gilroy</st1:PersonName><br>
<b><span style='font-weight:bold'>Cc:</span></b> serusers@lists.iptel.org; USER<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Users] regarding
memory usage</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>can you please explain my
first ques:<br>
<br>
1. Is there any benefit of increasing the value of PKG_MEM_POOL_SIZE and
SHM_MEM_SIZE ?<br>
<br>
/*used only if PKG_MALLOC is defined*/<br>
#define PKG_MEM_POOL_SIZE 1024*1024<br>
<br>
/*used if SH_MEM is defined*/<br>
#define SHM_MEM_SIZE 32<br>
<br>
thanks<br>
arun<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 6/20/07, <st1:PersonName w:st="on"><b><span
 style='font-weight:bold'>Morgan Gilroy</span></b></st1:PersonName> &lt;<a
href="mailto:morgan@telappliant.com"> morgan@telappliant.com</a>&gt; wrote:</span></font></span><o:p></o:p></p>

<div link="#0000ff" vlink="#0000ff">

<div>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>If you use `free &#8211;m` it shows the amount of memory in mega
bytes, should be easier to read. </span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Mem:</span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Total: total memory in your system</span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Used: Memory used by all processes and disk cache etc..</span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Free: memory that is not being used at all</span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>(ignore the others as they are no longer used) </span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>-/+ buffers = same as above except not counting disk cache
and other temporary memory usage. This is what is really being used.</span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Swap: this is the swap space on the disk.</span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>When an application requests memory it first gets memory from
the free memory, if there is not enough then it takes memory from the disk
cache and other buffers. The cache is there just to speed up access but it can
use a lot of ram. </span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Look at `man free` or google if you want a further
explanation.</span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p><b><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
font-weight:bold'>From:</span></font></b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'> Arun Kumar [mailto:<a
href="mailto:arunvoip@gmail.com" target="_blank"> arunvoip@gmail.com</a>] <br>
<b><span style='font-weight:bold'>Sent:</span></b> 20 June 2007 16:09<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Morgan
 Gilroy</st1:PersonName><br>
<b><span style='font-weight:bold'>Cc:</span></b> USER; <a
href="mailto:serusers@lists.iptel.org" target="_blank">serusers@lists.iptel.org</a><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Users] regarding
memory usage </span></font><o:p></o:p></p>

</div>

<div><span id="q_11349d7038f91ae4_1">

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p style='margin-bottom:12.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'># free<br>
total used free shared buffers cached<br>
Mem: 2074376 1740724 333652 0 72328 1280192<br>
-/+ buffers/cache: 388204 1686172<br>
Swap: 2031608 0 2031608 <br>
<br>
can you please explain in brief all the info. <br>
<br>
thanks<br>
arun<o:p></o:p></span></font></p>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>On
6/20/07, <st1:PersonName w:st="on"><b><span style='font-weight:bold'>Morgan
 Gilroy</span></b></st1:PersonName> &lt;<a href="mailto:morgan@telappliant.com"
target="_blank"> morgan@telappliant.com </a>&gt; wrote:<o:p></o:p></span></font></p>

<div link="#0000ff" vlink="#800080">

<div>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>The numbers shown for memory usage also include shared
memory, ie memory used by multiple processes/threads, these shared areas will
be counted multiple times. </span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Use `free` to find the real amount of used memory on your
server (look at the +/- buffers section)</span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p><b><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
font-weight:bold'>From:</span></font></b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'> <a
href="mailto:users-bounces@openser.org" target="_blank">users-bounces@openser.org</a>
[mailto:<a href="mailto:users-bounces@openser.org" target="_blank">users-bounces@openser.org</a>]
<b><span style='font-weight:bold'>On Behalf Of </span></b>Arun Kumar<br>
<b><span style='font-weight:bold'>Sent:</span></b> 20 June 2007 14:44<br>
<b><span style='font-weight:bold'>To:</span></b> USER; <a
href="mailto:serusers@lists.iptel.org" target="_blank">serusers@lists.iptel.org</a><br>
<b><span style='font-weight:bold'>Subject:</span></b> [Users] regarding memory
usage</span></font><o:p></o:p></p>

</div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp; <o:p></o:p></span></font></p>

<div>

<p style='margin-bottom:12.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Hi<br>
<br>
1.
Is&nbsp;there&nbsp;any&nbsp;benefit&nbsp;of&nbsp;increasing&nbsp;the&nbsp;value&nbsp;of&nbsp;&nbsp;PKG_MEM_POOL_SIZE
&nbsp;and SHM_MEM_SIZE ? <br>
<br>
/*used only if PKG_MALLOC is defined*/<br>
#define PKG_MEM_POOL_SIZE 1024*1024<br>
<br>
/*used if SH_MEM is defined*/<br>
#define SHM_MEM_SIZE 32<br>
<br>
<br>
2. I've compiled my ser with <br>
<br>
#define PKG_MEM_POOL_SIZE 1024*1024*512 <br>
<br>
ans started using ser -m 100 option with children=4 and listening on two ips<br>
<br>
when I started memory usages was seems to fine for few days(3-4) less then
1GB&nbsp;but&nbsp;after&nbsp;that&nbsp;nealy&nbsp;
1.7&nbsp;-&nbsp;1.8&nbsp;GB&nbsp;of&nbsp;memory&nbsp;usage&nbsp;and&nbsp;when&nbsp;I&nbsp;do&nbsp;top:
<br>
<br>
16165 root 15 0 617m 54m 36m S 0.3 2.7 0:16.34 ser<br>
16167 root 15 0 617m 54m 36m S 0.3 2.7 0:15.89 ser<br>
16164 root 15 0 617m 54m 36m S 0.3 2.7 0:16.29 ser<br>
16166 root 15 0 617m 54m 36m S 0.7 2.7 0:16.16 ser <br>
16172 root 16 0 617m 53m 35m S 0.0 2.7 0:05.04 ser<br>
16168 root 16 0 617m 52m 34m S 0.0 2.6 0:00.09 ser <br>
16170 root 16 0 617m 52m 34m S 0.0 2.6 0:00.07 ser<br>
16169 root 16 0 617m 52m 34m S 0.0 2.6 0:00.08 ser<br>
16171 root 16 0 617m 52m 34m S 0.0 2.6 0:00.10 ser<br>
16163 root 16 0 617m 52m 34m S 0.0 2.6 0:00.01 ser<br>
16145 root 25 0 617m 52m 34m S 0.0 2.6 0:07.80 ser<br>
<br>
it shows 11 instance of ser with above info. If I sum up <br>
617 * 11 = 6787 MB of memory but in my machine I've only 2 GB Physical RAM and
it never uses Swap ? <br>
if 54 * 11 = &nbsp;594 ? but free -m and top shows more memory usage ?<br>
<br>
can please explain me in brief . I'll be really thankfull. B'coz of this I'm
facing may problem. <br>
<br>
thanks<br>
<br>
arun<br>
<br>
<o:p></o:p></span></font></p>

</div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>______________________________________________________________________<br>
This email has been scanned by the MessageLabs Email Security System.<br>
For more information please visit <a href="http://www.messagelabs.com/email"
target="_blank">http://www.messagelabs.com/email</a> <br>
______________________________________________________________________ <o:p></o:p></span></font></p>

</div>

</div>

<p style='margin-bottom:12.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openser.org" target="_blank">Users@openser.org</a><br>
<a href="http://openser.org/cgi-bin/mailman/listinfo/users" target="_blank">http://openser.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></span></font></p>

</div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
<br>
______________________________________________________________________ <br>
This email has been scanned by the MessageLabs Email Security System.<br>
For more information please visit <a href="http://www.messagelabs.com/email"
target="_blank">http://www.messagelabs.com/email</a> <br>
______________________________________________________________________<o:p></o:p></span></font></p>

</div>

</div>

</div>

</div>

</span>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
______________________________________________________________________<br>
This email has been scanned by the MessageLabs Email Security System.<br>
For more information please visit http://www.messagelabs.com/email <br>
______________________________________________________________________<o:p></o:p></span></font></p>

</div>

</body>

</html>