In computing and communication systems, a work-conserving scheduler is a scheduler that always tries to keep the scheduled resource(s) busy, if there are submitted jobs ready to be scheduled. In contrast, a non-work conserving scheduler is a scheduler that, in some cases, may leave the scheduled resource(s) idle despite the presence of jobs ready to be scheduled.
For example, when dealing with networking and packet scheduling, a work-conserving scheduler[1] [2] leaves the channel idle only when there are no packets to transmit. In contrast, a non-work conserving scheduler might leave the channel idle with packets still pending transmission.
Similarly, when referring to CPU scheduling, i.e. threads or processes scheduled over one or more available processors or cores, a work-conserving scheduler[3] ensures that processors/cores are not idle if there are processes/threads ready for execution.
Work-conserving schedulers are also notable for obeying Kleinrock's Conservation Law.[4] [5]
In the context where we have
N
λn
N | |
\sum\limits | |
n=1 |
\rhonqn=C
\rhon=
λn | |
\mun |
λn
n
\mun
n
\rhon
qn
n
C
\rhonqn=
λnqn | |
\mun |
λnqn
n
\mun
(Some sources use
\mun
\rhon=λn\mun
\mun
Non-work conserving schedulers are sometimes useful to enhance predictability and reduce termination jitter for the activities carried out by a computing and communication system. In multi-processor systems they're useful to enhance performance in some scenarios.[6] [7] Sometimes, a non-work conserving scheduler may be useful to enhance stability of a system; For example, a process scheduler may choose to keep processes off of the run queue if there were concern that the sum of the working sets of all of the runnable processes would exceed available memory and lead to non-linear page thrashing overhead. Limiting the run queue in this manner might lead to under-utilization of available processors (and hence be non-work conserving) with the goal of avoiding situations where the system is unusable due to thrashing.