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.