lkml.org 
[lkml]   [1997]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Interesting multitasking bug.
From
Date
aidas@ixsrs4.ix.netcom.com writes:

> I use Timidity, which is a program that takes a MIDI file, mixes samples
> in software, and then sends an audio stream to the sound card. It eats
> around 50% CPU on some files, and is very sensitive to losing its time
> slice.
>
> Anyway, something I've noticed in later kernels, particularly 2.1.22. If I
> load up the curses version of ncftp and "ls -l" a large directory on an
> FTP site, Timidity apparently loses its time slice and the music skips
> during the text scroll.
>
> Keep in mind that I run timidity with a -20 priority. Some other
> applications, such as Tiny Fugue, do this too.
>
> Any idea what causes this? This is a P133, PCI video, 32MB RAM.

Make timidity a real time process (SCHED_RR) with sched_setscheduler().

-Andi

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.030 / U:0.772 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site