[SR-Users] Kamailio LCR module memory concern
Alex Balashov
abalashov at evaristesys.com
Wed Jun 10 17:52:53 CEST 2015
On 06/10/2015 11:48 AM, Ali Taher wrote:
> Hi Alex,
>
> I don't know a lot about hash tables , and how hash buckets and memory are
> related.
> I just need to know the specs needed for a server in order to be able to
> handle 44 million or rules using LCR module , and what configuration
> (parameters) should be applied.
Well, an ideal hash function would require 44 million buckets for 44
million rules. :-) Given that this ideal is probably not attainable,
your safest bet is to go one power of 2 bigger, i.e. 2^26 (~67m buckets).
You should take the time to learn about hash algorithms and other O(1)
data structures. Their whole purpose is to keep lookup time of constant
computational complexity irrespectively of the number of entries. The
trade-off to make that possible is memory.
--
Alex Balashov | Principal | Evariste Systems LLC
303 Perimeter Center North, Suite 300
Atlanta, GA 30346
United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
More information about the sr-users
mailing list