[Freeswitch-users] What FS is doing when idle?

Sergey Okhapkin sos at sokhapkin.dyndns.org
Tue Mar 2 09:51:48 PST 2010


FS spends half of CPU here (main thread):

#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb7a82781 in select () from /lib/libc.so.6
#2  0xb7e392eb in apr_sleep () from /opt/freeswitch/lib/libfreeswitch.so.1
#3  0x00000000 in ?? ()

The second half is spent here:

#0  0xb7d50946 in clock_nanosleep () from /lib/librt.so.1
#1  0xb7e0fa7d in softtimer_runtime () at src/switch_time.c:155
#2  0xb7dc585a in switch_loadable_module_exec (thread=0xb7101fb8, 
obj=0xb7101da8) at src/switch_loadable_module.c:96
#3  0xb7e379a8 in dummy_worker () from /opt/freeswitch/lib/libfreeswitch.so.1


On Tuesday 02 March 2010, Moises Silva wrote:
> ps -LlFm -p `pidof freeswitch`
>
> That shows you CPU usage per FreeSWITCH thread
>
> Then
>
> pstack `pidof freeswitch`
>
> That shows the stack trace of every FreeSWITCH thread and then you can find
> exactly what is doing.






More information about the FreeSWITCH-users mailing list