<html><body bgcolor="#FFFFFF"><div>ESL would be best as you can offload the processing to another server - potentially a load balanced cluster.</div><div><br>Steve on iPhone</div><div><br>On 23 Apr 2011, at 08:51, Antonio Teixeira &lt;<a href="mailto:eagle.antonio@gmail.com">eagle.antonio@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>Hello Michael &amp; The rest.<br><br>What i'm trying to find is the solution with the highest performance for IVR Applications. And squeezing the last bit of performance out of freeswitch is a needed path specially on a industry that does second by second billing :P<br>
i'm going to do some performance testing with Lua , ESL And Mod Curl and of course python and measure some performance data and will post it later.<br><br>A/T<br><br><br><div class="gmail_quote">2011/4/22 Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org"><a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a></a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">You can definitely use the event socket. Heck, you can even use Python if you want to. The dev team wrote ESL specifically for cases like these - where you want to control FS externally. ESL beats the pants off AGI scripts. It gives you complete control over the system.<div>

<br></div><div>That all being said, you can do all sorts of stuff with Lua dialplan scripts. Check out chapter 7 of the FreeSWITCH book for some nice examples. Lua is lightweight and easy to learn. It's a good alternative for many cases. Check it out...</div>

<div><br></div><div><font color="#888888">-MC</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Fri, Apr 22, 2011 at 12:39 PM, Antonio Teixeira <span dir="ltr">&lt;<a href="mailto:eagle.antonio@gmail.com" target="_blank"><a href="mailto:eagle.antonio@gmail.com">eagle.antonio@gmail.com</a></a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Well i totally agree with the Dev team decision , it would be impossible for a DEV team to "get it right" in all the distros that's why i started this post.<br><br>But we also need to take into consideration that we are talking about IVR Processing ,&nbsp; not <span style="color:#cc0000"></span>auto-<i>attendants</i> or simply call pass trough. <br>


This means heavy use of TTS / ASR , Database Logic and Scripts , GetDigits and the works.<br><br>I use python alot , but i think the mod_python is not the best tool for this job i admit that , that's why im currently looking for other solutions.<br>


I'm thinking in using mod_socket , but that scares me ( letś say bad experiences with Asterisk AGI) Or Mod Curl<br><br>The main problem is that some IVR are extremely complex , like questionnaires , etc.<br><br>It would be great if we could mod_event_zmq to control the calls &lt;330.gif&gt;<br>


<br>Just to Sum it UP so far , so i can later add it to the wiki.<br><br>Use Cent OS 64.<br>Use tmpfs for all the databases.<br><br>Thank you all for helping and Happy Eastern.<br>António Teixeira<div><div></div><div>
<br><br><br><br><br><div class="gmail_quote">
2011/4/22 Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank"><a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a></a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


FreeSWITCH runs well on many platforms. However, the devs are painfully aware that bleeding edge distros have bleeding edge gcc compilers and other interesting issues. That being said, CentOS 5.x is "stable" in that it's old and boring, therefore it has the least amount of drama. OTOH, some of our users have been having great success with Arch Linux (IRC:bougeyman) and FS, even though Arch uses very recent kernels.<div>



<br></div><div>Bottom line: if you know what you're doing then you can probably run FS anywhere. If you don't know what you're doing then stick with CentOS 5.x or Debian Lenny until you do. (I run then both with zero issues, compiling latest git each day.)</div>



