Module: kamailio
Branch: master
Commit: ac531266077490a85f1ab98853fd64df6feeea43
URL: https://github.com/kamailio/kamailio/commit/ac531266077490a85f1ab98853fd64d…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-05-01T17:31:09+02:00
modules: readme files regenerated - htable ... [skip ci]
---
Modified: src/modules/htable/README
---
Diff: https://github.com/kamailio/kamailio/commit/ac531266077490a85f1ab98853fd64d…
Patch: https://github.com/kamailio/kamailio/commit/ac531266077490a85f1ab98853fd64d…
---
diff --git a/src/modules/htable/README b/src/modules/htable/README
index 4aa4c258a9..ca193e2213 100644
--- a/src/modules/htable/README
+++ b/src/modules/htable/README
@@ -444,11 +444,17 @@ $ kamcmd htable.dump htable
configuration file.
* htname - string specifying the name of the hash table. This string
is used by $sht(...) to refer to the hash table.
- * size - number specifying the size of hash table. Larger value means
- less collisions. The number of entries (aka slots or buckets) in
- the table is 2^size. The possible range for this value is from 2 to
- 31, smaller or larger values will be increased to 3 (8 slots) or
- decreased to 14 (16384 slots).
+ * size - number to control how many slots (buckets) to create for the
+ hash table. Larger value means more slots with higher probability
+ for less collisions. The actual number slots (or buckets) created
+ for the table is 2^size. The possible range for this value is from
+ 2 to 31, smaller or larger values will be increased to 3 (8 slots)
+ or decreased to 14 (16384 slots). Note that each slot can store
+ more than one item, when there are collisions of hash ids computed
+ for keys. The items in the same slot are stored in a linked list.
+ In other words, the size is not setting a limit of how many items
+ can be stored in a hash table, as long as there is enough free
+ shared memory, new items can be added.
* autoexpire -time in seconds to delete an item from a hash table if
no update was done to it. If is missing or set to 0, the items
won't expire.
Module: kamailio
Branch: master
Commit: 35f711e6ec74c6e67edf99adaa15cc353f2ce949
URL: https://github.com/kamailio/kamailio/commit/35f711e6ec74c6e67edf99adaa15cc3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-01T17:26:39+02:00
htable: docs - more details about size attribute for htable
---
Modified: src/modules/htable/doc/htable_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/35f711e6ec74c6e67edf99adaa15cc3…
Patch: https://github.com/kamailio/kamailio/commit/35f711e6ec74c6e67edf99adaa15cc3…
---
diff --git a/src/modules/htable/doc/htable_admin.xml b/src/modules/htable/doc/htable_admin.xml
index 408fb137d9..573d801bba 100644
--- a/src/modules/htable/doc/htable_admin.xml
+++ b/src/modules/htable/doc/htable_admin.xml
@@ -341,11 +341,17 @@ $ kamcmd htable.dump htable
</listitem>
<listitem>
<para>
- <emphasis>size</emphasis> - number specifying the size of hash
- table. Larger value means less collisions. The number of entries
- (aka slots or buckets) in the table is 2^size. The possible range
+ <emphasis>size</emphasis> - number to control how many slots
+ (buckets) to create for the hash table. Larger value means more
+ slots with higher probability for less collisions. The actual number
+ slots (or buckets) created for the table is 2^size. The possible range
for this value is from 2 to 31, smaller or larger values will be
- increased to 3 (8 slots) or decreased to 14 (16384 slots).
+ increased to 3 (8 slots) or decreased to 14 (16384 slots). Note
+ that each slot can store more than one item, when there are
+ collisions of hash ids computed for keys. The items in the same
+ slot are stored in a linked list. In other words, the size is not
+ setting a limit of how many items can be stored in a hash table, as
+ long as there is enough free shared memory, new items can be added.
</para>
</listitem>
<listitem>