[linux-audio-dev] Pragmatic comparison of approaches to audio engine

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-dev] Pragmatic comparison of approaches to audio engine
From: Abramo Bagnara (abramo_AT_alsa-project.org)
Date: Mon May 14 2001 - 01:34:19 EEST


Ok, I've finished a new version of ctx.c that complete the picture
adding multi process approach.

Results are *very* interesting.

I suggest you to use in this way:

ctx 4 1000 2 $(fgrep -i MHz /proc/cpuinfo | cut -d: -f 2)

First argument is number of workers
Second is number of periods
Third is approach type (0 single thread, 1 multi thread, 2 multi
process)
Fourth is CPU speed in Mhz

My results follow (8 workers, 1000 periods, 64 frames period, rate
48000):

AMD k6 II 333 Mhz:
------------------

Single thread:
Cycles per period: 113575.818000
%CPU usage: 25.571078
NOTE: this is the reference value

Multi thread:
Cycles per period: 174540.545000
%CPU usage: 39.297008
NOTE: then the approach cost +1.72% CPU for each worker

Multi process:
Cycles per period: 188811.795000
%CPU usage: 42.510115
NOTE: then the approach cost +2.12% CPU for each worker

Pentium III 800 Mhz:
--------------------

Single thread:
Cycles per period: 40243.681000
%CPU usage: 3.782325
NOTE: this is the reference value

Multi thread:
Cycles per period: 62570.693000
%CPU usage: 5.880741
NOTE: then the approach cost +0.26% CPU for each worker

Multi process:
Cycles per period: 66458.674000
%CPU usage: 6.246155
NOTE: then the approach cost +0.31% CPU for each worker

-- 
Abramo Bagnara                       mailto:abramo_AT_alsa-project.org

Opera Unica Phone: +39.546.656023 Via Emilia Interna, 140 48014 Castel Bolognese (RA) - Italy

ALSA project http://www.alsa-project.org It sounds good!


ctx.c


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Mon May 14 2001 - 01:56:14 EEST