<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    <div class="moz-cite-prefix">On 11/18/12 12:52 PM, Moacir Ferreira
      wrote:<br>
    </div>
    <blockquote cite="mid:COL125-W369331B87F83090598BFEEC8570@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
      <div dir="ltr">
        Hi,<br>
        &nbsp;<br>
        I am trying to figure out how much memory a Kamailio server
        should have to support an X number of users, considering that I
        am running Kamailio, MySQL and RTPproxy on the same machine. I
        am planning to use Kamailio at medium/large enterprises, not at
        service providers but I got the following questions:<br>
        <br>
        - Will Kamailio dynamically&nbsp;allocate the system memory it needs
        or I have to tune up the memory it takes? I.e.: If I use 8G
        memory, will it take what it needs or I&nbsp;need to adjust it
        somewhere?<br>
        &nbsp;<br>
        - How much memory is reasonable for 10K, 50K and 100K users in
        such "enterprise" scenarios?<br>
        &nbsp;<br>
        - Can you reference any documentation from where I can get this
        information?<br>
      </div>
    </blockquote>
    Kamailio uses its own pool of memory that is specified at startup
    (-m and -M command line parameters, see 'man kamailio' or 'kamailio
    -h').<br>
    <br>
    Usage of mysql or rtpproxy do not impact much what kamailio needs,
    with the higher subscribers number, perhaps you are fine with 2-4GB
    of shared memory (it can be ok even less, though) and 8MB of private
    memory. Shared memory needs are a matter of what caching modules you
    are using and number of records (usrloc and location records, tm and
    active transactions, dialog and active calls, mtree/lcr/... and
    afferent records).<br>
    <br>
    You can watch how much memory is used simulating with sipp based on
    your config and adjust the values.<br>
    <br>
    Cheers,<br>
    Daniel<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>