<div dir="ltr"><div><div><div><div>Video muxing is heavy on CPU, that's normal.<br><br></div>Also, you will find best performances and reliability using Debian 8 Jessie, and latest FreeSWITCH release.<br><br></div>Your specific version of FreeSWITCH is too old.<br><br></div>CentOS 6 is not supposed to be used for video (webrtc) service.<br><br></div>-giovanni<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 29, 2016 at 10:20 AM, Agustí Ubalde <span dir="ltr"><<a href="mailto:aubalde@presenceco.com" target="_blank">aubalde@presenceco.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div><div>I have a high CPU consumption by FreeSWITCH. In fact, consumption is highest on CPU system. On this server we have registered 20 sessions (WebRTC).</div><div><br></div><div>Environment:</div><div><ul><li>CentOS 6.7 64b</li><li>FreeSWITCh 1.5.14</li></ul></div><div><br></div><div>The results of the execution of:</div><div><br></div><div>step 1) <b>ps -LlFm -p `pidof freeswitch`</b></div><div><div><br></div><div><font face="monospace, monospace">F S UID PID PPID LWP C NLWP PRI NI ADDR SZ WCHAN RSS PSR STIME TTY TIME CMD</font></div><div><font face="monospace, monospace">1 - 499 4481 1 - 99 55 - - - 216700 - 140840 - Jun28 ? 17:55:10 /usr/bin/freeswitch -nc</font></div><div><font face="monospace, monospace">1 S 499 - - 4481 0 - 99 19 - - poll_s - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4482 0 - 99 19 - - poll_s - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4483 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:32 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4484 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:03 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4487 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:01 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4488 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:04 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4489 0 - 99 19 - - poll_s - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4490 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:01 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4492 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4493 0 - 99 19 - - ep_pol - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4494 0 - 99 19 - - ep_pol - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace" color="#ff0000"><b>1 R 499 - - 4495 97 - 99 19 - - - - 0 Jun28 - 17:37:34 -</b></font></div><div><font face="monospace, monospace">1 S 499 - - 4496 0 - 99 19 - - ep_pol - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4497 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4498 0 - 99 19 - - poll_s - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4499 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4500 0 - 99 19 - - poll_s - 0 Jun28 - 00:00:01 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4501 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4502 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4503 0 - 99 19 - - poll_s - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4504 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4510 0 - 99 19 - - inet_c - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4511 0 - 99 19 - - timerf - 0 Jun28 - 00:00:18 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4512 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4513 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4536 0 - 99 19 - - hrtime - 0 Jun28 - 00:00:03 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4558 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:43 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4559 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:43 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4560 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:43 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4561 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:43 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4562 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:43 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4564 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:39 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4565 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:43 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4567 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:39 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4568 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:40 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4569 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:40 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4570 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:40 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4571 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:39 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4572 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:40 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4573 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:39 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4575 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:40 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4636 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4637 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4638 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4639 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4640 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4641 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4642 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4643 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4644 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4645 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4646 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4647 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4648 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4649 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div></div><div><br></div><div>step 2) <b>pstack 4481</b><br></div><div><br></div><div><div><font face="monospace, monospace" color="#0000ff">Thread 45 (Thread 0x7ff6ba08a700 (LWP 4495)):</font></div><div><font face="monospace, monospace" color="#0000ff">#0 0x0000003410ce8e63 in epoll_wait () from /lib64/libc.so.6</font></div><div><font face="monospace, monospace" color="#0000ff">#1 0x00007ff6b877bba5 in ?? () from /usr/local/freeswitch/mod/mod_sofia.so</font></div><div><font face="monospace, monospace" color="#0000ff">#2 0x00007ff6b877ba28 in ?? () from /usr/local/freeswitch/mod/mod_sofia.so</font></div><div><font face="monospace, monospace" color="#0000ff">#3 0x00007ff6b8779715 in ?? () from /usr/local/freeswitch/mod/mod_sofia.so</font></div><div><font face="monospace, monospace" color="#0000ff">#4 0x00000034110079d1 in start_thread () from /lib64/libpthread.so.0</font></div><div><font face="monospace, monospace" color="#0000ff">#5 0x0000003410ce886d in clone () from /lib64/libc.so.6</font></div></div><div><br></div><div>Any idea?</div><div><br></div><div><br></div><div>Thanks,</div><div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p><b><span style="font-size:8pt;color:rgb(255,102,0)" lang="EN-GB">PRESENCE TECHNOLOGY</span></b><b><span style="font-size:8pt;color:rgb(127,127,127)" lang="EN-GB"><br></span></b><b><span style="font-size:8pt" lang="EN-GB">Agustí Ubalde Bellot</span></b><span style="font-size:8pt" lang="EN-GB"><br>Chief Developer<br>C/ Comte Urgell 240 3A<br>Barcelona 08036<br></span><a href="mailto:aubalde@presenceco.com" target="_blank"><span style="font-size:8pt;color:rgb(255,102,0)" lang="EN-GB">aubalde@presenceco.com</span></a><span style="font-size:8pt;color:rgb(255,102,0)" lang="EN-US"></span></p><p><span style="font-size:8pt" lang="EN-GB">Ph: +34 93 10 10 300 <br>Fx: +34 93 10 10 333</span></p><p><span style="font-size:8pt" lang="EN-GB"></span></p><p><a href="http://www.presenceco.com/" target="_blank"><b><span style="font-size:8pt;color:rgb(255,102,0)" lang="EN-US">www.presenceco.com</span></b></a><b><span style="font-size:8pt;color:rgb(255,102,0)" lang="EN-US"></span></b></p><p><span style="font-size:8pt" lang="EN-GB"></span><b><span style="font-size:8pt" lang="EN-GB">Follow us on:</span></b></p><p><a href="http://twitter.com/presencetech" target="_blank"><b><span style="font-size:8pt;color:rgb(127,127,127);text-decoration:none"><img alt="tw" border="0" height="25" width="29"></span></b></a><a href="http://www.youtube.com/PresenceTechnology" target="_blank"><b><span style="font-size:8pt;color:rgb(127,127,127);text-decoration:none"><img alt="yt" border="0" height="25" width="29"></span></b></a><a href="http://www.linkedin.com/groups?mostPopular=&gid=2898558" target="_blank"><b><span style="font-size:8pt;color:rgb(127,127,127);text-decoration:none"><img alt="in" border="0" height="25" width="29"></span></b></a><a href="http://www.slideshare.net/PresenceTech" target="_blank"><b><span style="font-size:8pt;color:rgb(127,127,127);text-decoration:none"><img alt="ss" border="0" height="25" width="29"></span></b></a><a href="http://www.facebook.com/presencetech" target="_blank"><b><span style="font-size:8pt;color:rgb(127,127,127);text-decoration:none"><img alt="fb" border="0" height="25" width="29"></span></b></a><b><span style="font-size:8pt;color:rgb(127,127,127)" lang="EN-GB"></span></b></p><p><span style="font-size:8pt;color:rgb(127,127,127)" lang="EN-US">For additional information, please visit our website </span><a href="http://www.presenceco.com/" style="font-size:12.8px" target="_blank"><b><span style="font-size:8pt;color:rgb(255,102,0)" lang="EN-US">www.presenceco.com</span></b></a><br></p></div></div></div></div></div>
</div></div>
<br>
<p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(34,34,34);background:white"><b><span style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(127,127,127)" lang="EN-US">Presence Technology - Disclaimer<br>This message, its content and any file attached thereto is for the intended recipient only and is confidential and /or privileged. If you have received this e-mail in error or had access to it, you should note that the information in it is private and any use thereof is unauthorized. In such an event please notify us by e-mail or by telephone (+ 34 93 10 10 300). Any reproduction of this e-mail by whatsoever means and any transmission or dissemination thereof to other persons is prohibited. It should be deleted immediately from your system. Presence Technology reserves the right to take legal action against any persons unlawfully gaining access to the content of any external message it has emitted.</span></b><span lang="EN-US"></span></p><p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(34,34,34);background:white"><b><span style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(127,127,127)" lang="EN-US">For additional information, please visit our website </span></b><b><span style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(255,102,0)" lang="EN-US"><a href="http://www.presenceco.com/" style="color:rgb(17,85,204)" target="_blank"><span style="color:rgb(255,102,0)">www.presenceco.com</span></a></span></b><span lang="EN-US"></span></p><p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(34,34,34);background-color:rgb(255,255,255)"><span lang="EN-US"> </span></p><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Sincerely,<br><br>Giovanni Maruzzelli<br>Cell : +39-347-2665618<br></div>
</div>