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> &lt;<a href="mailto:zoachien@securax.org">zoachien@securax.org</a>&gt; 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>&gt; I use IAX2 quite a bit and I haven't really noticed any difference between<br>&gt; IAX2 and SIP. CPU usage in Asterisk is aggravated by transcoding, changing<br>&gt; one audio format to another, and SIP or IAX2 is simply the protocol used to
<br>&gt; carry the audio. Any function of Asterisk will be affected by high system<br>&gt; load; if you have a loadaverage of 3, for example, your box is in trouble<br>&gt; regardless of the protocol used.<br>&gt;<br>&gt; Although this may have changed in the newer 
1.2.X series of Asterisk, I<br>&gt; believe that Asterisk does not support SMP from the perspective of<br>&gt; dispatching *internal* processes to different CPU's, instead, *external*<br>&gt; processes such as AGI's are balanced out and dispatched automatically to
<br>&gt; different CPU's - but this is a kernel thing.<br>&gt;<br>&gt; It's generally well-known that a &quot;fake&quot; SMP machine such as a HyperThreading<br>&gt; CPU affects Asterisk negatively, and best practice is to disable
<br>&gt; HyperThreading. However, &quot;real&quot; SMP machines have no trouble (I use a 4 way<br>&gt; Xeon). It's possible to &quot;pin&quot; a process to a specific CPU, and in fact, I do<br>&gt; this to force Asterisk to it's own CPU, and pin all other processes to a
<br>&gt; specific CPU that Asterisk does *not* use:<br>&gt;<br>&gt; setasteriskaffinity.sh:<br>&gt;<br>&gt; #!/bin/bash<br>&gt; ASTERISKPID=`ps -A | grep -a -A0 &quot;asterisk&quot;`<br>&gt; taskset 0x00000003 -p&nbsp;&nbsp;${ASTERISKPID:0:5}
<br>&gt;<br>&gt; This &quot;pins&quot; Asterisk to CPU # 4 on a 4 way system. Repeat for all other<br>&gt; processes, to different CPU's with the affinity mask:<br>&gt;<br>&gt; 0x00000000 = CPU 1<br>&gt; 0x00000001 = CPU 2
<br>&gt; 0x00000002 = CPU 3<br>&gt; 0x00000003 = CPU 4<br>&gt;<br>&gt;<br>&gt; -----Original Message-----<br>&gt; From: Jon Schøpzinsky [mailto:<a href="mailto:jos@detele.dk">jos@detele.dk</a>]<br>&gt; Sent: Tuesday, June 13, 2006 8:14 AM
<br>&gt; To: Asterisk Users Mailing List - Non-Commercial Discussion<br>&gt; Subject: [Asterisk-Users] IAX2 Vs SIP cpu load<br>&gt;<br>&gt;<br>&gt; Hello<br>&gt;<br>&gt; Is it correct that IAX2 uses more CPU, than SIP? Also, can it be true that
<br>&gt; IAX2 is much more sensitive against high CPU loads?<br>&gt; Also, does Asterisk support and use multiprocessor architectures, such as<br>&gt; Xeon?<br>&gt;<br>&gt;<br>&gt; Regards<br>&gt; Jon<br>&gt;<br>&gt;<br>&gt;
<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>&nbsp;&nbsp; <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