Messages in this thread | | | Date | Wed, 25 Jun 2003 21:00:26 +0200 | From | Mike Galbraith <> | Subject | Re: patch O1int for 2.5.73 - interactivity work |
| |
At 02:09 AM 6/26/2003 +1000, Con Kolivas wrote:
>I'm still working on something for the "xmms stalls if started during very >heavy load" as a different corner case.
One way to deal with that problem would be to create a very high priority queue which is reserved for very light weight tasks, and heavily protected against them going cpu hungry. If a forking task has a run history worthy of trial, slip it straight into the high priority queue... and be prepared to beat it into submission should it misbehave (short term run_avg ever exceeds X, you're outta here buddy, and if this queue is consuming more than Y, sorry, we're closed).
Another way would be to factor task age into the priority calculation, with age becoming rapidly less important. Xmms' audio threads are light weight, and will quickly be able to sustain their priority. Others would (hopefully) rapidly fall down where they belong.
Just a couple random thoughts, both of which I can see problems with ;-)
-Mike
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |