[Freeswitch-users] High CPU consumption

Agustí Ubalde aubalde at presenceco.com
Wed Jun 29 12:37:35 MSD 2016


Hi Giovanni,

I don't use video muxing, only audio.

This is a more detailed stack:

Thread 45 (Thread 0x7ff6ba08a700 (LWP 4495)):
#0  0x0000003410ce8e63 in epoll_wait () from /lib64/libc.so.6
#1  0x00007ff6b877bba5 in su_epoll_port_wait_events () from
/usr/local/freeswitch/mod/mod_sofia.so
#2  0x00007ff6b877ba28 in su_base_port_run () from
/usr/local/freeswitch/mod/mod_sofia.so
#3  0x00007ff6b8779715 in su_pthread_port_clone_main () from
/usr/local/freeswitch/mod/mod_sofia.so
#4  0x00000034110079d1 in start_thread () from /lib64/libpthread.so.0
#5  0x0000003410ce886d in clone () from /lib64/libc.so.6


Thanks,

*PRESENCE TECHNOLOGY*
*Agustí Ubalde Bellot*
Chief Developer
C/ Comte Urgell 240 3A
Barcelona 08036
aubalde at presenceco.com

Ph: +34 93 10 10 300
Fx: +34 93 10 10 333

*www.presenceco.com* <http://www.presenceco.com/>

*Follow us on:*

*[image: tw]* <http://twitter.com/presencetech>*[image: yt]*
<http://www.youtube.com/PresenceTechnology>*[image: in]*
<http://www.linkedin.com/groups?mostPopular=&gid=2898558>*[image: ss]*
<http://www.slideshare.net/PresenceTech>*[image: fb]*
<http://www.facebook.com/presencetech>

For additional information, please visit our website *www.presenceco.com*
<http://www.presenceco.com/>

2016-06-29 10:27 GMT+02:00 Giovanni Maruzzelli <gmaruzz at gmail.com>:

