Which of the 2 machines has the load issue? You said it was one box calling the other.<br><br>You have 2 major things against you, single CPU and AMD, but you should at least be able to get in the vicinity of 800-1000 calls on a box like that.<br>
<br>Are you calling the default 9999? It's not really an appropriate extension for load testing.<br>On the terminating box you should set up a manual extension that is the first one in the dial plan <br>to play a wav file from preferably a ram disk or /tmp<br>
<br>If you do plan on using this in production accept nothing less than a multi-core intel machine with at least 4 cores, the more cores the better because that parallel processing is where FS gets it's atvantage.<br>
<br><br><br><div class="gmail_quote">On Fri, Jan 30, 2009 at 5:56 AM, rod <span dir="ltr"><<a href="mailto:kawarod@laposte.net">kawarod@laposte.net</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;">
<div><div></div><div class="Wj3C7c">Dear list,<br>
<br>
I've been playing with freeswitch for some time (2 months) and the fact<br>
is that I'm very pleased with the functionnalities of this software.<br>
<br>
I'd like to use FS as a SBC handling media and I'm doing some tests with<br>
sipp to load the machine but I'm unable to bridge more than 60 calls<br>
without seeing the CPU being loaded at 100%. I'm sure something is going<br>
wrong with my setup but I'm unable to see what.<br>
<br>
The test machine has the following specs:<br>
Athlon XP 3500+ with 2GB of memory (I know this is not a high end<br>
machine :p)<br>
<br>
Freeswitch:/opt/freeswitch/log# cat /proc/cpuinfo<br>
processor : 0<br>
vendor_id : AuthenticAMD<br>
cpu family : 15<br>
model : 95<br>
model name : AMD Athlon(tm) 64 Processor 3500+<br>
stepping : 2<br>
cpu MHz : 2199.973<br>
cache size : 512 KB<br>
fpu : yes<br>
fpu_exception : yes<br>
cpuid level : 1<br>
wp : yes<br>
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge<br>
mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt<br>
rdtscp lm 3dnowext 3dnow up rep_good pni cx16 lahf_lm svm extapic<br>
cr8_legacy<br>
bogomips : 4402.97<br>
TLB size : 1024 4K pages<br>
clflush size : 64<br>
cache_alignment : 64<br>
address sizes : 40 bits physical, 48 bits virtual<br>
power management: ts fid vid ttp tm stc<br>
<br>
I installed FS on a fresh debian 64:<br>
Linux Freeswitch 2.6.26-1-amd64 #1 SMP Sat Jan 10 17:57:00 UTC 2009<br>
x86_64 GNU/Linux<br>
<br>
I set the ulimit parameters like those on the website:<br>
freeswitch@internal> ...<br>
Freeswitch:/opt/free-svn/bin# ulimit -a<br>
core file size (blocks, -c) unlimited<br>
data seg size (kbytes, -d) unlimited<br>
scheduling priority (-e) 0<br>
file size (blocks, -f) unlimited<br>
pending signals (-i) unlimited<br>
max locked memory (kbytes, -l) unlimited<br>
max memory size (kbytes, -m) unlimited<br>
open files (-n) 999999<br>
pipe size (512 bytes, -p) 8<br>
POSIX message queues (bytes, -q) unlimited<br>
real-time priority (-r) 0<br>
stack size (kbytes, -s) 244<br>
cpu time (seconds, -t) unlimited<br>
max user processes (-u) unlimited<br>
virtual memory (kbytes, -v) unlimited<br>
file locks (-x) unlimited<br>
<br>
<br>
My network setup is the following:<br>
<br>
SIPP machine (<a href="http://10.10.10.1/24%29----------------vlan" target="_blank">10.10.10.1/24)----------------vlan</a> 55<br>
----------(<a href="http://10.10.10.254/24" target="_blank">10.10.10.254/24</a>) FS (<a href="http://10.10.20.254/24%29--------------" target="_blank">10.10.20.254/24)--------------</a> vlan56<br>
-------------------(<a href="http://10.10.20.100/24" target="_blank">10.10.20.100/24</a>) OTHER STOCK FS<br>
<br>
<br>
I launched sipp with:<br>
sipp -sn uac_pcap -s 9999 -r 10 -l 80 -d 60000 -mi 10.10.10.1 -i<br>
10.10.10.1 -mp 25000 <a href="http://10.10.10.254:5060" target="_blank">10.10.10.254:5060</a><br>
<br>
The dialplan on FS is very simple:<br>
<?xml version="1.0" encoding="utf-8"?><br>
<!-- <a href="http://wiki.freeswitch.org/wiki/Dialplan_XML" target="_blank">http://wiki.freeswitch.org/wiki/Dialplan_XML</a> --><br>
<include><br>
<context name="default"><br>
<br>
<extension name="hold_music_bridge"><br>
<condition field="destination_number" expression="^9999$"><br>
<action application="answer"/><br>
<action application="bridge"<br>
data="sofia/external/<a href="mailto:9999@10.10.20.100">9999@10.10.20.100</a>"/><br>
</condition><br>
</extension><br>
</context><br>
<br>
</include><br>
<br>
FreeSWITCH Version 1.0.trunk (11560M) Started.<br>
Crash Protection [Disabled]<br>
Max Sessions[1000]<br>
Session Rate[100]<br>
SQL [Enabled]<br>
<br>
<br>
The test is very simple: sipp dial 9999 that matches in my FS dialplan<br>
and this is bridged to an other FS machine playing music on hold.<br>
When I launch "top" I see after 30 to 40 s that FS consumes all the CPU<br>
ressources (with a mean of 50-60 % before), with 80 calls.<br>
When I set 70 calls, I have to wait 70-80 s before seeing the same issue.<br>
<br>
Presence is set to false on the 2 profile.<br>
<br>
I have the same issue with FS 1.0.2 that' s why I tried FS 11560.<br>
<br>
When I use the FS machine as a router to test the packet per second<br>
performance, I'm reaching 100Mbps with 8000pps in each direction (from<br>
vlan 55 to vlan56) with less than 12% CPU. So that I don't think there's<br>
an issue with the network.<br>
<br>
Here is an "mpstat -P ALL 1" to show you what's happening suddenly with<br>
70 bridge calls:<br>
12:31:26 CPU %user %nice %sys %iowait %irq %soft<br>
%steal %idle intr/s<br>
12:31:27 all 3,00 0,00 3,00 0,00 1,00 4,00<br>
0,00 89,00 6241,00<br>
12:31:27 0 3,00 0,00 3,00 0,00 1,00 4,00<br>
0,00 89,00 6241,00<br>
<br>
12:31:27 CPU %user %nice %sys %iowait %irq %soft<br>
%steal %idle intr/s<br>
12:31:28 all 14,14 0,00 56,57 0,00 2,02 5,05<br>
0,00 22,22 6035,35<br>
12:31:28 0 14,14 0,00 56,57 0,00 2,02 5,05<br>
0,00 22,22 6035,35<br>
<br>
12:31:28 CPU %user %nice %sys %iowait %irq %soft<br>
%steal %idle intr/s<br>
12:31:29 all 24,75 0,00 67,33 0,00 0,99 6,93<br>
0,00 0,00 5483,17<br>
12:31:29 0 24,75 0,00 67,33 0,00 0,99 6,93<br>
0,00 0,00 5483,17<br>
<br>
<br>
The CPU is going from 89% idle to 0% in less than 2 seconds.<br>
<br>
I know that I don't have to expect too much from this kind of hardware,<br>
but it seems strange that the CPU power vanished so suddenly.<br>
<br>
Thanks a lot for the guys that have read this long mail :p<br>
<br>
kind regards,<br>
rod<br>
<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>
</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>
<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:213-799-1400<br>