The misc/examples/kemi/kamailio-basic-kemi.cfg can not be with the
default content, because it doesn't execute ksr_core_received()
callback, also it has children=2, you said you have 1.
I tested with sipp and the sample kemi lua scripting.
Looking at your iperf command, this is just sending
I use the /misc/examples/kemi/kamailio-basic-kemi.cfg with log disabled. No
log is printed at all, on a Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz.
What's your results ?
# and my lua file
-- Kamailio - equivalent of routing blocks in Lua
--
-- KSR - the new dynamic object exporting Kamailio
Do you run with high debug value (lot of log messages)? Because I don't
get similar results to yours. Maybe you can share full kamailio.cfg and
lua script for both cases.
Cheers,
Daniel
On 12.11.19 22:11, GG GG wrote:
> Hello,
>
> I removed KSR.x.exit() and I got same results for cpu usage and
Hello,
I removed KSR.x.exit() and I got same results for cpu usage and Recv-Q.
On Tue, Nov 12, 2019 at 3:56 PM Daniel-Constantin Mierla
wrote:
> Hello,
>
> can you remove the KSR.x.exit() and test again? It will be the same effect
> from sip routing point of view, just to see what is the
Hello,
can you remove the KSR.x.exit() and test again? It will be the same
effect from sip routing point of view, just to see what is the result.
Because Lua 'exit' cannot be used, KSR.x.exit() is a workaround relying
on error/exception handling with string comparison that I did.
However,
Hi Daniel,
For lua example, it's just an error when writing my email... in my config
file I have KSR.x.exit();
I have not tested a more complex config, but I'm curious about kemi
framework and how it works. So before anything else I made a simple test to
know the cpu overhead.
For this test, I
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
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;
}