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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><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