Re: [LAU] rtirq - what does it improve, and how can I measure it?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Kaj Ailomaa <ailomaa@...>
Cc: LAU <Linux-audio-user@...>
Date: Monday, May 7, 2012 - 12:55 pm

Hi Kaj,

On 05/07/2012 02:06 PM, Kaj Ailomaa wrote:

It is designed to prioritize tasklet threads (here: the bottom half of
any IRQ handler). By default rtirq increases the priority of timer and
audio-device irq-handlers, but it can be configured to do favor any device.

> which is made possible on the vanilla kernel since 2.6.39(?),

yes. 2.6.39.

> if passing the threadirqs option to the kernel at boot, and having built

Correct for vanilla Linux.

With linux >= 3.0 and the preemt-RT patch, you don't need the
'threadirq' option with CONFIG_FORCE_THREADIRQ=y:

http://anonscm.debian.org/viewvc/kernel/dists/trunk/linux-2.6/debian/pat...

> From my experience, I have not had any performance boost using the rtirq

There won't be any performance boost. In general performance decreases
(minimum and average latency increases) but reliability increases (max
latency decreases).

> So, I'm wondering. What picture do others have of the benefit of the

Rui's rtirq script is great: a simple tool to tune your system for
reliable audio work.

> ..and are there other ways to measure improvement for audio operation

Not really. The overall complexity of the system is vast. unit-testing
is not really an option for sound.

Put some load your system and do some usual [audio] work, keep the
system running for a few hours/days and see if there are still no x-runs..

> and reading the

That's only helpful to debug the rtirq script or its config. It does not
measure anything.

There's kernel tracers but most of these will interfere with the
measurement. There's also the rt-test-suite:
https://github.com/clrkwllms/rt-tests

cyclictest -t1 -p 80 -n -i 1000 -l 10000 -m

will benchmark min, max and avg latency of your system, although you
should probably run it longer than 10000 iterations (here 10sec: 10000
iterations * 1000 us). It that does not directly relate to IRQ priority.

HTH,
robin
_______________________________________________
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:
Re: [LAU] rtirq - what does it improve, and how can I measur..., Robin Gareus, (Mon May 7, 12:55 pm)