Hello,<br><br>i'm trying to use freeswitch as a redirecting server meaning FS has to receive an INVITE and according to some rules it will redirect calls to other destinations.<br><br><br>CALLING_USER FREESWITCH SOMEWHERE<br>
<br>INVITE -------------------------------><br> <------------------------------ 100 Trying<br> <------------------------------ 302 Moved Temporary<br>ACK -------------------------------><br>
INVITE---------------------------------------------------------------------------------><br><br><br><br>Well, wverything works well except i have perfromance issues .... on my HW FS cannot do more than 40 CPS (INVITE answered by 302 Moved Temporary). When i increase the rate, FS starts delaying 302 response. Right at 50 CPS i see "calls" being build up in FS and the delay begining to grow.<br>
<br>When i observe the machine, load average is almost nothing (load average: 1.41, 0.61, 0.60) CPU never goes to 100%, and i see only one thread taking most load... all others are just sitting there with 1-5 % CPU time.<br>
This looks to me as FS handles 302 messages in a single thread?!?!<br><br><br><span style="font-family: courier new,monospace;">tculjaga@FS:/usr/local/freeswitch/conf/dialplan$ top -H </span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">top - 10:41:37 up 167 days, 20:42, 3 users, load average: 1.41, 0.61, 0.60</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Tasks: 83 total, 2 running, 81 sleeping, 0 stopped, 0 zombie</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Cpu(s): 25.3%us, 1.5%sy, 0.0%ni, 30.3%id, 42.7%wa, 0.0%hi, 0.2%si, 0.0%st</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Mem: 2074520k total, 571244k used, 1503276k free, 259604k buffers</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Swap: 2650684k total, 3020k used, 2647664k free, 153868k cached</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> 4814 root 20 0 34188 20m 3780 S 38 1.0 3:10.29 freeswitch </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> 4800 root 20 0 34188 20m 3780 S 6 1.0 0:08.26 freeswitch </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> 4798 root 20 0 34188 20m 3780 R 5 1.0 0:24.46 freeswitch </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> 4787 root 20 0 34188 20m 3780 S 2 1.0 0:11.24 freeswitch </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> 4794 root 20 0 34188 20m 3780 S 1 1.0 0:11.42 freeswitch </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> 4803 root 20 0 34188 20m 3780 S 1 1.0 0:11.74 freeswitch </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> 4788 root 20 0 34188 20m 3780 S 1 1.0 0:02.96 freeswitch </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> 4804 root 20 0 34188 20m 3780 S 1 1.0 0:01.64 freeswitch </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> 4807 root 20 0 34188 20m 3780 S 1 1.0 0:01.68 freeswitch </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> 4811 root 20 0 34188 20m 3780 S 1 1.0 0:02.50 freeswitch </span><br><br><br><br>cat /proc/cpuinfo <br>processor : 0<br>vendor_id : GenuineIntel<br>
cpu family : 6<br>model : 15<br>model name : Intel(R) Xeon(R) CPU 5140 @ 2.33GHz<br>stepping : 6<br>cpu MHz : 2333.560<br>cache size : 4096 KB<br>physical id : 0<br>
siblings : 2<br>core id : 0<br>cpu cores : 2<br>apicid : 0<br>initial apicid : 0<br>fdiv_bug : no<br>hlt_bug : no<br>f00f_bug : no<br>coma_bug : no<br>fpu : yes<br>
fpu_exception : yes<br>cpuid level : 10<br>wp : yes<br>flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm<br>
bogomips : 4670.78<br>clflush size : 64<br>power management:<br><br>processor : 1<br>vendor_id : GenuineIntel<br>cpu family : 6<br>model : 15<br>model name : Intel(R) Xeon(R) CPU 5140 @ 2.33GHz<br>
stepping : 6<br>cpu MHz : 2333.560<br>cache size : 4096 KB<br>physical id : 0<br>siblings : 2<br>core id : 1<br>cpu cores : 2<br>apicid : 1<br>initial apicid : 1<br>fdiv_bug : no<br>
hlt_bug : no<br>f00f_bug : no<br>coma_bug : no<br>fpu : yes<br>fpu_exception : yes<br>cpuid level : 10<br>wp : yes<br>flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm<br>
bogomips : 4666.82<br>clflush size : 64<br>power management:<br><br><br><br>uname -a<br>Linux l01sipindir1 2.6.26-1-686 #1 SMP Sat Jan 10 18:29:31 UTC 2009 i686 GNU/Linux<br><br><br><br>Of course, i've tuned the machine up<br>
<br>ulimit -c unlimited<br>ulimit -d unlimited<br>ulimit -f unlimited<br>ulimit -i unlimited<br>ulimit -n 999999<br>ulimit -q unlimited<br>ulimit -u unlimited<br>ulimit -v unlimited<br>ulimit -x unlimited<br>ulimit -s 240<br>
ulimit -l unlimited<br>ulimit -a<br><br><br>Started FS with minimum modules but still 40 CPS seems to be the limit.<br><br><br>So, is there any way to improve performance?<br><br><br>Tihomir.<br><br> <br><br><br><br><br>