Re: [LAU] Testing JACK and PA latency

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-user@...>
Date: Thursday, September 19, 2013 - 3:40 pm

Here's some basic results for those who might be interested in this process.

----------
SETUP
----------

Using this graph:

jack_delay (out) -> pa_source -> ecasound -> pa_sink ->
system:playback -> analog cable -> system_capture -> jack_delay (in)

Running ecasound with this chain setup:

ecasound -f:32,2,48000 -b:64 -i alsa -o alsa

JACK is running with 48k/64/2 in realtime mode.

Gkrellm is running for quick reference to CPU load.

Dual core Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz with 4GB DDR2 667.0 MHz
/ PC2-5300.

Kernel 3.2.0-3-amd64

cat /proc/asound/cards
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xd2000000 irq 46

Granted this is not a modern PC system or even a professional grade sound
card but it is similar to modern mobile hardware which is my target
platform.

I see the following results:

With just jack, PA , jack_iodelay running I see CPU pegged at around 30%
on both cores.

With ecasound running but without connecting jack_iodelay to pulse_source
(in), I see CPU Load pegged at between 32% to 55%.

With jack_iodelay connected to pulse_source (in), I see CPU load hovering
around 40% to 65% and generally on the higher side.

----------
RESULTS
----------

- With a clean start from boot and no previous audio apps running at
initialisation of the connection between jack_delay and pa_source

23ms latency

After a second or two things start to go funny. The latency jumps up to
800 ms and then down to 140 ms up again to 480 ms down to 350 ms up to
1067 ms down to 670 ms... In other words it's all over the place.

Granted this is on a consumer grade audio device but a lot of mobile
devices have similar if not exactly the same chipset/driver.

I would like to trace the bottle neck but without running the whole graph
it might not be possible.

Maybe an app that incrementally adds to the signal tone and timestamps
against the summed frequency could be used to trace the location of the
bottle neck?

Suggestions for other things that could be done to minimise the erratic
behaviour are also welcome. Maybe I am missing a crucial tweak to PA for
example?

--
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)