<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Nigel,<br>
<br>
see below<br>
<br>
Florian Schmidt wrote:
<blockquote cite="mid200710041810.48667.mista.tapas@gmx.net" type="cite">
  <pre wrap="">On Thursday 04 October 2007, Nigel Henry wrote:

  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">Ok, you have not done any irq priority tuning.. Try setting the IRQ-10
process [your emu10k1] to prio 90..
        </pre>
      </blockquote>
      <pre wrap="">I'm not sure what I'm doing here. I presume I need to use chrt to change
the priority, but am not sure of the correct syntax. The current pid for
IRQ10 is 940.

Could you give me a line that will work for this pid, as the man page is
pretty hopeless with no examples, and about 3 hrs of googling turned up
virtually nothing.

Many thanks.

Nigel.

      </pre>
      <blockquote type="cite">
        <pre wrap="">Flo
        </pre>
      </blockquote>
    </blockquote>
    <pre wrap="">Bad to reply to my own post, but I've resolved the problem.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I never quite understood what was supposed to be bad about replying to one's 
own post.. :)

  </pre>
  <blockquote type="cite">
    <pre wrap="">One xrun after 6m 33secs of 0.253 msecs, which is what I'm getting on
Fedora 7.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
With soundcard irq prio at 90 [not shared with any other device], Jack prio at 
70 and all other irq prios at default 51?

Then it's either an application bug [are you running any applications]? Or a 
bug in the emu10k1 driver. Or in jackd, though i suppose that's rather 
unlikely..

  </pre>
  <blockquote type="cite">
    <pre wrap="">Will that change of priority I've made for the soundcard on the current
pid, hold after a reboot?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Nope.. It will be started with the default prio again. Have a look at the 
rtirq script or fiddle your own initscript. Most distros have some "local" 
init script where you put that command..

Flo
  </pre>
</blockquote>
Nigel,<br>
<br>
This will tell you which IRQ your sound card is on:<br>
cat /proc/interrupts | grep -i emu10k1<br>
<br>
Then use this line to set the rtprio value (90 in this example) of that
IRQ (obviously, replace the xx with your actual IRQ value).&nbsp;&nbsp; Assuming
this IRQ is stable across reboots, put this line in /etc/rc.local on
Fedora systems.&nbsp; Been working well here for a long time.<br>
chrt -f -p 90 `pidof "IRQ-xx"`<br>
<br>
If some shell scripting guru wants to jump in, I'm sure there is a way
to connect these two lines so that the emu10k IRQ is found at boot time
(so this removes the requirement that your sound card always gets the
same IRQ).<br>
<br>
HTH,<br>
Rick<br>
</body>
</html>