The BEST Desktop Soft Real-Time Scheduler

It is important that desktop CPU schedulers support soft-real time processing now that multimedia applications have become ubiquitous on desktop computers. They must also gracefully handle mixes of applications with different timing requirements. The best-effort scheduling provided by desktop systems is easy to use, provides a reasonable trade-off between fairness and responsiveness, and imposes no extra overhead for specifying application resource needs. However, these schedulers provide no resource or timeliness guarantees, limiting their ability to support applications with deadlines [10]. To better support soft real-time applications, while recognizing that the best-effort model permeates desktop computing for very good reasons, we are developing the Best-effort scheduler Enhanced for Soft real-time Time-sharing (BEST). BEST transparently provides significantly improved support for periodic soft real-time (SRT) processes while retaining the well-behaved default characteristics of best-effort schedulers. By observing the times at which processes enter the ready queue, BEST dynamically estimates a period for each process exhibiting periodic behavior, assigns appropriate pseudo-periods for non-periodic processes, and schedules all processes using earliest deadline first (EDF) [7]. This boosts the performance of periodic processes while preserving the behavior of traditional best-effort schedulers for non-periodic processes. The result is a multi-class best-effort scheduler that handles CPU-intensive, I/O-intensive, and periodic SRT processes using a single scheduling algorithm. Our preliminary results demonstrate that without any a priori knowledge of the SRT applications, BEST outperforms the Linux scheduler in handling SRT processes, outperforms real-time schedulers in handling best-effort processes, and sometimes outperforms both. Section 2 discusses the design and implementation of BEST, Section 3 presents our preliminary results, and Section 4 presents some concluding remarks.