> Video muxing is heavy on CPU, that's normal.
>
> Also, you will find best performances and reliability using Debian 8
> Jessie, and latest FreeSWITCH release.
>
> Your specific version of FreeSWITCH is too old.
>
> CentOS 6 is not supposed to be used for video (webrtc) service.
>
> -giovanni
>
> On Wed, Jun 29, 2016 at 10:20 AM, Agustí Ubalde <aubalde at presenceco.com>
> wrote:
>
>> Hi all,
>>
>> 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).
>>
>> Environment:
>>
>>    - CentOS 6.7 64b
>>    - FreeSWITCh 1.5.14
>>
>>
>> The results of the execution of:
>>
>> step 1) *ps -LlFm -p `pidof freeswitch`*
>>
>> F S UID        PID  PPID   LWP  C NLWP PRI  NI ADDR SZ WCHAN    RSS PSR
>> STIME TTY          TIME CMD
>> 1 - 499       4481     1     - 99   55   -   - - 216700 -     140840  -
>> Jun28 ?        17:55:10 /usr/bin/freeswitch -nc
>> 1 S 499          -     -  4481  0    -  99  19 -     - poll_s     -   0
>> Jun28 -        00:00:00 -
>> 1 S 499          -     -  4482  0    -  99  19 -     - poll_s     -   0
>> Jun28 -        00:00:00 -
>> 1 S 499          -     -  4483  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:32 -
>> 1 S 499          -     -  4484  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:03 -
>> 1 S 499          -     -  4487  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:01 -
>> 1 S 499          -     -  4488  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:04 -
>> 1 S 499          -     -  4489  0    -  99  19 -     - poll_s     -   0
>> Jun28 -        00:00:00 -
>> 1 S 499          -     -  4490  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:01 -
>> 1 S 499          -     -  4492  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:00 -
>> 1 S 499          -     -  4493  0    -  99  19 -     - ep_pol     -   0
>> Jun28 -        00:00:00 -
>> 1 S 499          -     -  4494  0    -  99  19 -     - ep_pol     -   0
>> Jun28 -        00:00:00 -
>> *1 R 499          -     -  4495 97    -  99  19 -     - -          -   0
>> Jun28 -        17:37:34 -*
>> 1 S 499          -     -  4496  0    -  99  19 -     - ep_pol     -   0
>> Jun28 -        00:00:00 -
>> 1 S 499          -     -  4497  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:00 -
>> 1 S 499          -     -  4498  0    -  99  19 -     - poll_s     -   0
>> Jun28 -        00:00:00 -
>> 1 S 499          -     -  4499  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:00 -
>> 1 S 499          -     -  4500  0    -  99  19 -     - poll_s     -   0
>> Jun28 -        00:00:01 -
>> 1 S 499          -     -  4501  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:00 -
>> 1 S 499          -     -  4502  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:00 -
>> 1 S 499          -     -  4503  0    -  99  19 -     - poll_s     -   0
>> Jun28 -        00:00:00 -
>> 1 S 499          -     -  4504  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:00 -
>> 1 S 499          -     -  4510  0    -  99  19 -     - inet_c     -   0
>> Jun28 -        00:00:00 -
>> 1 S 499          -     -  4511  0    -  99  19 -     - timerf     -   0
>> Jun28 -        00:00:18 -
>> 1 S 499          -     -  4512  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:00 -
>> 1 S 499          -     -  4513  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:00 -
>> 1 S 499          -     -  4536  0    -  99  19 -     - hrtime     -   0
>> Jun28 -        00:00:03 -
>> 1 S 499          -     -  4558  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:43 -
>> 1 S 499          -     -  4559  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:43 -
>> 1 S 499          -     -  4560  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:43 -
>> 1 S 499          -     -  4561  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:43 -
>> 1 S 499          -     -  4562  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:43 -
>> 1 S 499          -     -  4564  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:39 -
>> 1 S 499          -     -  4565  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:43 -
>> 1 S 499          -     -  4567  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:39 -
>> 1 S 499          -     -  4568  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:40 -
>> 1 S 499          -     -  4569  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:40 -
>> 1 S 499          -     -  4570  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:40 -
>> 1 S 499          -     -  4571  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:39 -
>> 1 S 499          -     -  4572  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:40 -
>> 1 S 499          -     -  4573  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:39 -
>> 1 S 499          -     -  4575  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:40 -
>> 1 S 499          -     -  4636  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:17 -
>> 1 S 499          -     -  4637  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:17 -
>> 1 S 499          -     -  4638  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:17 -
>> 1 S 499          -     -  4639  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:17 -
>> 1 S 499          -     -  4640  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:17 -
>> 1 S 499          -     -  4641  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:17 -
>> 1 S 499          -     -  4642  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:17 -
>> 1 S 499          -     -  4643  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:17 -
>> 1 S 499          -     -  4644  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:17 -
>> 1 S 499          -     -  4645  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:17 -
>> 1 S 499          -     -  4646  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:17 -
>> 1 S 499          -     -  4647  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:17 -
>> 1 S 499          -     -  4648  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:17 -
>> 1 S 499          -     -  4649  0    -  99  19 -     - futex_     -   0
>> Jun28 -        00:00:17 -
>>
>> step 2) *pstack 4481*
>>
>> Thread 45 (Thread 0x7ff6ba08a700 (LWP 4495)):
>> #0  0x0000003410ce8e63 in epoll_wait () from /lib64/libc.so.6
>> #1  0x00007ff6b877bba5 in ?? () from
>> /usr/local/freeswitch/mod/mod_sofia.so
>> #2  0x00007ff6b877ba28 in ?? () from
>> /usr/local/freeswitch/mod/mod_sofia.so
>> #3  0x00007ff6b8779715 in ?? () from
>> /usr/local/freeswitch/mod/mod_sofia.so
>> #4  0x00000034110079d1 in start_thread () from /lib64/libpthread.so.0
>> #5  0x0000003410ce886d in clone () from /lib64/libc.so.6
>>
>> Any idea?
>>
>>
>> Thanks,
>>
>> *PRESENCE TECHNOLOGY*
>> *Agustí Ubalde Bellot*
>> Chief Developer
>> C/ Comte Urgell 240 3A
>> Barcelona 08036
>> aubalde at presenceco.com
>>
>> Ph: +34 93 10 10 300
>> Fx: +34 93 10 10 333
>>
>> *www.presenceco.com* <http://www.presenceco.com/>
>>
>> *Follow us on:*
>>
>> *[image: tw]* <http://twitter.com/presencetech>*[image: yt]*
>> <http://www.youtube.com/PresenceTechnology>*[image: in]*
>> <http://www.linkedin.com/groups?mostPopular=&gid=2898558>*[image: ss]*
>> <http://www.slideshare.net/PresenceTech>*[image: fb]*
>> <http://www.facebook.com/presencetech>
>>
>> For additional information, please visit our website *www.presenceco.com*
>> <http://www.presenceco.com/>
>>
>>
>> *Presence Technology - DisclaimerThis 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.*
>>
>> *For additional information, please visit our website **www.presenceco.com
>> <http://www.presenceco.com/>*
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
>
> --
> Sincerely,
>
> Giovanni Maruzzelli
> Cell : +39-347-2665618
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>

-- 



*Presence Technology - DisclaimerThis 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.*

*For additional information, please visit our website **www.presenceco.com 
<http://www.presenceco.com/>*

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160629/467cacfa/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list