<div dir="ltr"><div>You are right, this limit does not exist, you can run Kamailio with only one UDP worker if you want, all the threads are started from a  forked process, not even a worker process (to be precise).</div><div><br></div><div>The reason to create all the threads from one specific process and centralize the interactions with the threads from one process is that we may not be forced to use shared memory, this can be problematic if there is a bug/limitation in the malloc wrapper/abstraction in one library. <br></div><div><br></div><div><div>I do not know what are the bottlenecks, since I did not do any load tests yet.</div><div><br></div><div>However I did a lot of tests and some profiling on the filters in the past, one thing that is very nice with MediaStreamer2 is that you can find where the CPU time is spent in each filter.</div><div>One example of bottle neck that can be surprising is that the speex resampler that can be CPU intensive in some scenarios.</div><div>Some encoder like Opus can be CPU intensive as well.<br></div><div>If one filter is using too much CPU it will be easy to find it looking at the logs.</div><div>At one point we could use the ticker filter stats to create overall perf reports to clarify in which filter was the CPU time spent.<br></div><div><br></div></div>I know that oRTP was used 10 years ago to build server side 
applications handling 2000 calls on an x86 server.<br><br><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 13, 2018, 21:17 Juha Heinanen <<a href="mailto:jh@tutpro.com" target="_blank">jh@tutpro.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Julien Chavanton writes:<br>
<br>
> No Kamailio processes are blocking, one thread is started for each call /<br>
> media stream the thread is running a "ticker" that is processing all the<br>
> samples in the audio streams.<br>
<br>
So just to clarify, if Kamailio is started, for example, with -n 8, it<br>
does not limit the number of simultaneous calls where Kamailio is<br>
running rms_play() to 8?<br>
<br>
-- Juha<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Development Mailing List<br>
<a href="mailto:sr-dev@lists.kamailio.org" rel="noreferrer" target="_blank">sr-dev@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
</blockquote></div>