[Freeswitch-users] Timing issues in AWS?

Michael Picher mpicher at gmail.com
Wed Nov 16 19:56:03 MSK 2011


I fully understand the nature of a timeshare system...  they go way back
before AS400's...  I used them on DEC PDP11's.

Indeed you can't make sure that one instance isn't 'hogging' CPU unless
there's an even distribution of time / cpu unit.

That being said, it has been implied that FS should work on a large AWS
instance...  I'm trying to get to the bottom of how many users and how
large a system questions that we have.  I just have basic timing problems
at this point with very small conference bridges on a m1.large AWS
instance.  Granted, I don't know what the rest of the server is doing but
these are pretty consistent problems.

Mike

On Wed, Nov 16, 2011 at 11:47 AM, Ken Rice <krice at freeswitch.org> wrote:

>  Actually, consider this, you have 1 server running 10 different
> instances for 10 different people and as AWS you have to try and be level
> handed about how you hand out instances on a single node in your cloud
> cluster...
>
> How do you make sure that instance 1 isnt hogging all the CPU time that
> instances 9 – 10 need?
>
> This is the nature of a timeshare system... This goes back to AS400s SYS
> 34’s and 36’s... Don’t get me wrong I think AWS, and cloud computing in
> general can be great for certain things (store and forward), but do you
> really want to chance the interruptions in RealTime media streaming where
> any delay in processing causes missed or dropped packets...
>
>
>
> On 11/16/11 9:43 AM, "Michael Picher" <mpicher at gmail.com> wrote:
>
> Hi guys,
>
> Trying to get to the bottom of some conference bridge issues I'm having
> with running the system in AWS.
>
> We're hearing a bunch of snap-crackle-pops in conference bridges and when
> I tcpdum on the server itself I see them in the RTP and see RTP timestamp
> problems.
>
> I've run the following:
>
>
> timer_test
> freeswitch at 127.0.0.1@internal> timer_test 120 10
>
> Avg: 120.004ms Total Time: 1200.315ms
>
> 2011-11-16 10:25:56.121131 [CONSOLE] mod_commands.c:461 Timer Test:
> samplecount after init: 1
> freeswitch at 127.0.0.1@internal> 2011-11-16 10:25:56.219163 [CONSOLE]
> mod_commands.c:466 Timer Test: samplecount after first step: 2
> 2011-11-16 10:25:56.339195 [CONSOLE] mod_commands.c:475 Timer Test: 1
> sleep 120 120006
> 2011-11-16 10:25:56.459259 [CONSOLE] mod_commands.c:475 Timer Test: 2
> sleep 120 120040
> 2011-11-16 10:25:56.579259 [CONSOLE] mod_commands.c:475 Timer Test: 3
> sleep 120 119976
> 2011-11-16 10:25:56.699291 [CONSOLE] mod_commands.c:475 Timer Test: 4
> sleep 120 120007
> 2011-11-16 10:25:56.819318 [CONSOLE] mod_commands.c:475 Timer Test: 5
> sleep 120 120001
> 2011-11-16 10:25:56.939375 [CONSOLE] mod_commands.c:475 Timer Test: 6
> sleep 120 120031
> 2011-11-16 10:25:57.059397 [CONSOLE] mod_commands.c:475 Timer Test: 7
> sleep 120 119996
> 2011-11-16 10:25:57.179422 [CONSOLE] mod_commands.c:475 Timer Test: 8
> sleep 120 119994
> 2011-11-16 10:25:57.299461 [CONSOLE] mod_commands.c:475 Timer Test: 9
> sleep 120 120005
> 2011-11-16 10:25:57.419478 [CONSOLE] mod_commands.c:475 Timer Test: 10
> sleep 120 119991
>
> test_time
> freeswitch at 127.0.0.1@internal> time_test 600 10
>
> test 1 sleep 600 1592
> test 2 sleep 600 986
> test 3 sleep 600 1018
> test 4 sleep 600 980
> test 5 sleep 600 1005
> test 6 sleep 600 1000
> test 7 sleep 600 972
> test 8 sleep 600 990
> test 9 sleep 600 1006
> test 10 sleep 600 994
> avg 1054
>
> For kernel:
> [root at openuc bin]# uname -r
>
> 2.6.21.7-2.fc8xen
>
> CONFIG_HZ:
> [root at openuc bin]# grep CONFIG_HZ /boot/config-*
>
> /boot/config-2.6.16.33-xenU-x86_64:CONFIG_HZ_100=y
> /boot/config-2.6.16.33-xenU-x86_64:# CONFIG_HZ_250 is not set
> /boot/config-2.6.16.33-xenU-x86_64:# CONFIG_HZ_1000 is not set
> /boot/config-2.6.16.33-xenU-x86_64:CONFIG_HZ=100
> /boot/config-2.6.18-164.15.1.el5.centos.plus:# CONFIG_HZ_100 is not set
> /boot/config-2.6.18-164.15.1.el5.centos.plus:# CONFIG_HZ_250 is not set
> /boot/config-2.6.18-164.15.1.el5.centos.plus:CONFIG_HZ_1000=y
> /boot/config-2.6.18-164.15.1.el5.centos.plus:CONFIG_HZ=1000
> /boot/config-2.6.21-2952.fc8xen:# CONFIG_HZ_100 is not set
> /boot/config-2.6.21-2952.fc8xen:# CONFIG_HZ_250 is not set
> /boot/config-2.6.21-2952.fc8xen:# CONFIG_HZ_300 is not set
> /boot/config-2.6.21-2952.fc8xen:CONFIG_HZ_1000=y
> /boot/config-2.6.21-2952.fc8xen:CONFIG_HZ=1000
>
> are the xenU kernel settings screwing me here?
>
> Thanks,
>   Mike
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


-- 
There are 10 kinds of people in this world, those who understand binary and
those who don't.

mpicher at gmail.com
blog: http://www.sipxecs.info
call: sip:mpicher at sipxecs.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111116/de1465f7/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list