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
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