<p>fascinating stuff.</p>
<div class="gmail_quote">On Apr 5, 2013 6:06 PM, &quot;Richard Fuchs&quot; &lt;<a href="mailto:rfuchs@sipwise.com">rfuchs@sipwise.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 04/05/13 03:53, Daniel-Constantin Mierla wrote:<br>
<br>
&gt; She fallback to user space can happen even during a call? Or is just<br>
&gt; about when the call is initialized, the application detects is some<br>
&gt; problem when setting up forwarding rules in the kernel and goes for user<br>
&gt; space.<br>
<br>
It can happen any time. The socket remains open and the daemon continues<br>
to listen for packets on it. If the daemon receives a packet, it will<br>
process it, which in the normal case will result in it being forwarded.<br>
With the kernel module active and working, the daemon will simply not<br>
see the packets coming in on the socket.<br>
<br>
&gt; Indeed, this is kind of general feeling, at least based on theoretical<br>
&gt; aspects, but I haven&#39;t seen any kind of numbers just to compare and see<br>
&gt; how much is worth to go for kernel forwarding.<br>
<br>
I did a very simple test, one pseudo-call (one port in, one port out)<br>
with about 35,000 UDP packets per second going each way. Each packet had<br>
150 bytes payload and the test was done on an 8-core Xeon 2.53 GHz<br>
machine running kernel 2.6.32. Under this workload, the daemon registers<br>
with about 90% single-CPU load without kernel forwarding. The daemon is<br>
multi-threaded and so can use multiple cores, but if it weren&#39;t, then it<br>
would be about maxed out at this point. Averaged over the 8 cores this<br>
leaves the system around 88% idle. With kernel forwarding enabled,<br>
system CPU usage drops to &gt;99% idle.<br>
<br>
cheers<br>
<br>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div>