[SR-Users] event_route[core:msg-received] native vs kemi/lua

Daniel-Constantin Mierla miconda at gmail.com
Tue Nov 12 21:00:16 CET 2019


Hello,

is it really just 'exit' in the ksr_core_received()? Because that should
shut down kamailio.

Anyhow, practically with the examples here, you test the difference
between looking up a function and doing exit in native kamailio.cfg and
lua script, which is really marginal comparing with the rest of
configuration file in a usual production deployment. Have you tested
with a more complex set of actions/functions?

Cheers,
Daniel

On 12.11.19 17:36, GG GG wrote:
> Hi!
>
> I just made a simple test performance between native script and
> kemi/lua with the event_route[core:msg-received] callback.
>
> # lua script children=1 cpu.process=100%
> function ksr_core_received()
>   exit;
> end
>
> # native script children=1 cpu.process=70%
> event_route[core:msg-received] {
>   exit;
> }
>
> # tested with udp 5060, 1000 Mbits/sec
> iperf -c 127.0.0.1 -p 5060 -u -b1000m
>
> I don't know if it's normal and what we should expect from kemi, but I
> would like to share this with you. Maybe someone could confirm the
> performance difference.
>
> Have a good day !
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - April 27-29, 2020, in Berlin -- www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20191112/d767c3e5/attachment-0001.html>


More information about the sr-users mailing list