Well, there you go.<br>your box is having a hard time doing a simple 1ms sleep in a loop for the centralized core timer.<br><br>It&#39;s either your kernel or your box.  My box and every box I have do not have that problem so you may want to consider a new one.<br>
<br>FreeSWITCH is FREE so give it a good home.<br><br>The good news is, you can make upwards of 1500 calls on that same 2% of cpu usage.<br><br><br><br><div class="gmail_quote">On Tue, Mar 2, 2010 at 11:51 AM, Sergey Okhapkin <span dir="ltr">&lt;<a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">FS spends half of CPU here (main thread):<br>
<br>
#0  0xffffe424 in __kernel_vsyscall ()<br>
#1  0xb7a82781 in select () from /lib/libc.so.6<br>
#2  0xb7e392eb in apr_sleep () from /opt/freeswitch/lib/libfreeswitch.so.1<br>
#3  0x00000000 in ?? ()<br>
<br>
The second half is spent here:<br>
<br>
#0  0xb7d50946 in clock_nanosleep () from /lib/librt.so.1<br>
#1  0xb7e0fa7d in softtimer_runtime () at src/switch_time.c:155<br>
#2  0xb7dc585a in switch_loadable_module_exec (thread=0xb7101fb8,<br>
obj=0xb7101da8) at src/switch_loadable_module.c:96<br>
#3  0xb7e379a8 in dummy_worker () from /opt/freeswitch/lib/libfreeswitch.so.1<br>
<div class="im"><br>
<br>
On Tuesday 02 March 2010, Moises Silva wrote:<br>
&gt; ps -LlFm -p `pidof freeswitch`<br>
&gt;<br>
&gt; That shows you CPU usage per FreeSWITCH thread<br>
&gt;<br>
&gt; Then<br>
&gt;<br>
&gt; pstack `pidof freeswitch`<br>
&gt;<br>
&gt; That shows the stack trace of every FreeSWITCH thread and then you can find<br>
&gt; exactly what is doing.<br>
<br>
<br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:+19193869900<br>