Re: Ingo Molnar and Con Kolivas 2.6 scheduler patches
Posted Jul 31, 2003 12:50 UTC (Thu) by
beejaybee (guest, #1581)
Parent article:
Re: Ingo Molnar and Con Kolivas 2.6 scheduler patches
Yes, Daniel is so obviously right. Same applies to multimedia playback.
The problem here is that some morons will undoubtedly use any scheduling hooks intended for genuine real-time applications where there is no need to do so, except to improve the benchmark performance of their product. Result, when everyone uses real-time scheduling, audio is _still_ broken.
To make this work properly you need a double constraint: as well as guaranteeing maximum latency, you need a guarantee that real-time processes cannot totally exclude interactive processes. This implies two things: (a) every so often, interactive processes which are not expiring their timeslice should be boosted temporarily so that they get one timeslice at real-time priority to guarantee them access to the CPU; (b) timeslice should be dependent on priority, with longer timeslices for compute-bound processes (which will usually be pre-empted by interactive or real-time process events) and very short timeslices for real-time processes (so that the task switching mechanism overheads discourage overuse of real-time priority).
(
Log in to post comments)