Analysis of SRPT Scheduling: Investigating Unfairness Nikhil Bansal (Joint work with Mor Harchol-Balter)

Slides:



Advertisements
Similar presentations
Scheduling Criteria CPU utilization – keep the CPU as busy as possible (from 0% to 100%) Throughput – # of processes that complete their execution per.
Advertisements

Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 17 Scheduling III.
1 Size-Based Scheduling Policies with Inaccurate Scheduling Information Dong Lu *, Huanyuan Sheng +, Peter A. Dinda * * Prescience Lab, Dept. of Computer.
Chapter 5 CPU Scheduling. CPU Scheduling Topics: Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling.
Yousi Zheng Dept. of ECE, The Ohio State University
Simulation Evaluation of Hybrid SRPT Policies
Web Server Request Scheduling Mingwei Gong Department of Computer Science University of Calgary November 16, 2004.
Maryam Elahi Fairness in Speed Scaling Design Joint work with: Carey Williamson and Philipp Woelfel.
1 Mor Harchol-Balter Carnegie Mellon University School of Computer Science.
1 Mor Harchol-Balter Carnegie Mellon University School of Computer Science.
Chapter 6: CPU Scheduling. 5.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Feb 2, 2005 Chapter 6: CPU Scheduling Basic.
Effects and Implications of File Size/Service Time Correlation on Web Server Scheduling Policies Dong Lu* + Peter Dinda* Yi Qiao* Huanyuan Sheng* *Northwestern.
Looking at the Server-side of P2P Systems Yi Qiao, Dong Lu, Fabian E. Bustamante and Peter A. Dinda Department of Computer Science Northwestern University.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 6: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms.
1 Connection Scheduling in Web Servers Mor Harchol-Balter School of Computer Science Carnegie Mellon
What we will cover…  CPU Scheduling  Basic Concepts  Scheduling Criteria  Scheduling Algorithms  Evaluations 1-1 Lecture 4.
Join-the-Shortest-Queue (JSQ) Routing in Web Server Farms
Chapter 5-CPU Scheduling
Carnegie Mellon University Computer Science Department 1 CLASSIFYING SCHEDULING POLICIES WITH RESPECT TO HIGHER MOMENTS OF CONDITIONAL RESPONSE TIME Adam.
Job scheduling Queue discipline.
A. Frank - P. Weisberg Operating Systems CPU Scheduling.
U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts, Amherst Operating Systems CMPSCI 377 Lecture.
1 Mor Harchol-Balter Carnegie Mellon University Joint work with Bianca Schroeder.
1 Scheduling Algorithms FCFS First-Come, First-Served Round-robin SJF Multilevel Feedback Queues.
RAQFM – a Resource Allocation Queueing Fairness Measure David Raz School of Computer Science, Tel Aviv University Jointly with Hanoch Levy, Tel Aviv University.
Chapter 5: CPU Scheduling. 5.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Feb 2, 2005 Basic Concepts Maximum CPU utilization.
Computer Architecture and Operating Systems CS 3230: Operating System Section Lecture OS-3 CPU Scheduling Department of Computer Science and Software Engineering.
1 Mor Harchol-Balter Computer Science Dept, CMU What Analytical Performance Modeling Teaches Us About Computer Systems Design.
1 Mor Harchol-Balter Carnegie Mellon University Computer Science Heavy Tails: Performance Models & Scheduling Disciplines.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 6: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms.
1 Server Scheduling in the L p norm Nikhil Bansal (CMU) Kirk Pruhs (Univ. of Pittsburgh)
CS 3150 Presentation 1 Ihsan Ayyub Qazi “Achievable sojourn times in M/M/1 and GI/GI/1 systems: A Comparison between SRPT and Blind Policies” A(t), Q(t)Q(t)
Aalto_inria2.pptINRIA Sophia Antipolis, France, On the Gittins index in the M/G/1 queue Samuli Aalto (TKK) in cooperation with Urtzi Ayesta.
Silberschatz and Galvin  Operating System Concepts Module 5: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor.
1 The Effect of Heavy-Tailed Job Size Distributions on System Design Mor Harchol-Balter MIT Laboratory for Computer Science.
Lecture 7: Scheduling preemptive/non-preemptive scheduler CPU bursts
1 11/29/2015 Chapter 6: CPU Scheduling l Basic Concepts l Scheduling Criteria l Scheduling Algorithms l Multiple-Processor Scheduling l Real-Time Scheduling.
Chapter 5: CPU Scheduling. 5.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Feb 2, 2005 Chapter 5: CPU Scheduling Basic.
Lecture Topics: 11/15 CPU scheduling: –Scheduling goals and algorithms.
1 Task Assignment with Unknown Duration Mor Harchol-Balter Carnegie Mellon.
1 Mor Harchol-Balter Carnegie Mellon with Nikhil Bansal with Bianca Schroeder with Mukesh Agrawal.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
CPU Scheduling Operating Systems CS 550. Last Time Deadlock Detection and Recovery Methods to handle deadlock – Ignore it! – Detect and Recover – Avoidance.
First In First Out SJF is a scheduling policy that selects a waiting process with the smallest execution time to execute next. Shortest Job First Shortest.
CPU Scheduling CS Introduction to Operating Systems.
Basic Concepts Maximum CPU utilization obtained with multiprogramming
Lecture 5 Scheduling. Today CPSC Tyson Kendon Updates Assignment 1 Assignment 2 Concept Review Scheduling Processes Concepts Algorithms.
CPU Scheduling Algorithms CSSE 332 Operating Systems Rose-Hulman Institute of Technology.
1 Ch 12 M/G/1 Priority Queues Hong-Shik Park KAIST Tel) )
Load Balancing and Data centers
Serve Assignment Policies
Urtzi Ayesta (LAAS-CNRS)
CPU Scheduling Algorithms
Scheduling Preemptive Policies
Scheduling Non-Preemptive Policies
Scheduling Preemptive Policies
Chapter 6: CPU Scheduling
CPU Scheduling G.Anuradha
Module 5: CPU Scheduling
Chapter 6: CPU Scheduling
SRPT Applied to Bandwidth Sharing Networks
Process Scheduling B.Ramamurthy 4/11/2019.
Process Scheduling B.Ramamurthy 4/7/2019.
Uniprocessor scheduling
Size-Based Scheduling Policies with Inaccurate Scheduling Information
Chapter 6: CPU Scheduling
Module 5: CPU Scheduling
Chapter 6: CPU Scheduling
Mean Delay Analysis of Multi Level Processor Sharing Disciplines
Module 5: CPU Scheduling
Presentation transcript:

