<html>
<head>
</head>
<body>
Thanks, you explained that well<br>
<br>
Joel Sherrill wrote:<br>
<blockquote type="cite" cite="mid:3D89DCE4.64C6D86E@OARcorp.com">
  <pre wrap=""><br>Angelo Fraietta wrote:<br></pre>
  <blockquote type="cite">
    <pre wrap="">Would increasing the CONFIGURE_MICROSECONDS_PER_TICK define reduce<br>interrupt latency? I have a large number of interrupts happening and was<br>wondering that by increasing this time, the kernel would spend less time<br>servicing the task scheduler?, thus giving the external interrupts I<br>receive a bigger slice of the Pie.<br><br>It is currently set at 1000, so would increasing it to 2000<br>theoretically give better performance for interrupts?<br></pre>
    </blockquote>
    <pre wrap=""><!----><br>Like many things in life, it is a trade-off.   Upping it to <br>2000 would result in getting fewer clock tick interrupts.  So<br>1/2 of the system time spent servicing that interrupt source<br>would disappear.  That should free some CPU time.  More importantly,<br>it frees time you are in an ISR which could reduce the latency for<br>the other interrupt sources.  But it does so at a cost of accuracy<br>in your delays and timeouts. Are all your intervals in 2 msec<br>multiples?  Can you live with a 1 msec average error vs 500 usec?<br></pre>
    </blockquote>
I think it would be hard to hear musically anything last than 5ms, so a 2ms
would probably be OK.<br>
    <blockquote type="cite" cite="mid:3D89DCE4.64C6D86E@OARcorp.com">
      <pre wrap=""><br>Are you using timeslicing at all that would be impacted by the<br>increase?<br><br>It could really help though.  And if you can live with it<br>consider moving to 5 msecs or 10 msecs.  The magic to 1 msec<br>clock ticks is that all millisecond intervals have the <br>math work out so you don't lose by division. :)<br><br></pre>
      </blockquote>
BTW, I will be doing the first performance with the Smart Controller this
Thrusday<br>
      <pre class="moz-signature" cols="$mailwrapcol">-- 
Angelo Fraietta

PO Box 859
Hamilton NSW 2303

Home Page


<a class="moz-txt-link-freetext" href="http://www.users.bigpond.com/angelo_f/">http://www.users.bigpond.com/angelo_f/</a>

There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
    Bernard of Clairvaux (1090 - 1153)</pre>
      <br>
      </body>
      </html>