Title: Analysis of SRPT Scheduling: Investigating Unfairness
1Analysis of SRPT SchedulingInvestigating
Unfairness
- Nikhil Bansal
- (Joint work with Mor Harchol-Balter)
2Motivation Problem
- Aim
- Good Scheduling Policy
- Low Response times
- Fair
3Time Sharing (PS)
- Server shared equally between all the jobs
- Low response times
- Fair
- Does not require knowledge of sizes
- Can we do better ?
4Shortest Remaining Proc. Time
Optimal for minimizing mean response times.
Objections
- Knowledge of sizes
- Improvements significant ?
- Starvation of large jobs
Biggest fear
5Questions
Bigs worse
- How do means compare
- Elephant-mice property and implications
6M/G/1 Queue Framework
- Poisson Arrival Process with rate
- Job sizes (S) iid general distribution F
7Queueing Formulas for PS
- ET(x) Expected Response time for job of size
x -
-
-
Kleinrock 71
Identical for all!
8M/G/1 SRPT
x
ò
-
l
2
2
x
F
x
dt
t
f
t
)))
(
1
(
)
(
(
x
dt
ò
x
T
E
0
)
(
SRPT
-
r
t
))
(
1
(
-
2
r
x
))
(
1
(
2
0
Waiting Time (EW(x))
Residence Time (ER(x))
- Load up to x
- Variance up to x
- Gains priority after it begins execution
-
9 All-Can-Win under srpt put c
- Thm Every job prefers SRPT, when load lt ½, for
all job size distributions.
Proof Know that
If
Key Observation
Holds for all x, if load lt 0.5
10What if load gt 0.5 ? problem
Still holds if
Irrespective of
The Heavy-Tailed Property (Elephant -Mice) 1
of the big jobs make up at least 50 of the load.
For a distribution with the HT property, gt99 of
jobs better under SRPT
In fact, significantly better, Under SRPT,
Bounded by 4
Arbitrarily high
11The very largest jobs
- If load lt 0.5, all jobs favor SRPT.
- At any load, gt 99 jobs favor SRPT, if HT
property. - Moreover significant improvements.
What about the remaining 1 largest jobs?
121. Bounding the damage theorem
Fill in
2.
As
Implication Mean slowdown of largest 1 under
SRPT Same as PS
13Insert plots here 1 for BP 1.1 with load 0.9
showing how all Do better 2 for exp with load
0.9 showing how some do bad.
14Other Scheduling Policies
- Non-preemptive
- First Come First Serve (FCFS)
- Random
- Last Come First Serve (LCFS)
- Shortest Job First (SJF)
Very bad mean Performance, for HT workloads
- Preemptive
- Foreground Background (FB)
- Preemptive LCFS
Trivially worse
Same as PS
15Overload
Add some lines for why good we do work on this
in paper
16Actual Implementation
Add a plot or couple of lines
17Conclusions
- Significant mean performance improvements.
- Big jobs prefer SRPT under low-moderate loads.
- Big jobs prefer SRPT even under high loads for
heavy-tailed distributions.
18Scratch
19Under h-t distributions
Job Percentile SRPT PS
90 1.28 10
99 1.62 10
99.9 2.08 10
99.99 2.69 10
100 9.54 10
- Load 0.9
- Heavy-tailed distribution with alpha1.1
Very largest job
20Under light-tailed distributions
Job Percentile SRPT PS
90 3.17 10
95 4.93 10
99 11.14 10
99.9 16.01 10
Load0.9 Exponential distribution