From: "Jack O'Quin" <joq@io.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Fernando Lopez-Lezcano <nando@ccrma.Stanford.EDU>,
jackit-devel@lists.sourceforge.net,
Lee Revell <rlrevell@joe-job.com>,
linux-kernel@vger.kernel.org, cc@ccrma.Stanford.EDU,
Steven Rostedt <rostedt@goodmis.org>
Subject: Re: [Jackit-devel] Re: jack, PREEMPT_DESKTOP, delayed interrupts?
Date: Wed, 31 Aug 2005 07:08:08 -0500 [thread overview]
Message-ID: <7q64tmnwbb.fsf@io.com> (raw)
In-Reply-To: <20050831073518.GA7582@elte.hu> (Ingo Molnar's message of "Wed, 31 Aug 2005 09:35:18 +0200")
Ingo Molnar <mingo@elte.hu> writes:
> - if everything fails and automatic latency tracing does not show
> anything out of ordinary, then you could try to do "user-triggered
> tracing" of jackd's critical path. This is more laborous to do, but
> should pinpoint the latency reason in a pretty sure way.
>
> user-triggered tracing is done via adding those special gettimeofday
> calls to jackd and recompiling jackd. I've attached an older hack
> against jackd below, you might need to merge it to recent jackd. NOTE:
> this patch will only work if you are getting xrun messages from ALSA.
> It has to be reworked if your latencies are not actual xruns.
JACK sources already include a CHECK_PREEMPTION() macro which expands
to Ingo's special gettimeofday() calls. The trace is turned on and
then off automatically before and after the realtime critical section
in the process thread (see libjack/client.c).
Ingo's suggested ALSA backend patch is not presently included.
There are probably some other places where these macros could usefully
be added. We will integrate patches adding them in appropriate spots.
They do no harm in vanilla kernels without tracing enabled.
--
joq
next prev parent reply other threads:[~2005-08-31 12:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Jack O'Quin [this message]
2005-08-31 15:50 ` [Jackit-devel] " 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7q64tmnwbb.fsf@io.com \
--to=joq@io.com \
--cc=cc@ccrma.Stanford.EDU \
--cc=jackit-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=nando@ccrma.Stanford.EDU \
--cc=rlrevell@joe-job.com \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox