Browse code

modules: readme files regenerated - modules ... [skip ci]

Kamailio Dev authored on 06/05/2020 10:31:52
Showing 1 changed files
... ...
@@ -442,11 +442,17 @@ $ kamcmd htable.dump htable
442 442
    configuration file.
443 443
      * htname - string specifying the name of the hash table. This string
444 444
        is used by $sht(...) to refer to the hash table.
445
-     * size - number specifying the size of hash table. Larger value means
446
-       less collisions. The number of entries (aka slots or buckets) in
447
-       the table is 2^size. The possible range for this value is from 2 to
448
-       31, smaller or larger values will be increased to 3 (8 slots) or
449
-       decreased to 14 (16384 slots).
445
+     * size - number to control how many slots (buckets) to create for the
446
+       hash table. Larger value means more slots with higher probability
447
+       for less collisions. The actual number slots (or buckets) created
448
+       for the table is 2^size. The possible range for this value is from
449
+       2 to 31, smaller or larger values will be increased to 3 (8 slots)
450
+       or decreased to 14 (16384 slots). Note that each slot can store
451
+       more than one item, when there are collisions of hash ids computed
452
+       for keys. The items in the same slot are stored in a linked list.
453
+       In other words, the size is not setting a limit of how many items
454
+       can be stored in a hash table, as long as there is enough free
455
+       shared memory, new items can be added.
450 456
      * autoexpire -time in seconds to delete an item from a hash table if
451 457
        no update was done to it. If is missing or set to 0, the items
452 458
        won't expire.