On Wed, 27 Aug 2003, Tommi Sakari Uimonen wrote:

> Yes it doesn't sound sexy at all. But I tested arecord to perform nicely
> with 96khz 24channels 32bit data, on a ext2 filesystem (I found ext2 to be
> the best filesystem for this kind of writing). As I'm going to record max
> 12 channels, this seemed like a reasonable solution.

Try issuing "find /" and/or "dd if=/dev/zero of=/tmp/bigfile 
bs=4096 count=10000" in another console while running arecord.

Normally you don't run these kinds of processes while recording, but
similar disk i/o blocking can happen even on a relatively unloaded 
system  (cronjobs, worst-cases in disk i/o job scheduling, swapping,
etc, etc).

And this is just disk i/o scheduling. Spikes in task scheduling latency
form another set of problems. On my laptop, running a 2.4.19 - low-latency
patched - kernel I can cause upto 5 second (!) scheduling delays to normal
user processes using 'find' and 'dd'. Ecasound can fight against this by
setting its scheduling priority to realtime (the SCHED_FIFO mode); this
requires that you run it as root. The same technique is used by many other 
apps, including JACK.

Linux kernel does perform quite nicely most of the time (kernel developers
seem to like their XMMS ;)), but with recording you also need to worry
about the 0.1XX% of cases where things go wrong.

-- 
 http://www.eca.cx
 Audio software for Linux!



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to