counter stats

A New Theory for Scheduling: Beyond Idealized Policies

 

People

Adam Wierman
Mor Harchol-Balter
Takayuki Osogami
Bert Zwart
Misja Nuyens

 

Motivation

Computer system designers are often guided by analytic results about scheduling policies, but designers hardly ever actually implement the idealized policies studied by theoreticians. For instance, recent designs of web servers and wireless access points have been motivated by the fact that Shortest-Remaining-Processing-Time (SRPT) optimizes mean response time. However, though the heuristic of “giving priority to small jobs” served as a guiding principle in these applications, in none of these cases was pure SRPT implemented. Instead the designers needed to adjust SRPT due to a wide variety of real-world factors such as fairness concerns and overheads in maintaining the remaining sizes of jobs. In order to develop a theory that can provide results for the policies used in practice, one cannot focus on individual scheduling policies, as is done in traditional queueing theory. Instead, our goal is to introduce a new framework for studying scheduling policies where the focus is on classifications of scheduling policies as opposed to individual policies. For example, instead of studying SRPT, classes formalizing the scheduling heuristic of “giving priority to small jobs” and the scheduling technique of “prioritizing based on remaining size” are studied. 


Figure 1.  A diagram of the scheduling classifications that we have defined and studied so far.


Results

To this point, we have introduced and analyzed a number of scheduling classifications including. Some are based on scheduling techniques, such as “remaining size based policies” and “age based policies”, while others are based on scheduling heuristics, such as “prioritizing small/large jobs”. We can prove a number of interesting results about these classes.  As an example, the SMART class was introduced in Sigmetrics 2005 and captures the heuristic of “prioritizing small jobs.” It is defined by three simple axioms that formalize the intuitive notion of prioritizing small jobs in a way that includes a wide range of policies, but still allows tight performance guarantees to be proven for the class. In particular, we have proven that all SMART policies have a mean response time within a factor of 2 of optimal. Further, we have proven that the tail of the response time distribution under SMART policies is asymptotically equivalent to that of SRPT in both the large buffer and many sources large deviations regimes. These results serve as bounds on the effect of the small tweaks made to SRPT in practice.


 Figure 2.  An illustration of the performance improvements of any SMART policy over PS.  Thus, as long as you "prioritize small jobs" you obtain big performance gains, even if you don't use pure SRPT.


Impact

Following the introduction of the SMART class, other researchers have also become interested in scheduling classifications. This led to collaborations with Bert Zwart, Misja Nuyens, and Sanjay Shakkottai on further analyses of the SMART class. In addition, other researchers have started to introduce their own scheduling classifications. For example, Friedman & Hurley, Feng, Misra, & Rubenstein, and Nunez-Queija & Kherani have all introduced interesting classifications of other scheduling techniques and heuristics.


Publications