<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<br>thank you Henning<br><br>"A PKG setting of 4-8 MB and a shared pool of 512MB should be&nbsp; really enough"<br><pre>"Normally you're more concerned about private (per process) memory,"<br><br></pre>where do I set them?<br><br>thank you<br>fborot<br><div>
<div>&nbsp;</div></div><br><br><div>&gt; From: henning.westerholt@1und1.de<br>&gt; To: sr-users@lists.sip-router.org<br>&gt; Subject: Re: [SR-Users] memory requirements for a registrar server<br>&gt; Date: Wed, 13 Jul 2011 13:00:47 +0200<br>&gt; CC: fborot@hotmail.com<br>&gt; <br>&gt; On Tuesday 12 July 2011, Fabian Borot wrote:<br>&gt; &gt; We are going to use kamailio 3.1.4 for a registrar server and need to know<br>&gt; &gt; if the default parameters [shared memory and the like] is fine or if we<br>&gt; &gt; need to plan in advance and increase it at compile time. If so, how should<br>&gt; &gt; we proceed about it?<br>&gt; <br>&gt; Hi Fabian,<br>&gt; <br>&gt; the exact configuration depends on the load of your scenario, exact traffic <br>&gt; patterns etc.. A PKG setting of 4-8 MB and a shared pool of 512MB should be <br>&gt; really enough, if you don't have too extreme load.<br>&gt;  <br>&gt; &gt; For subscribers and location type of information, which memory type should<br>&gt; &gt; we be more concerned about? private memory, shared memory, memory per<br>&gt; &gt; process etc because it looks like some modules use shared memory others<br>&gt; &gt; private memory etc.<br>&gt; <br>&gt; Normally you're more concerned about private (per process) memory, as this <br>&gt; used to be a compile time definition and its generally smaller. In upcoming <br>&gt; 3.2 it will be possible to change it with a commandline parameter.<br>&gt; <br>&gt; &gt; Also , I see that the command "kamctl fifo get_statistics all" gives info<br>&gt; &gt; about memory used etc. How should we interpret the output like this:<br>&gt; <br>&gt; The output is about the shared memory pool memory manager.<br>&gt; <br>&gt; &gt; shmem:fragments = 24<br>&gt; <br>&gt; memory fragments<br>&gt; <br>&gt; &gt; shmem:free_size = 9665456<br>&gt; <br>&gt; free size<br>&gt; <br>&gt; &gt; shmem:max_used_size = 23915072<br>&gt; <br>&gt; probably maximum used size since start<br>&gt; <br>&gt; &gt; shmem:real_used_size = 23888976<br>&gt; <br>&gt; total size plus overhead from malloc<br>&gt; <br>&gt; &gt; shmem:total_size = 33554432<br>&gt; <br>&gt; total size of memory pool, e.g. value from command line<br>&gt; <br>&gt; &gt; shmem:used_size = 23648072<br>&gt; <br>&gt; allocated size<br>&gt; <br>&gt; &gt; is this fifo function exported by a specific module?<br>&gt; <br>&gt; Its exported from the kamailio core.<br>&gt; <br>&gt; Best regards,<br>&gt; <br>&gt; Henning<br></div>                                               </div></body>
</html>