[linux-audio-dev] NPTL and real-time sched semantics

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

Subject: [linux-audio-dev] NPTL and real-time sched semantics
From: Kai Vehmanen (kai.vehmanen_AT_wakkanet.fi)
Date: Thu May 29 2003 - 22:09:21 EEST


Has anyone done any low-latency audio testing with the new native pthread
implementation (comes with rh9.0 at least)...?

I was just reading through [1] and noticed the following (in section 8):

""Realtime support is mostly missing from the library implementation. The
system calls to select scheduling parameters are available but they have
no effects. The reason for this is that large parts of the kernel do not
follow the rules for realtime scheduling. Waking one of the threads
waiting for a futex is not done by looking at the priorities of the
waiters.""

If I've understood right, SCHED_FIFO semantics do not have any meaning
between threads of one process if NPTL is used! Hopefully this is right,
as it would cause quite a lot of problems (GUIs and disk i/o threads can
freely block audio processing even though using SCHED_FIFO). :(

[1] http://people.redhat.com/drepper/nptl-design.pdf

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


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

This archive was generated by hypermail 2b28 : Thu May 29 2003 - 22:21:47 EEST