linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* jack, PREEMPT_DESKTOP, delayed interrupts?
@ 2005-08-31  2:03 Fernando Lopez-Lezcano
  2005-08-31  2:39 ` Lee Revell
  2005-08-31  7:35 ` Ingo Molnar
  0 siblings, 2 replies; 13+ messages in thread
From: Fernando Lopez-Lezcano @ 2005-08-31  2:03 UTC (permalink / raw)
  To: jackit-devel, Ingo Molnar, Lee Revell, linux-kernel
  Cc: Fernando Pablo Lopez-Lezcano, cc

Hi, I'm starting to look at a strange problem. The configuration is:
hardware: AMD X2 4400+ dual core, NForce3 chipset, Midiman 66 soundcard
software: 2.6.13 smp + patch-2.6.13-rt1, PREEMPT_DESKTOP
          jack 0.100.4, current cvs
          alsa 1.0.10rc1

This is the sequence of events. Start Jack inside Qjackctl (a Jack Audio
Connection Kit GUI front end) with 2 x 128 frames, start Ardour (a
digital audio workstation) - load a very simple recording session, start
Hydrogen (a drum machine). Play around with them, everything seems to
work fine. No glitches, very solid performance. 

Do a "tar cvf usr.tar /usr" just to read/write a lot to disk (this
within the same SATA disk). Watch memory being used in a system monitor
applet up to 100%. After a while, hard to say how long (maybe 10/15
minutes?) the system eventually can get into a state where Jack starts
printing messages of the type "delay of 3856.000 usecs exceeds estimated
spare time of 2653.000; restart ..." (if I understand correctly this
means interrupts are being delayed on their way to Jack, or at least
Jack thinks they are arriving too late), along with some less frequent
xun notices. 

Now the strange thing is that this condition seems to be persistent.
Nothing I do after it starts to happen seems to halt those messages.
Including stopping Jack and starting it again, and even (tried it once)
stopping the alsa sound driver and loading it again. Nothing out of the
ordinary in dmesg or /var/log/messages. I would guess that something
"breaks" inside the kernel with regards to interrupt handling and/or
whatever Jack uses to measure time inside the kernel? Interrupts are
prioritized correctly (rtc, then audio and jack runs at lower realtime
priority than the audio interrupts), everything else looks fine. 

I could not get this to happen while running a uniprocessor kernel on
the same machine but I may not have tried long enough. I do see a "delay
exceeds" or "xun" message every once in a while but not a steady,
unstoppable stream of them. 

This seemed to be much worse, or easier to trigger, when running an
older realtime-preempt-2.6.12-final-V0.7.51-27 smp kernel. 

I don't know what information may be useful to even start making some
sense out of this. 

-- Fernando



^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: jack, PREEMPT_DESKTOP, delayed interrupts?
@ 2005-09-26 19:08 Karsten Wiese
  2005-09-28  9:38 ` Ingo Molnar
  0 siblings, 1 reply; 13+ messages in thread
From: Karsten Wiese @ 2005-09-26 19:08 UTC (permalink / raw)
  To: Fernando Lopez-Lezcano; +Cc: Ingo Molnar, linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 1713 bytes --]

> # cat /proc/latency_trace
> preemption latency trace v1.1.5 on 2.6.13-0.3.rdtd.rhfc4.ccrmasmp
> --------------------------------------------------------------------
>  latency: 10852 us, #70/70, CPU#0 | (M:preempt VP:0, KP:1, SP:1 HP:1
> #P:2)
>     -----------------
>     | task: qjackctl-4797 (uid:743 nice:0 policy:1 rt_prio:61)
>     -----------------
> 
>                  _------=> CPU#
>                 / _-----=> irqs-off
>                | / _----=> need-resched
>                || / _---=> hardirq/softirq
>                ||| / _--=> preempt-depth
>                |||| /
>                |||||     delay
>    cmd     pid ||||| time  |   caller
>       \   /    |||||   \   |   /
>    <...>-4593  1Dnh3    0us : MacPrivateStat (SkPnmiGetStruct)
>    <...>-4593  1Dnh3    0us : MacPrivateStat (SkPnmiGetStruct)
<snip>
>    <...>-4593  1Dnh3   18us : SkGmMacStatistic (GetPhysStatVal)
>    <...>-4593  1Dnh3   20us : GetStatVal (MacPrivateStat)
>    <...>-4593  1Dnh3   20us : GetPhysStatVal (GetStatVal)
>    <...>-4593  1Dnh3   20us+: SkGmMacStatistic (GetPhysStatVal)
>    <...>-4593  1Dnh3   22us : GetStatVal (MacPrivateStat)
>    <...>-4593  1Dnh3   22us : GetPhysStatVal (GetStatVal)
>    <...>-4593  1Dnh3   22us+: SkGmMacStatistic (GetPhysStatVal)
>    <...>-4593  1Dnh3   24us!: MacPrivateStat (SkPnmiGetStruct)
> softirq--8     0Dnh4 9901us : trace_change_sched_cpu (1 0 0)

Maybe your ethernet device is getting in the way.
Do you also get jack dropouts with ethernet chip disabled,
it's Module unloaded?

      Karsten

		
___________________________________________________________ 
Was denken Sie über E-Mail? Wir hören auf Ihre Meinung: http://surveylink.yahoo.com/wix/p0379378.aspx

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2005-09-28 16:29 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-31  2:03 jack, PREEMPT_DESKTOP, delayed interrupts? Fernando Lopez-Lezcano
2005-08-31  2:39 ` Lee Revell
2005-08-31  5:12   ` Fernando Lopez-Lezcano
2005-08-31  7:35 ` Ingo Molnar
2005-08-31 12:08   ` [Jackit-devel] " Jack O'Quin
2005-08-31 15:50     ` Florian Schmidt
2005-09-01  7:32       ` Ingo Molnar
2005-09-01 17:28         ` Jack O'Quin
2005-08-31 15:08   ` Fernando Lopez-Lezcano
2005-09-26 17:59   ` Fernando Lopez-Lezcano
2005-09-26 19:08 Karsten Wiese
2005-09-28  9:38 ` Ingo Molnar
2005-09-28 16:29   ` Fernando Lopez-Lezcano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).