On 14 Jan 2025, at 05:12, Daniel W. Graham via sr-users <sr-users@lists.kamailio.org> wrote:
Yes, on the same page with all of this. Good to know performance is comparable and I can focus optimization efforts on non kemi functions.
In this case clickhouse access was needed, so that's where the impact is occurring now that kemi scripting issues are under control. Performance is continuing to improve.
Thanks Daniel
-dan
From: Daniel-Constantin Mierla <miconda@gmail.com>
Sent: Monday, January 13, 2025 02:31
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>; Henning Westerholt <hw@gilawa.com>
Cc: Daniel W. Graham <dan@cmsinter.net>
Subject: Re: [SR-Users] Re: Performance issues with KEMI
Caution: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe
Hello,
the performance of KEMI was compared when using Kamailio exported functions, in the way that a function implemented inside Kamailio has pretty much same performance when using it inside a kemi script or inside native config file. For example, if one uses KSR.auth.pv_auth_check(...) inside kemi script or pv_auth_check(...) inside kamailio.cfg, then the performance is very much the same.
Now, if you use a pure python/lua/... library inside your kemi script and it has poor performances, then of course kamailio is slowed down, it is nothing that can be done by kamailio code to improve that.
If you need to access database, sqlops functions are also exported to kemi.
To summarize, the goal was that the kemi engine does not add any (or at least not significant) performance to execute Kamailio-specific functions compared to execution by native config interpreter.
Cheers,
Daniel
On 13.01.25 03:56, Daniel W. Graham via sr-users wrote:Native config resulted in over 10k calls per second without any drops.
I made some adjustments to the python config, looks like there was an issue with the way I had been using return. That is handling almost 10k calls now.
However, when adding in other logic such as database calls using python libraries, back to a few dozen calls before the queue grows and drops occur.
If performance is expected to be close to native, then I probably need to continue identifying configuration issues.
-dan
From: Daniel W. Graham via sr-users <sr-users@lists.kamailio.org>
Sent: Sunday, January 12, 2025 10:32
To: Henning Westerholt <hw@gilawa.com>; Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Cc: Daniel W. Graham <dan@cmsinter.net>
Subject: [SR-Users] Re: Performance issues with KEMI
Caution: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe
I haven't converted this test to native configuration yet. That is my next step to rule out any general issues. I've never experienced any performance issues like this before and since this was my first test using KEMI I assumed it was related in some fashion. I've read through performance optimization related posts and documents that I've been able to find.
-dan
__________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!__________________________________________________________-- Daniel-Constantin Mierla (@ asipto.com) twitter.com/miconda -- linkedin.com/in/miconda Kamailio Consultancy, Training and Development Services -- asipto.com
Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!