Re: [2.6.19] Scheduler starvation of audio?

From: Lee Revell
Date: Tue Jan 02 2007 - 17:06:30 EST


On Fri, 2006-12-29 at 11:25 -0500, Shawn Starr wrote:
> Hello,
>
> If any of you have used a Commodore 64 emulator in Linux (such as vice) noticed when using audio there is severe starvation while other activities of the system are going on. i.e. moving a window in X or starting another application causing audio to chop (this goes away if you speed up the emulation to 200% then drop it back down to 100% The audio will resume chopping once you perform more activity on the desktop). Note, even increasing the audio buffer of the emulation app to its maximum does not help. Of note, the machine I ran this emulator on had a low load.
>
> There are times when I hit starvation and I wonder if there's any interesting scheduler patches in -mm that might address this?
>

Must be an application bug, otherwise more apps would be affected.

The best solution is to use a separate high priority thread for anything
with a real time constraint, like audio playback or capture.

Lee

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/