Re: [LAU] Testing JACK and PA latency

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-user@...>
Date: Saturday, September 21, 2013 - 11:27 am

On Sat, September 21, 2013 5:08 am, Fons Adriaensen wrote:

Are there competing definitions these days?

>> I'm running jack with realtime capabilities but not a realtime kernel.

In this case PA is not in the loop. However I am running the system at 64
frames/period and it is an onboard hda_intel chipset so I am not expecting
miracles.

> Try to record the signal coming back from the PA-sink, e.g. using

I can hear the signal coming out of the speakers. I can't hear or see it
easily once it has been returned into the system again via the mic. My
ears could be deceiving me though.

Does anyone have another suggestion for how to accurately monitor audio
discontinuities in realtime so I can rule them out or tweak the system
until they are no longer occurring?

zita-scope perhaps?

Regarding scripting the test procedure. Basically start up jack at varying
period sizes and run the test system for x amount of time (minimum of 10
mins). Collate the details returned by the console logs and parse them
into a report.

Number of nodes in the graph
Average latency
Number of xruns
Number of changes to the latency
Total number of x latency recorded
Number of xruns during x latency
CPU load during x latency
Processes running during x latency and CPU load for each process

What I am missing from the report is latency between each node in the
graph. I think jack_iodelay could be extended to provide a passthrough for
an input signal pulse and send a response at another frequency using the
input pulse as a trigger then timestamp the signals and report the
individual latencies. Maybe this could be done with a single instance so
that they all share the same clock and logging mechanism?

ex.

jack_delay --ports=4

The graph would then look like this:

jack_delay (out1) -> pa_source (in) -> jack_delay(in2) -> jack_delay
(out2) -> ecasound (in) -> ecasound (out) -> jack_delay (in3) ->
jack_delay (out3) -> pa_sink (out) -> jack_delay (in4) -> jack_delay
(out4) -> system_out -> system_in -> jack_delay (in1)

Obviously sharing a port of jack_delay between JACK and PA is going to be
a mother trucker to implement and is probably the most painful method, so
if there are other more effective and simpler methods to get the data out
of the system it would be very helpful to know about them.

--
Patrick Shirkey
Boost Hardware Ltd
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-user

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAU] Testing JACK and PA latency, Patrick Shirkey, (Thu Sep 19, 8:46 am)
Re: [LAU] Testing JACK and PA latency, Fons Adriaensen, (Thu Sep 19, 9:42 am)
Re: [LAU] Testing JACK and PA latency, Patrick Shirkey, (Thu Sep 19, 10:04 am)
Re: [LAU] Testing JACK and PA latency, Fons Adriaensen, (Thu Sep 19, 10:46 am)
Re: [LAU] Testing JACK and PA latency, Patrick Shirkey, (Wed Sep 25, 1:32 pm)
Re: [LAU] Testing JACK and PA latency, Len Ovens, (Thu Sep 19, 2:01 pm)
Re: [LAU] Testing JACK and PA latency, Patrick Shirkey, (Thu Sep 19, 2:21 pm)
Re: [LAU] Testing JACK and PA latency, Len Ovens, (Thu Sep 19, 11:48 pm)
Re: [LAU] Testing JACK and PA latency, Patrick Shirkey, (Fri Sep 20, 12:57 am)
Re: [LAU] Testing JACK and PA latency, Patrick Shirkey, (Fri Sep 20, 8:59 am)
Re: [LAU] Testing JACK and PA latency, Fons Adriaensen, (Fri Sep 20, 10:31 am)
Re: [LAU] Testing JACK and PA latency, Patrick Shirkey, (Fri Sep 20, 10:41 am)
Re: [LAU] Testing JACK and PA latency, Fons Adriaensen, (Fri Sep 20, 3:13 pm)
Re: [LAU] Testing JACK and PA latency, Patrick Shirkey, (Fri Sep 20, 6:07 pm)
Re: [LAU] Testing JACK and PA latency, Fons Adriaensen, (Fri Sep 20, 7:08 pm)
Re: [LAU] Testing JACK and PA latency, Patrick Shirkey, (Sat Sep 21, 11:27 am)
Re: [LAU] Testing JACK and PA latency, Patrick Shirkey, (Thu Sep 19, 3:40 pm)
Re: [LAU] Testing JACK and PA latency, Fons Adriaensen, (Thu Sep 19, 12:31 pm)
Re: [LAU] Testing JACK and PA latency, Patrick Shirkey, (Thu Sep 19, 12:35 pm)
Re: [LAU] Testing JACK and PA latency, Patrick Shirkey, (Thu Sep 19, 10:26 am)
Re: [LAU] Testing JACK and PA latency, Hartmut Noack, (Thu Sep 19, 9:20 am)
Re: [LAU] Testing JACK and PA latency, Patrick Shirkey, (Thu Sep 19, 9:39 am)
Re: [LAU] Testing JACK and PA latency, Len Ovens, (Thu Sep 19, 1:49 pm)
Re: [LAU] Testing JACK and PA latency, Patrick Shirkey, (Thu Sep 19, 2:04 pm)