<div dir="ltr">The original test was done on git master at the date mentioned. The sqlite core.db file was on /run/shm which is a tmpfs on unbuntu 12.04. <br>I will be recompiling from git master and test running with -nosql. <br>
<br>Testing my existing setup with -nosql seems more stable now running at 210CPS for some time (500k calls already passed) with ~35% idle cpu. <br>But the free mem is slowly going down. I will let it run untill the kernel will kill it to see how many calls it can handle. <br>
<br>During my tests i did not run FS with RT priority but according to htop some of the threads are scheduled as RT. <br>My setup is doing bypass-media , thus FS handling only call establishment and teardown on both legs. <br>
<br>cat /proc/<FS pid>/status <br><br>Name: freeswitch<br>State: S (sleeping)<br>Tgid: 15995<br>Pid: 15995<br>PPid: 1<br>TracerPid: 0<br>Uid: 999 999 999 999<br>Gid: 999 999 999 999<br>
FDSize: 64<br>Groups:<br>VmPeak: 5002808 kB<br>VmSize: 5002088 kB<br>VmLck: 0 kB<br>VmPin: 0 kB<br>VmHWM: 625900 kB<br>VmRSS: 624156 kB <-- this is going up <br>VmData: 4855788 kB<br>VmStk: 136 kB<br>
VmExe: 20 kB<br>VmLib: 18288 kB<br>VmPTE: 2352 kB<br>VmSwap: 0 kB<br>Threads: 1866<br>SigQ: 0/18446744073709551615<br>SigPnd: 0000000000000000<br>ShdPnd: 0000000000000000<br>SigBlk: 0000000000000000<br>
SigIgn: 0000000010003006<br>SigCgt: 0000000180014209<br>CapInh: 0000000000000000<br>CapPrm: 0000000000000000<br>CapEff: 0000000000000000<br>CapBnd: ffffffffffffffff<br>Cpus_allowed: ffffff<br>Cpus_allowed_list: 0-23<br>
Mems_allowed: 00000000,00000003<br>Mems_allowed_list: 0-1<br>voluntary_ctxt_switches: 1803<br>nonvoluntary_ctxt_switches: 23<br><br><br>output of 'top -H' at 180CPS<br><br><br>top - 15:27:00 up 2 days, 5:32, 5 users, load average: 8.19, 91.07, 65.03<br>
Tasks: 2066 total, 3 running, 2063 sleeping, 0 stopped, 0 zombie<br>Cpu(s): 50.1%us, 3.9%sy, 0.0%ni, 45.9%id, 0.0%wa, 0.0%hi, 0.2%si, 0.0%st<br>Mem: 4038512k total, 2282260k used, 1756252k free, 114112k buffers<br>
Swap: 0k total, 0k used, 0k free, 1165868k cached<br><br> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND <br>
16000 freeswit RT -10 4885m 594m 4964 R 69 15.1 3:10.26 freeswitch <br>16009 freeswit RT -10 4885m 594m 4964 S 33 15.1 1:26.20 freeswitch <br>
16008 freeswit RT -10 4885m 594m 4964 S 28 15.1 1:17.30 freeswitch <br>16007 freeswit RT -10 4885m 594m 4964 S 4 15.1 0:10.80 freeswitch <br>
16004 freeswit RT -10 4885m 594m 4964 S 2 15.1 0:06.63 freeswitch <br>19171 root 20 0 18988 2948 944 R 2 0.1 0:00.64 top <br>
18735 freeswit -2 -10 4885m 594m 4964 S 1 15.1 0:00.29 freeswitch <br>16003 freeswit -2 -10 4885m 594m 4964 S 1 15.1 0:01.61 freeswitch <br>
16690 freeswit -2 -10 4885m 594m 4964 S 1 15.1 0:00.42 freeswitch <br>16730 freeswit -2 -10 4885m 594m 4964 S 1 15.1 0:00.42 freeswitch <br>
16750 freeswit -2 -10 4885m 594m 4964 S 1 15.1 0:00.45 freeswitch <br>16764 freeswit -2 -10 4885m 594m 4964 S 1 15.1 0:00.44 freeswitch <br>
<more of the above><br>....<br>....<br><br><br>Thanks to all of you , <br>Boris Ratner. <br><br><div class="gmail_quote">On Fri, Mar 8, 2013 at 4:22 AM, Dmitry Lysenko <span dir="ltr"><<a href="mailto:dvl36.ripe.nick@gmail.com" target="_blank">dvl36.ripe.nick@gmail.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"><div>I can't reproduce such cps load on my ARMv5TE system. )</div><div>bratner, please give us 'top -H'. I guess freeswitch running at realtime priority. </div>
</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br>
<br><div class="gmail_quote">2013/3/8 Ken Rice <span dir="ltr"><<a href="mailto:krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<font face="Monaco, Courier New"><span style="font-size:11pt">Sqlite is probably getting hammered... Trust me... Mount the fs db dir as tmpfs or use the –nosql flag when starting freeswitch<br>
<br>
I routinely run dialer traffic at much higher CPS then that<div><br>
<br>
<br>
On 3/7/13 7:58 PM, "Dmitry Lysenko" <<a href="http://dvl36.ripe.nick@gmail.com" target="_blank">dvl36.ripe.nick@gmail.com</a>> wrote:<br>
<br>
</div></span></font><blockquote><div><font face="Monaco, Courier New"><span style="font-size:11pt">bi, bo and wa field is low, so it seems that is not disk subsystem</span><span style="font-size:11.5pt">.<br>
</span><span style="font-size:11pt"><br>
<br>
2013/3/8 Ken Rice <<a href="http://krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>><br>
</span></font></div><blockquote><font face="Monaco, Courier New"><span style="font-size:11pt"><div>You are probably hammering the disk subsystem... Keep in mind that FS uses multiple sqlite databases by default... Mount the fs db dir as tmpfs and try again<br>
<br>
<br>
<br></div><div>
On 3/7/13 7:35 PM, "Dmitry Lysenko" <<a href="http://dvl36.ripe.nick@gmail.com" target="_blank">dvl36.ripe.nick@gmail.com</a> <<a href="http://dvl36.ripe.nick@gmail.com" target="_blank">http://dvl36.ripe.nick@gmail.com</a>> > wrote:<br>
<br>
</div></span></font><div><blockquote><font face="Monaco, Courier New"><span style="font-size:11pt">Hm... But what about huge interrupt and context switching number?<br>
<br>
</span></font></blockquote></div></blockquote><font face="Monaco, Courier New"><span style="font-size:11pt"><br>
<hr align="CENTER" size="3" width="95%"></span></font><div><font><font face="Consolas, Courier New, Courier"><span style="font-size:10pt">_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="http://consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="http://FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
</span></font></font></div></blockquote><div><font><font face="Consolas, Courier New, Courier"><span style="font-size:10pt"><br>
</span></font></font><font face="Monaco, Courier New"><span style="font-size:11pt">-- <br>
Ken<br>
<font color="#0000FF"><u><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
<a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br>
</u></font><a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
</span></font>
</div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></blockquote></div><br></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" 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" 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></blockquote></div><br></div>