Messages in this thread | | | Subject | Re: [RFC][PATCH] Multimedia scheduling class | From | Peter Zijlstra <> | Date | Tue, 30 Dec 2008 08:42:05 +0100 |
| |
On Mon, 2008-12-29 at 20:40 +0200, Jussi Laako wrote: > Hi, > > I have created an experimental multimedia scheduling class (SCHED_MM) > for use with multithreaded non-hardcore-realtime multimedia > applications, such as ones based on gstreamer. These typically don't > follow the determinism rules of well behaved SCHED_FIFO applications. > However, these usually handle tasks like VoIP call audio processing, > where somewhat lower scheduling latency is needed to obtain good user > experience. Usually these are not very CPU-heavy and are mostly IO-bound > processes. Thus, something between normal SCHED_OTHER and SCHED_FIFO is > needed in a way where different threads of execution can set different > kinds of scheduling parameters. > > I have attached an initial version of my experimental patch for comments...
Sorry, I don't think this is a viable solution for anything.
This is typically the domain of soft-realtime, and as such would need a realtime scheduling class -- using a proportional class like you did just doesn't make sense for these tasks.
Eventually we'd hope to provide an sporadic task EDF based scheduler with hard and soft realtime capabilities, but until that time, FIFO and RR are the classes to use for anything realtime.
I'm not sure why you think SCHED_FIFO isn't good enough for your applications, could you elaborate on that?
| |