Hello Is it correct that IAX2 uses more CPU, than SIP? Also, can it be true that IAX2 is much more sensitive against high CPU loads? Also, does Asterisk support and use multiprocessor architectures, such as Xeon? ? Regards Jon -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/362 - Release Date: 12-06-2006
dual support yes.. however i read a few articles on the fuct that single with double the ram is better.. something about the bus or sshare between both processors i think. i would go AMD opteron, but that me. or sun On 6/13/06, Jon Sch?pzinsky <jos@detele.dk> wrote:> > Hello > > Is it correct that IAX2 uses more CPU, than SIP? Also, can it be true that > IAX2 is much more sensitive against high CPU loads? > Also, does Asterisk support and use multiprocessor architectures, such as > Xeon? > > > Regards > Jon > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.8.3/362 - Release Date: 12-06-2006 > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Mike Sales Manager http://www.theclubvoip.com Making it happen 1.888.470.7253 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060613/b30fba7f/attachment.htm
I use IAX2 quite a bit and I haven't really noticed any difference between IAX2 and SIP. CPU usage in Asterisk is aggravated by transcoding, changing one audio format to another, and SIP or IAX2 is simply the protocol used to carry the audio. Any function of Asterisk will be affected by high system load; if you have a loadaverage of 3, for example, your box is in trouble regardless of the protocol used. Although this may have changed in the newer 1.2.X series of Asterisk, I believe that Asterisk does not support SMP from the perspective of dispatching *internal* processes to different CPU's, instead, *external* processes such as AGI's are balanced out and dispatched automatically to different CPU's - but this is a kernel thing. It's generally well-known that a "fake" SMP machine such as a HyperThreading CPU affects Asterisk negatively, and best practice is to disable HyperThreading. However, "real" SMP machines have no trouble (I use a 4 way Xeon). It's possible to "pin" a process to a specific CPU, and in fact, I do this to force Asterisk to it's own CPU, and pin all other processes to a specific CPU that Asterisk does *not* use: setasteriskaffinity.sh: #!/bin/bash ASTERISKPID=`ps -A | grep -a -A0 "asterisk"` taskset 0x00000003 -p ${ASTERISKPID:0:5} This "pins" Asterisk to CPU # 4 on a 4 way system. Repeat for all other processes, to different CPU's with the affinity mask: 0x00000000 = CPU 1 0x00000001 = CPU 2 0x00000002 = CPU 3 0x00000003 = CPU 4 -----Original Message----- From: Jon Sch?pzinsky [mailto:jos@detele.dk] Sent: Tuesday, June 13, 2006 8:14 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [Asterisk-Users] IAX2 Vs SIP cpu load Hello Is it correct that IAX2 uses more CPU, than SIP? Also, can it be true that IAX2 is much more sensitive against high CPU loads? Also, does Asterisk support and use multiprocessor architectures, such as Xeon? ? Regards Jon -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/362 - Release Date: 12-06-2006 _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
2002 called. They want their operating system back. :- ) > -----Original Message----- From: Mike Lynchfield [mailto:theclubvoip@gmail.com] Sent: Tuesday, June 13, 2006 9:42 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] IAX2 Vs SIP cpu load taskset does not seem to exist on redhad 9 nor freebsd.. ;) On 6/13/06, Zoa < zoachien@securax.org <mailto:zoachien@securax.org> > wrote: When i did this test ages ago, i found out that iax was worse than sip, but sip was worse than trunked iax. Joachim olin Anderson wrote:> I use IAX2 quite a bit and I haven't really noticed any difference between > IAX2 and SIP. CPU usage in Asterisk is aggravated by transcoding, changing > one audio format to another, and SIP or IAX2 is simply the protocol usedto> carry the audio. Any function of Asterisk will be affected by high system > load; if you have a loadaverage of 3, for example, your box is in trouble > regardless of the protocol used. > > Although this may have changed in the newer 1.2.X series of Asterisk, I > believe that Asterisk does not support SMP from the perspective of > dispatching *internal* processes to different CPU's, instead, *external* > processes such as AGI's are balanced out and dispatched automatically to > different CPU's - but this is a kernel thing. > > It's generally well-known that a "fake" SMP machine such as aHyperThreading> CPU affects Asterisk negatively, and best practice is to disable > HyperThreading. However, "real" SMP machines have no trouble (I use a 4way> Xeon). It's possible to "pin" a process to a specific CPU, and in fact, Ido> this to force Asterisk to it's own CPU, and pin all other processes to a > specific CPU that Asterisk does *not* use: > > setasteriskaffinity.sh: > > #!/bin/bash > ASTERISKPID=`ps -A | grep -a -A0 "asterisk"` > taskset 0x00000003 -p ${ASTERISKPID:0:5} > > This "pins" Asterisk to CPU # 4 on a 4 way system. Repeat for all other > processes, to different CPU's with the affinity mask: > > 0x00000000 = CPU 1 > 0x00000001 = CPU 2 > 0x00000002 = CPU 3 > 0x00000003 = CPU 4 > > > -----Original Message----- > From: Jon Sch?pzinsky [mailto: jos@detele.dk <mailto:jos@detele.dk> ] > Sent: Tuesday, June 13, 2006 8:14 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: [Asterisk-Users] IAX2 Vs SIP cpu load > > > Hello > > Is it correct that IAX2 uses more CPU, than SIP? Also, can it be true that> IAX2 is much more sensitive against high CPU loads? > Also, does Asterisk support and use multiprocessor architectures, such as > Xeon? > > > Regards > Jon > > >_______________________________________________ --Bandwidth and Colocation provided by Easynews.com <http://Easynews.com> -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users <http://lists.digium.com/mailman/listinfo/asterisk-users> -- Mike Sales Manager http://www.theclubvoip.com <http://www.theclubvoip.com> Making it happen 1.888.470.7253 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060613/fc83ce08/attachment.htm
There is work by the devs to threading in the IAX and SIP channels, I believe. I don't know if it's made it's way back to -HEAD or not, maybe kpf can give a definitive answer. I remember reading something by Mark S earlier this year that he had IAX threading working. -----Original Message----- From: Dinesh Nair [mailto:dinesh@alphaque.com] Sent: Tuesday, June 13, 2006 9:47 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] IAX2 Vs SIP cpu load On 06/13/06 22:49 Colin Anderson said the following:> Although this may have changed in the newer 1.2.X series of Asterisk, I > believe that Asterisk does not support SMP from the perspective ofisnt asterisk multithreaded ? on a proper OS thread implementation, threads can migrate across CPUs, can't they ? -- Regards, /\_/\ "All dogs go to heaven." dinesh@alphaque.com (0 0) http://www.openmalaysiablog.com/ +==========================----oOO--(_)--OOo----==========================+ | for a in past present future; do | | for b in clients employers associates relatives neighbours pets; do | | echo "The opinions here in no way reflect the opinions of my $a $b." | | done; done | +=========================================================================+ _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Hi, I have two asterisk systems that share voicemail on an NFS. I recently upgraded to Asterisk 1.2.9.1. After the upgrade, the voicemail gets cut out after about 5 seconds of recording. Any ideas on what might be causing this? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
On Jun 13, 2006, at 10:08 AM, BILL GITONGA wrote:> > Hi, > > I have two asterisk systems that share voicemail on an > NFS. I recently upgraded to Asterisk 1.2.9.1. > After the upgrade, the voicemail gets cut out after > about 5 seconds of recording. Any ideas on what might > be causing this? >I think there was a "fix" for silence detection, that is just a wild guess on my part of course... Marty
BILL GITONGA wrote:> I have two asterisk systems that share voicemail on an > NFS. I recently upgraded to Asterisk 1.2.9.1. > After the upgrade, the voicemail gets cut out after > about 5 seconds of recording. Any ideas on what might > be causing this? >What does it show on the CLI when this happens? More info would be helpful.