Hello;
I am trying to incraese Kamailio performance with Radius Modules. After 2 day testing Kamailio i get that results;
After 1000+ calls , kamailio cannot give response sip calls but couldn't find any error about radius , still diggin'
without radius module , it is easy to pass 2000+ calls and see no problem.
all above calls sends between 2 and 155 ms . if increase call per seconds kamailio cannot give response.
changing child , pkg and shmem parameteres don't change anything. i will try later again.
With radius module , i used freeradius-client instead of radiusclient-ng.to do run with it , need to fix Makefile.radius file
Now , it is testing to udp_raw mode on. i am gonna share results here. there is a udp_raw_mtu parameter. what should be , how can i calculate this parameter?
i want to ask one more question. There is a flag DBG_F_MALLOC . is it effect kamailio performance.
Thanks
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/332
Module: kamailio
Branch: master
Commit: 6b07f1b0d07068836093560ddbdf67b102e5c6c6
URL: https://github.com/kamailio/kamailio/commit/6b07f1b0d07068836093560ddbdf67b…
Author: Federico Favaro <federico(a)aereo.lan.athonet.com>
Committer: Federico Favaro <federico(a)aereo.lan.athonet.com>
Date: 2015-09-18T11:52:11+02:00
cdp: Fix crash on applications memory reservation
Fix a crash on applications shared memory allocation
when Diameter CEA contains Auth_Applications or Acct_Applications
AVPs not "embedded" into Vendor_Specific grouped AVP
Before only the memory for applications found on Vendor_Specific
AVP was reserved, but if Acct_Applications or Auth_Applications
not Vendor Specific is found, you need to reserve memory for
the number of Acct_Applications or Auth_Applications AVPs found
multiplied by the number of Supported Vendor ID AVPs found.
---
Modified: modules/cdp/diameter_avp.c
Modified: modules/cdp/peerstatemachine.c
---
Diff: https://github.com/kamailio/kamailio/commit/6b07f1b0d07068836093560ddbdf67b…
Patch: https://github.com/kamailio/kamailio/commit/6b07f1b0d07068836093560ddbdf67b…
Fix a crash on applications shared memory allocation
when Diameter CEA contains Auth_Applications or Acct_Applications
AVPs not "embedded" into Vendor_Specific grouped AVP
Before only the memory for applications found on Vendor_Specific
AVP was reserved, but if Acct_Applications or Auth_Applications
not Vendor Specific is found, you need to reserve memory for
the number of Acct_Applications or Auth_Applications AVPs found
multiplied by the number of Supported Vendor ID AVPs found.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/330
-- Commit Summary --
* Fix crash on applications memory reservation
-- File Changes --
M modules/cdp/diameter_avp.c (7)
M modules/cdp/peerstatemachine.c (42)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/330.patchhttps://github.com/kamailio/kamailio/pull/330.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/330
Module: kamailio
Branch: master
Commit: 0038fa4de8a6399652d5b6efff3190dcb43fa577
URL: https://github.com/kamailio/kamailio/commit/0038fa4de8a6399652d5b6efff3190d…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Date: 2015-09-18T10:57:19+02:00
tsilo: regenerated README
---
Modified: modules/tsilo/README
---
Diff: https://github.com/kamailio/kamailio/commit/0038fa4de8a6399652d5b6efff3190d…
Patch: https://github.com/kamailio/kamailio/commit/0038fa4de8a6399652d5b6efff3190d…
---
diff --git a/modules/tsilo/README b/modules/tsilo/README
index 5baafd8..40d09dd 100644
--- a/modules/tsilo/README
+++ b/modules/tsilo/README
@@ -38,6 +38,14 @@ Federico Cabiddu
5.1. ts.dump
5.2. ts.lookup
+ 6. Statistics
+
+ 6.1. stored_ruris
+ 6.2. stored_transactions
+ 6.3. added_branches
+ 6.4. total_ruris
+ 6.5. total_transactions
+
List of Examples
1.1. Set hash_size parameter
@@ -70,6 +78,14 @@ Chapter 1. Admin Guide
5.1. ts.dump
5.2. ts.lookup
+ 6. Statistics
+
+ 6.1. stored_ruris
+ 6.2. stored_transactions
+ 6.3. added_branches
+ 6.4. total_ruris
+ 6.5. total_transactions
+
1. Overview
This module provides transaction storage for the Kamailio SIP Server
@@ -77,13 +93,8 @@ Chapter 1. Admin Guide
(R-URI) and add branches to them later if new contacts for the AOR are
added.
- When the ts_store function is called, the module stores the current
- transaction R-URI URI, index and label. Two functions (ts_append and
- ts_append_to) provide the ability to add new branches either to a
- specific transaction or to all of the transactions stored for a given
- R-URI. If USRLOC's use_domain option is true, the domain part of the
- R-URI is used to store the transaction, otherwise only the username
- part is used.
+ For each message, the modules stores “Request-URI” (“R-URI”), URI and
+ the internal transaction index and label.
When a transaction is destroyed by the TM module, it is removed from
the module's table too.
@@ -220,3 +231,31 @@ if (is_method("REGISTER")) {
RPC Command Format:
kamcmd ts.lookup sip:abcd@example.com
+
+6. Statistics
+
+ 6.1. stored_ruris
+ 6.2. stored_transactions
+ 6.3. added_branches
+ 6.4. total_ruris
+ 6.5. total_transactions
+
+6.1. stored_ruris
+
+ Number of ruris currently stored in the TSILO table.
+
+6.2. stored_transactions
+
+ Number of transactions currently stored in the TSILO table.
+
+6.3. added_branches
+
+ Total number of added branches from the startup.
+
+6.4. total_ruris
+
+ Total number of stored ruris from the startup.
+
+6.5. total_transactions
+
+ Total number of stored transactions from the startup.
Module: kamailio
Branch: master
Commit: 4c32cfd717bca062d383f5bf19e899606e4a79ec
URL: https://github.com/kamailio/kamailio/commit/4c32cfd717bca062d383f5bf19e8996…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Date: 2015-09-18T10:57:05+02:00
tsilo: updated module's documentation
---
Modified: modules/tsilo/doc/tsilo_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/4c32cfd717bca062d383f5bf19e8996…
Patch: https://github.com/kamailio/kamailio/commit/4c32cfd717bca062d383f5bf19e8996…
---
diff --git a/modules/tsilo/doc/tsilo_admin.xml b/modules/tsilo/doc/tsilo_admin.xml
index 7625059..dfc5c2b 100644
--- a/modules/tsilo/doc/tsilo_admin.xml
+++ b/modules/tsilo/doc/tsilo_admin.xml
@@ -21,7 +21,9 @@
to them later if new contacts for the AOR are added.
</para>
<para>
- When the <emphasis>ts_store</emphasis> function is called, the module stores the current transaction R-URI &uri;, index and label. Two functions (<emphasis>ts_append</emphasis> and <emphasis>ts_append_to</emphasis>) provide the ability to add new branches either to a specific transaction or to all of the transactions stored for a given R-URI. If USRLOC's <emphasis>use_domain</emphasis> option is true, the domain part of the R-URI is used to store the transaction, otherwise only the username part is used.
+ For each message, the modules stores <quote>Request-URI</quote>
+ (<quote>R-URI</quote>), &uri; and the internal transaction index
+ and label.
</para>
<para>
When a transaction is destroyed by the <emphasis>TM</emphasis> module,
@@ -229,4 +231,37 @@ if (is_method("REGISTER")) {
</programlisting>
</section>
</section>
+ <section>
+ <title>Statistics</title>
+ <section>
+ <title><varname>stored_ruris</varname></title>
+ <para>
+ Number of ruris currently stored in the TSILO table.
+ </para>
+ </section>
+ <section>
+ <title><varname>stored_transactions</varname></title>
+ <para>
+ Number of transactions currently stored in the TSILO table.
+ </para>
+ </section>
+ <section>
+ <title><varname>added_branches</varname></title>
+ <para>
+ Total number of added branches from the startup.
+ </para>
+ </section>
+ <section>
+ <title><varname>total_ruris</varname></title>
+ <para>
+ Total number of stored ruris from the startup.
+ </para>
+ </section>
+ <section>
+ <title><varname>total_transactions</varname></title>
+ <para>
+ Total number of stored transactions from the startup.
+ </para>
+ </section>
+ </section>
</chapter>