<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=751324515-13062006><FONT face=Arial color=#0000ff size=2>2002
called. They want their operating system back. :- ) > </FONT></SPAN></DIV>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Mike Lynchfield
[mailto:theclubvoip@gmail.com]<BR><B>Sent:</B> Tuesday, June 13, 2006 9:42
AM<BR><B>To:</B> Asterisk Users Mailing List - Non-Commercial
Discussion<BR><B>Subject:</B> Re: [Asterisk-Users] IAX2 Vs SIP cpu
load<BR><BR></FONT></DIV>taskset does not seem to exist on redhad 9 nor
freebsd..<BR><BR>;)<BR><BR>
<DIV><SPAN class=gmail_quote>On 6/13/06, <B class=gmail_sendername>Zoa</B>
<<A href="mailto:zoachien@securax.org">zoachien@securax.org</A>> wrote:
</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><BR><BR>When
i did this test ages ago, i found out that iax was worse than sip,<BR>but
sip was worse than trunked iax. <BR><BR>Joachim<BR><BR>olin Anderson
wrote:<BR>> I use IAX2 quite a bit and I haven't really noticed any
difference between<BR>> IAX2 and SIP. CPU usage in Asterisk is aggravated
by transcoding, changing<BR>> one audio format to another, and SIP or
IAX2 is simply the protocol used to <BR>> carry the audio. Any function
of Asterisk will be affected by high system<BR>> load; if you have a
loadaverage of 3, for example, your box is in trouble<BR>> regardless of
the protocol used.<BR>><BR>> Although this may have changed in the
newer 1.2.X series of Asterisk, I<BR>> believe that Asterisk does not
support SMP from the perspective of<BR>> dispatching *internal* processes
to different CPU's, instead, *external*<BR>> processes such as AGI's are
balanced out and dispatched automatically to <BR>> different CPU's - but
this is a kernel thing.<BR>><BR>> It's generally well-known that a
"fake" SMP machine such as a HyperThreading<BR>> CPU affects Asterisk
negatively, and best practice is to disable <BR>> HyperThreading.
However, "real" SMP machines have no trouble (I use a 4 way<BR>> Xeon).
It's possible to "pin" a process to a specific CPU, and in fact, I
do<BR>> this to force Asterisk to it's own CPU, and pin all other
processes to a <BR>> specific CPU that Asterisk does *not*
use:<BR>><BR>> setasteriskaffinity.sh:<BR>><BR>>
#!/bin/bash<BR>> ASTERISKPID=`ps -A | grep -a -A0 "asterisk"`<BR>>
taskset 0x00000003 -p ${ASTERISKPID:0:5} <BR>><BR>> This
"pins" Asterisk to CPU # 4 on a 4 way system. Repeat for all other<BR>>
processes, to different CPU's with the affinity mask:<BR>><BR>>
0x00000000 = CPU 1<BR>> 0x00000001 = CPU 2 <BR>> 0x00000002 = CPU
3<BR>> 0x00000003 = CPU 4<BR>><BR>><BR>> -----Original
Message-----<BR>> From: Jon Schøpzinsky [mailto:<A
href="mailto:jos@detele.dk">jos@detele.dk</A>]<BR>> Sent: Tuesday, June
13, 2006 8:14 AM <BR>> To: Asterisk Users Mailing List - Non-Commercial
Discussion<BR>> Subject: [Asterisk-Users] IAX2 Vs SIP cpu
load<BR>><BR>><BR>> Hello<BR>><BR>> Is it correct that IAX2
uses more CPU, than SIP? Also, can it be true that <BR>> IAX2 is much
more sensitive against high CPU loads?<BR>> Also, does Asterisk support
and use multiprocessor architectures, such as<BR>>
Xeon?<BR>><BR>><BR>> Regards<BR>> Jon<BR>><BR>><BR>>
<BR><BR><BR>_______________________________________________<BR>--Bandwidth
and Colocation provided by <A href="http://Easynews.com">Easynews.com</A>
--<BR><BR>Asterisk-Users mailing list<BR>To UNSUBSCRIBE or update options
visit: <BR> <A
href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</A><BR></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>Mike<BR>Sales Manager<BR><A
href="http://www.theclubvoip.com">http://www.theclubvoip.com</A><BR>Making it
happen<BR>1.888.470.7253 </BLOCKQUOTE></BODY></HTML>