<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:m="http://schemas.microsoft.com/office/2004/12/omml" 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 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Consolas","serif";
        color:black;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Thanks Daniel<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">The average item will be relatively small (10 digits for the key, and 7 to 10 digits for the value), and the quantity will be approximately 300-350 million entries.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I do not expect it to require reloading or updating very frequently.  Perhaps once or twice a month.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">As far as the wait for it to load, these devices are behind a load balancer and can easily wait for the load to complete before “going live”, so that’s not that big of a concern.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Century Gothic","sans-serif"">Brooks Bridges |
</span></b><span style="font-size:8.0pt;font-family:"Century Gothic","sans-serif"">Sr. Voice Services Engineer<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Century Gothic","sans-serif";color:maroon">O<sup>1</sup> Communications</span></b><span style="font-size:8.0pt;font-family:"Century Gothic","sans-serif";color:blue"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.0pt;font-family:"Century Gothic","sans-serif";color:gray">5190 Golden Foothill Pkwy
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.0pt;font-family:"Century Gothic","sans-serif";color:gray">El Dorado Hills, CA 95762</span><span style="font-size:7.0pt;font-family:"Century Gothic","sans-serif";color:blue"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:7.0pt;font-family:"Century Gothic","sans-serif";color:maroon">office:</span></b><span style="font-size:7.0pt;font-family:"Century Gothic","sans-serif";color:blue">
</span><span style="font-size:7.0pt;font-family:"Century Gothic","sans-serif"">916.235.2097 |</span><span style="font-size:7.0pt;font-family:"Century Gothic","sans-serif";color:blue">
</span><b><span style="font-size:7.0pt;font-family:"Century Gothic","sans-serif";color:maroon">main:</span></b><span style="font-size:7.0pt;font-family:"Century Gothic","sans-serif""> 888.444.1111, Option 2</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:blue"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:7.0pt;font-family:"Century Gothic","sans-serif";color:maroon">email:</span></b><span style="font-size:7.0pt;font-family:"Century Gothic","sans-serif";color:blue">
<a href="mailto:bbridges@o1.com">bbridges@o1.com</a> </span><span style="font-size:7.0pt;font-family:"Century Gothic","sans-serif"">| </span><b><span style="font-size:7.0pt;font-family:"Century Gothic","sans-serif";color:maroon">web:</span></b><span style="font-size:7.0pt;font-family:"Century Gothic","sans-serif";color:blue">
</span><span style="color:#1F497D"><a href="http://www.o1.com/"><span style="font-size:7.0pt;font-family:"Century Gothic","sans-serif";color:black">www.o1.com</span></a></span><span style="color:blue"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> sr-users [mailto:sr-users-bounces@lists.sip-router.org]
<b>On Behalf Of </b>Daniel-Constantin Mierla<br>
<b>Sent:</b> Monday, April 13, 2015 1:19 AM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List<br>
<b>Subject:</b> Re: [SR-Users] Maximum feasible size of htable?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in">
Hello,<br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:.5in">On 11/04/15 00:17, Brooks Bridges wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="margin-left:.5in">I have a small-ish project that could benefit from using an htable for storage of very basic data that doesn’t change much, and I’d like to get an idea of what the group’s experience is with storing larger amounts
 of data?  Something in the 15-20GB range.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Yes I could use Redis, but the idea here is to minimize the amount of dependencies and processing required.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Thoughts?<o:p></o:p></p>
</blockquote>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">how many items you will have in the hash table, or in other words, how big is the average size of in item in the hash table?<br>
<br>
Performances can be improved by adjusting the number of slots.<br>
<br>
Another thing to consider is the loading in cache, when kamailio is starting. It can take long when it is a really huge amount of records in the backend, so if you need to restart or reload often, might not worth it. On the other hand, you can add/remove by
 item from hash table.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<o:p></o:p></span></p>
<pre style="margin-left:.5in">-- <o:p></o:p></pre>
<pre style="margin-left:.5in">Daniel-Constantin Mierla<o:p></o:p></pre>
<pre style="margin-left:.5in"><a href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a><o:p></o:p></pre>
<pre style="margin-left:.5in">Kamailio World Conference, May 27-29, 2015<o:p></o:p></pre>
<pre style="margin-left:.5in">Berlin, Germany - <a href="http://www.kamailioworld.com">http://www.kamailioworld.com</a><o:p></o:p></pre>
</div>
</body>
</html>