jack, PREEMPT_DESKTOP, delayed interrupts?
From: Fernando Lopez-Lezcano (nando_at_ccrma.Stanford.EDU)
Date: 08/31/05
- Previous message: Jeff Garzik: "Re: [PATCH] libata: add ATAPI module option"
- Next in thread: Lee Revell: "Re: jack, PREEMPT_DESKTOP, delayed interrupts?"
- Reply: Lee Revell: "Re: jack, PREEMPT_DESKTOP, delayed interrupts?"
- Reply: Ingo Molnar: "Re: jack, PREEMPT_DESKTOP, delayed interrupts?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: jackit-devel@lists.sourceforge.net, Ingo Molnar <mingo@elte.hu>, Lee Revell <rlrevell@joe-job.com>, linux-kernel@vger.kernel.org Date: 30 Aug 2005 19:03:15 -0700
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Jeff Garzik: "Re: [PATCH] libata: add ATAPI module option"
- Next in thread: Lee Revell: "Re: jack, PREEMPT_DESKTOP, delayed interrupts?"
- Reply: Lee Revell: "Re: jack, PREEMPT_DESKTOP, delayed interrupts?"
- Reply: Ingo Molnar: "Re: jack, PREEMPT_DESKTOP, delayed interrupts?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: Confusing sound issues (ALSA, jackd, etc.)
... you can just run JACK and Ardour as a regular user. ... start it with jackd
and don't elect to start with realtime set, ... > Differences abound, depending on kernel
version, etc. ... The state of audio documentation is absolutely PATHETIC. ... (Debian-User) - Re: [PATCH] [request for inclusion] Realtime LSM
... I made no changes to the kernel, ... That JACK scheduling test doesn't
have any graphical component, ... cannot detect the problems of audio applications with
GTK or Qt ... realtime with SCHED_FIFO scheduling. ... (Linux-Kernel) - Re: Mac mini sound woes
... JACK can do low latency sample accurate audio, ... The fact that OSX
and Windows do this in the kernel is not a good ... Most audio people consider JACK + ALSA
a better design ... (Linux-Kernel) - Re: [patch, 2.6.11-rc2] sched: /proc/sys/kernel/rt_cpu_limit tunable
... JACK subsystem is rather catastophic, ... realtime clients than the kernel,
because it knows more about what the ... suitably privileged user to adjust the per-CPU
limit directly while ... (Linux-Kernel) - Re: RT patch acceptance
... > was already considerable worse for latency tests with jack than 2.6.8+ ...
Check the linux-audio-user or linux-audio-dev ... mainline kernel that gives acceptable
performance at all. ... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel)