FS is not really idle when idle. Calls are not the only thing that cost cpu.<br><br>Its a server daemon. It has at least 25 threads up including the central timer thread which is doing an endless-loop of 1ms sleeps. You have an active sip engine that still runs in a loop and many other moving parts.<br>
<br><br><br><br><br><br><br><div class="gmail_quote">On Tue, Mar 2, 2010 at 12:53 PM, Sergey Okhapkin <span dir="ltr"><<a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>></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;">
A program should not be visible in "top" when idle. That's my point.<br>
<div><div></div><div class="h5"><br>
On Tuesday 02 March 2010, Anthony Minessale wrote:<br>
> I guess if you insist, you have 4 bad boxes with 4 bad kernels, and I bet<br>
> none of them are Centos 5.3<br>
> if you can reproduce it on a box I can visit (Centos 5.3 would be nice),<br>
> put in my ssh key and i'll come and look.<br>
><br>
> Be sure to remember, as you continue to add to this thread that you are<br>
> complaining about FS using 2% of your cpu......<br>
> That's somewhat amusing to me.<br>
><br>
> On Tue, Mar 2, 2010 at 12:23 PM, Giovanni Maruzzelli<br>
<<a href="mailto:gmaruzz@celliax.org">gmaruzz@celliax.org</a>>wrote:<br>
> > Sergey,<br>
> ><br>
> > that's not a problem, is how FS works.<br>
> ><br>
> > That load on the CPU when idle is actually not important. Is just the<br>
> > minimum, like in a carburettor.<br>
> ><br>
> > If you put it under load, you will see that there will need some<br>
> > serious load (many calls) to have it ramp up the cpu usage.<br>
> ><br>
> > -giovanni<br>
> ><br>
> > On Tue, Mar 2, 2010 at 7:16 PM, Sergey Okhapkin<br>
> ><br>
> > <<a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>> wrote:<br>
> > > I see the same problem on 4 absolutely different boxes with different<br>
> ><br>
> > linux<br>
> ><br>
> > > kernels.<br>
> > ><br>
> > > On Tuesday 02 March 2010, Anthony Minessale wrote:<br>
> > >> Well, there you go.<br>
> > >> your box is having a hard time doing a simple 1ms sleep in a loop for<br>
> ><br>
> > the<br>
> ><br>
> > >> centralized core timer.<br>
> > >><br>
> > >> It's either your kernel or your box. My box and every box I have do<br>
> > >> 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%<br>
> > >> of<br>
> ><br>
> > cpu<br>
> ><br>
> > >> usage.<br>
> > >><br>
> > >><br>
> > >><br>
> > >> On Tue, Mar 2, 2010 at 11:51 AM, Sergey Okhapkin<br>
> > >><br>
> > >> <<a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>>wrote:<br>
> > >> > 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<br>
> > >> > /opt/freeswitch/lib/libfreeswitch.so.1 #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<br>
> > >> > /opt/freeswitch/lib/libfreeswitch.so.1<br>
> > >> ><br>
> > >> > On Tuesday 02 March 2010, Moises Silva wrote:<br>
> > >> > > ps -LlFm -p `pidof freeswitch`<br>
> > >> > ><br>
> > >> > > That shows you CPU usage per FreeSWITCH thread<br>
> > >> > ><br>
> > >> > > Then<br>
> > >> > ><br>
> > >> > > pstack `pidof freeswitch`<br>
> > >> > ><br>
> > >> > > That shows the stack trace of every FreeSWITCH thread and then you<br>
> ><br>
> > can<br>
> ><br>
> > >> > find<br>
> > >> ><br>
> > >> > > exactly what is doing.<br>
> > >> ><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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> > >> > UNSUBSCRIBE:<br>
> ><br>
> > <a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> ><br>
> > >> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> > ><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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> > > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-user" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-user</a><br>
</div></div>> > >s <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<div class="im">> ><br>
> > --<br>
> > Sincerely,<br>
> ><br>
> > Giovanni Maruzzelli<br>
> > Cell : +39-347-2665618<br>
> ><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" 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>
<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>