<div><br></div><div><font color="#888888">-MC</font><div><div></div><div><br><br><div class="gmail_quote">On Fri, Apr 22, 2011 at 10:03 AM, curriegrad2004 <span dir="ltr">&lt;<a href="mailto:curriegrad2004@gmail.com" target="_blank"><a href="mailto:curriegrad2004@gmail.com">curriegrad2004@gmail.com</a></a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Freeswitch is targeted for CentOS 5.3, which in my opinion quite short<br>
sighted for the developers to do this. However with the limited size<br>
of developers and testers, I'm afraid there's not much platforms we<br>
can throughly test and actually say "okay, FS will run flawlessly on X<br>
distro"<br>
<br>
However you can always try messing with the CFLAG's mtune option and<br>
see what it produces for you...<br>
<br>
2011/4/22 Christian Löschenkohl &lt;<a href="mailto:christian.loeschenkohl@xpirio.com" target="_blank"><a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a></a>&gt;:<br>
<div><div></div><div>&gt; hi<br>
&gt;<br>
&gt; if you refer to my e-mail<br>
&gt;<br>
&gt; yes, we do use tmpfs on both variants but<br>
&gt; - delays occur with concurrent calls &gt; 80-100<br>
&gt; - cps is limited to 5-10 on debian, with centos 30 cps and more are no problem at all<br>
&gt;<br>
&gt; also cpu load, stability and overall performace have been much better since using centos<br>
&gt;<br>
&gt; i just found out for me that debian works not as good for me as centos does.<br>
&gt; btw. everywhere else debian is 1st choice (desktop, lamp, db etc.)<br>
&gt;<br>
&gt; br<br>
&gt;<br>
&gt;<br>
&gt; On 2011-04-21 23:04, Jay Binks wrote:<br>
&gt;<br>
&gt;&gt; I have no such problems on debian .<br>
&gt;&gt;<br>
&gt;&gt; I use debian 5 with 2.6.18 kernel which is what Is recommended<br>
&gt;&gt;<br>
&gt;&gt; Are you using tmpfs ??<br>
&gt;&gt;<br>
&gt;&gt; Jay<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 22/04/2011, at 3:26 AM, Christian Löschenkohl&lt;<a href="mailto:christian.loeschenkohl@xpirio.com" target="_blank"><a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a></a>&gt; &nbsp;wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; hi<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; we did use debian too and had such performance issues (sip packet delays, low cps).<br>
&gt;&gt;&gt; after using centos 64bit (as advised by the devs) all performance problems are gone.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; br<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 2011-04-21 18:24, Antonio Teixeira wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Hello List.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I'm currently integrating an IVR in python together with freeswitch using mod_python and ESL and my life has been well until ...<br>
&gt;&gt;&gt;&gt; The flow of calls went over 80 simultaneous calls.<br>
&gt;&gt;&gt;&gt; Now freeswitch starts sending packets with huge delays ( even when establishing the call , mainly the 200 ) and firing up the IVR with tons of delay up to 20 seconds.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; So i searched the wiki forums and mailing list:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Put freeswitch on a diet , trimmed modules.conf<br>
&gt;&gt;&gt;&gt; Played with the ulimit stuff.<br>
&gt;&gt;&gt;&gt; Played with the IVRS to reduce load to a minimum and i was able to squeeze more 5 calls of performance.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; The problem is :<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Top shows<br>
&gt;&gt;&gt;&gt; top - 16:14:33 up 35 days, &nbsp;8:15, &nbsp;3 users, &nbsp;load average: 1.92, 1.76, 1.78<br>
&gt;&gt;&gt;&gt; Tasks: 133 total, &nbsp; 1 running, 132 sleeping, &nbsp; 0 stopped, &nbsp; 0 zombie<br>
&gt;&gt;&gt;&gt; Cpu(s): &nbsp;1.4%us, &nbsp;3.3%sy, &nbsp;0.0%ni, 94.6%id, &nbsp;0.0%wa, &nbsp;0.3%hi, &nbsp;0.5%si, &nbsp;0.0%st<br>
&gt;&gt;&gt;&gt; Mem: &nbsp; 8193336k total, &nbsp;1639156k used, &nbsp;6554180k free, &nbsp; 177208k buffers<br>
&gt;&gt;&gt;&gt; Swap: 19534904k total, &nbsp; &nbsp; &nbsp; &nbsp;0k used, 19534904k free, &nbsp;1062272k cached<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &nbsp; &nbsp;PID USER &nbsp; &nbsp; &nbsp;PR &nbsp;NI &nbsp;VIRT &nbsp;RES &nbsp;SHR S %CPU %MEM &nbsp; &nbsp;TIME+ &nbsp;COMMAND<br>
&gt;&gt;&gt;&gt; 31361 yadayada &nbsp; &nbsp; &nbsp;20 &nbsp; 0 &nbsp;716m 164m 9628 S &nbsp; 73 &nbsp;2.1 155:17.85 freeswitch<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Freeswitch goes up to 150 % and puff there goes the MOS down to 0.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Some basic System Info :<br>
&gt;&gt;&gt;&gt; Debian 6.0 ( i heard the timming module is affected by Debian , but if the CPU % gets lower than 95% everything will be more stable)<br>
&gt;&gt;&gt;&gt; Python 2.5<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; 2 x Intel(R) Xeon(R) CPU &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; E5506 &nbsp;@ 2.13GHz<br>
&gt;&gt;&gt;&gt; 8 GB of Ram<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; as you can see 94 % of the "Cpu Power" is sleeping :\<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; It appears freeswitch is only capable of using let's say "one cpu"/thread ??<br>
&gt;&gt;&gt;&gt; Do you guys recommend simply starting more instances or redoing the IVR stuff.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Hope you guys can help me out.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Thanks<br>
&gt;&gt;&gt;&gt; António Teixeira<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></a><br>
&gt;&gt;&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></a><br>
&gt;&gt;&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></a><br>
&gt;&gt;&gt;&gt; <a href="http://www.freeswitch.org" target="_blank"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Ing. Christian Löschenkohl<br>
&gt;&gt;&gt; Technische Leitung, Forschung&amp; &nbsp;Entwicklung VoIP<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; xpirio<br>
&gt;&gt;&gt; Telekommunikation&amp; &nbsp;Service GmbH<br>
&gt;&gt;&gt; Lakeside B04<br>
&gt;&gt;&gt; 9020 Klagenfurt<br>
&gt;&gt;&gt; Austria<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; T &nbsp;+43 5 77 11 - 1000<br>
&gt;&gt;&gt; F &nbsp;+43 5 77 11 - 1002<br>
&gt;&gt;&gt; E &nbsp;<a href="mailto:christian.loeschenkohl@xpirio.com" target="_blank"><a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a></a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></a><br>
&gt;&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></a><br>
&gt;&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></a><br>
&gt;&gt;&gt; <a href="http://www.freeswitch.org" target="_blank"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></a><br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></a><br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></a><br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Ing. Christian Löschenkohl<br>
&gt; Technische Leitung, Forschung &amp; Entwicklung VoIP<br>
&gt;<br>
&gt; xpirio<br>
&gt; Telekommunikation &amp; Service GmbH<br>
&gt; Lakeside B04<br>
&gt; 9020 Klagenfurt<br>
&gt; Austria<br>
&gt;<br>
&gt; T &nbsp;+43 5 77 11 - 1000<br>
&gt; F &nbsp;+43 5 77 11 - 1002<br>
&gt; E &nbsp;<a href="mailto:christian.loeschenkohl@xpirio.com" target="_blank"><a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a></a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></a><br>
&gt;<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></a><br>
<a href="http://www.freeswitch.org" target="_blank"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></a><br>
</div></div></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></a><br>
<a href="http://www.freeswitch.org" target="_blank"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></a><br>
<a href="http://www.freeswitch.org" target="_blank"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></a><br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></a><br>
<a href="http://www.freeswitch.org" target="_blank"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></a><br>
<br></blockquote></div><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br></div></blockquote></body></html>