Analysis of SRPT Scheduling: Investigating Unfairness Nikhil Bansal (Joint work with Mor Harchol-Balter)

Aim: “Good” Scheduling Policy Low Response times Fair Motivation Problem Server Client1 Client2 Client3

Time Sharing (PS) Server shared equally between all the jobs:  Low response times  Fair  Does not require knowledge of sizes Can we do better ?

Shortest Remaining Proc. Time Optimal for minimizing mean response times.  Knowledge of sizes  Improvements significant ?  Starvation of large jobs Biggest fear Objections:

Questions  Smalls better Bigs worse  How do means compare  Elephant-mice property and implications

M/G/1 Queue Framework ArrivalsqueueServer Load( ) = (arrival rate).E[S] Poisson Arrival Process with rate Job sizes (S) iid general distribution F

Queueing Formulas for PS E[T(x)]: Expected Response time for job of size x [Kleinrock 71] Identical for all!

M/G/1 SRPT        x x SRPT t dt x xFx tft xTE ))(1( (1(2 )))(1()(( )]([   Waiting Time (E[W(x)])Residence Time (E[R(x)])  Load up to x  Variance up to x  Gains priority after it begins execution 

All-Can-Win under srpt put c Thm: Every job prefers SRPT, when load <= ½, for all job size distributions. Proof: Know that If Key Observation Holds for all x, if load <= 0.5

What if load > 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, >99% of jobs better under SRPT In fact, significantly better, Under SRPT, Bounded by 4 Arbitrarily high

The very largest jobs  If load <= 0.5, all jobs favor SRPT.  At any load, > 99% jobs favor SRPT, if HT property. Moreover significant improvements. What about the remaining 1% largest jobs?

1. Bounding the damage theorem 2. As Implication: Mean slowdown of largest 1% under SRPT: Same as PS Fill in…

Insert 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.

Other Scheduling Policies  Non-preemptive: i.First Come First Serve (FCFS) ii.Random iii.Last Come First Serve (LCFS) iv.Shortest Job First (SJF)  Preemptive: i.Foreground Background (FB) ii.Preemptive LCFS Same as PS Trivially worse Very bad mean Performance, for HT workloads

Overload Add some lines for why good + we do work on this in paper

Actual Implementation Add a plot or couple of lines

Conclusions Significant mean performance improvements. Big jobs prefer SRPT under low-moderate loads. Big jobs prefer SRPT even under high loads for heavy-tailed distributions.

Scratch

Under h-t distributions Load = 0.9 Heavy-tailed distribution with alpha=1.1 Job PercentileSRPTPS 90% % % % % Very largest job

Under light-tailed distributions Job PercentileSRPTPS 90% % % % Load=0.9 Exponential distribution