All of lore.kernel.org
 help / color / mirror / Atom feed
* [2.6.19] Scheduler starvation of audio?
@ 2006-12-29 16:25 Shawn Starr
  2007-01-02 22:07 ` Lee Revell
  0 siblings, 1 reply; 2+ messages in thread
From: Shawn Starr @ 2006-12-29 16:25 UTC (permalink / raw)
  To: linux-kernel

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?

Thanks,

--
Shawn Starr
Software Developer, Open Source Grid Development Center (OSGDC)
Platform Computing
3760 14th Avenue
Markham, ON L3R3T7
direct: 905.948.4229
http://www.platform.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [2.6.19] Scheduler starvation of audio?
  2006-12-29 16:25 [2.6.19] Scheduler starvation of audio? Shawn Starr
@ 2007-01-02 22:07 ` Lee Revell
  0 siblings, 0 replies; 2+ messages in thread
From: Lee Revell @ 2007-01-02 22:07 UTC (permalink / raw)
  To: Shawn Starr; +Cc: linux-kernel

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-02 22:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-29 16:25 [2.6.19] Scheduler starvation of audio? Shawn Starr
2007-01-02 22:07 ` Lee Revell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.