Hello,
hash size does not set any limitation to the number of dialogs (active calls), it has impact on searching the dialogs, so if you have a lot of active calls, increasing the hash size might improve performances. Effectively the hash size is used to compute the number of slots (aka buckets) the hash table is going to have, see more technical details about hash tables at:
- https://en.wikipedia.org/wiki/Hash_table
Can you elaborate on your statement:
> but even setting the hash size to a very tiny number does stop me from creating hundreds of dialogs
Do you mean you are not able to create as many dialogs as you want?
Cheers,
Daniel
Hello,
I am trying to properly size the use of the Dialog Module hash for our implementation using:
modparam("dialog", "hash_size", <number that is power of two>)
However, in my testing, I have been unable to figure out the relationship between the hash size and a number of dialogs I need to support. I think the hash size is specifying a memory block in kB, but even setting the hash size to a very tiny number does stop me from creating hundreds of dialogs.
Is there a way to determine a relationship between the hash size and a rough number of dialogs that would be expected?
An example of a a dialog looks like this from kamctl:
[root@kamailio01 ~]# kamctl dialog showdialog memory recordsdialog:: hash=22:70state:: 4ref_count:: 2timestart:: 1512151205timeout:: 36083666callid:: 0gQAAC8WAAACBAAALxYAAClws2wyL8GE+CSgRY7HIhmg9ZUIISZad46ntOPng3iPIcLaxzLFaytRTI7M0Bzz0g--@10.155.8.40from_tag:: 10.155.8.40+1+689d7e5e+8fcf481acaller_contact:: sip:43f0ae1480846185e8803f21e9f2b721@10.155.8.40:5060;transport=udpcaller_cseq:: 24115caller_route_set::caller_bind_addr:: udp:10.155.8.11:5060callee_bind_addr:: udp:10.155.8.11:5060to_uri:: sip:2052773090@sip.dcs-staging.netto_tag:: sip+1+bdcd0004+2038f37ccallee_contact:: sip:ca2013e84f10348a1cc825c12562bde7@10.155.8.40:5060;transport=udpcallee_cseq:: 0callee_route_set::
Thanks!--
Mark BlackfordDigium Cloud Services678.230.8769
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - www.asipto.com Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com