Computer Science Deadline Fair Scheduling: Bridging the Theory and Practice of Proportionate-Fair Scheduling in Multiprocessor Servers Abhishek Chandra.

Slides:



Advertisements
Similar presentations
Real-Time Competitive Environments: Truthful Mechanisms for Allocating a Single Processor to Sporadic Tasks Anwar Mohammadi, Nathan Fisher, and Daniel.
Advertisements

© 2004 Wayne Wolf Topics Task-level partitioning. Hardware/software partitioning.  Bus-based systems.
Application Performance in the QLinux Multimedia Operating System Jun Wang Jun Wang.
CPU Scheduling Tanenbaum Ch 2.4 Silberchatz and Galvin Ch 5.
Abhay.K.Parekh and Robert G.Gallager Laboratory for Information and Decision Systems Massachusetts Institute of Technology IEEE INFOCOM 1992.
RUN: Optimal Multiprocessor Real-Time Scheduling via Reduction to Uniprocessor Paul Regnier † George Lima † Ernesto Massa † Greg Levin ‡ Scott Brandt ‡
Real-Time Scheduling CIS700 Insup Lee October 3, 2005 CIS 700.
Cs238 CPU Scheduling Dr. Alan R. Davis.
Operating Systems 1 K. Salah Module 2.1: CPU Scheduling Scheduling Types Scheduling Criteria Scheduling Algorithms Performance Evaluation.
1 Virtual Private Caches ISCA’07 Kyle J. Nesbit, James Laudon, James E. Smith Presenter: Yan Li.
CS 268: Lecture 15/16 (Packet Scheduling) Ion Stoica April 8/10, 2002.
Preemptive Behavior Analysis and Improvement of Priority Scheduling Algorithms Xiaoying Wang Northeastern University China.
Project 2 – solution code
26 April A Compositional Framework for Real-Time Guarantees Insik Shin and Insup Lee Real-time Systems Group Systems Design Research Lab Dept. of.
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.
Surplus Fair Scheduling Ricardo A. Baratto COMS E6118 – Spring 2004.
U NIVERSITY OF M ASSACHUSETTS, A MHERST – Department of Computer Science Quantifying the Benefits of Resource Multiplexing in On-Demand Data Centers Abhishek.
Computer Science Scalability of Linux Event-Dispatch Mechanisms Abhishek Chandra University of Massachusetts Amherst David Mosberger Hewlett Packard Labs.
Cs238 CPU Scheduling Dr. Alan R. Davis. CPU Scheduling The objective of multiprogramming is to have some process running at all times, to maximize CPU.
U NIVERSITY OF M ASSACHUSETTS, A MHERST – Department of Computer Science Dynamic Resource Allocation for Shared Data Centers Using Online Measurements.
Operating Systems Operating System Support for Multimedia.
Spring 2002Real-Time Systems (Shin) Rate Monotonic Analysis Assumptions – A1. No nonpreemptible parts in a task, and negligible preemption cost –
Bandwidth Allocation in a Self-Managing Multimedia File Server Vijay Sundaram and Prashant Shenoy Department of Computer Science University of Massachusetts.
Computer Science Surplus Fair Scheduling: A Proportional-Share Scheduling Algorithm for Symmetric Multiprocessors Abhishek Chandra Micah Adler Pawan Goyal.
1 Proportional differentiations provisioning Packet Scheduling & Buffer Management Yang Chen LANDER CSE Department SUNY at Buffalo.
Packet Scheduling From Ion Stoica. 2 Packet Scheduling  Decide when and what packet to send on output link -Usually implemented at output interface 1.
New Schedulability Tests for Real- Time task sets scheduled by Deadline Monotonic on Multiprocessors Marko Bertogna, Michele Cirinei, Giuseppe Lipari Scuola.
5.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts with Java – 8 th Edition Chapter 5: CPU Scheduling.
CPU Scheduling - Multicore. Reading Silberschatz et al: Chapter 5.5.
Fair Scheduling of Real-Time Tasks on Multiprocessors Uday Prabhala.
Jim Anderson 1 Multiprocessor Fair Scheduling The Case for Multiprocessor Fair Scheduling James H. Anderson University of North Carolina at Chapel Hill.
Computer Architecture and Operating Systems CS 3230: Operating System Section Lecture OS-3 CPU Scheduling Department of Computer Science and Software Engineering.
Thanks to Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction n What is an Operating System? n Mainframe Systems.
ICS Principles of Operating Systems Lecture 5 - CPU Scheduling Prof. Nalini Venkatasubramanian
Scheduling policies for real- time embedded systems.
Real-Time Systems Mark Stanovich. Introduction System with timing constraints (e.g., deadlines) What makes a real-time system different? – Meeting timing.
1 Scheduling The part of the OS that makes the choice of which process to run next is called the scheduler and the algorithm it uses is called the scheduling.
1 Our focus  scheduling a single CPU among all the processes in the system  Key Criteria: Maximize CPU utilization Maximize throughput Minimize waiting.
1 Process Scheduling in Multiprocessor and Multithreaded Systems Matt Davis CS5354/7/2003.
Computer Science 1 Resource Overbooking and Application Profiling in Shared Hosting Platforms Bhuvan Urgaonkar Prashant Shenoy Timothy Roscoe † UMASS Amherst.
Virtual-Time Round-Robin: An O(1) Proportional Share Scheduler By Jason Nieh, etc Xiaojun Wang 10/07/2005.
March 29 Scheduling ?. What is Packet Scheduling? Decide when and what packet to send on output link 1 2 Scheduler flow 1 flow 2 flow n Buffer management.
ECE 720T5 Fall 2012 Cyber-Physical Systems Rodolfo Pellizzoni.
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.
Cpr E 308 Spring 2005 Process Scheduling Basic Question: Which process goes next? Personal Computers –Few processes, interactive, low response time Batch.
End-To-End Scheduling Angelo Corsaro & Venkita Subramonian Department of Computer Science Washington University Distributed Systems Seminar, Spring 2003.
Computer Science & Engineering, ASU1/17 Pfair Scheduling of Periodic Tasks with Allocation Constraints on Multiple Processors Deming Liu and Yann-Hang.
Real-Time Scheduling II: Compositional Scheduling Framework Insik Shin Dept. of Computer Science KAIST.
6.1 CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation.
Martin Kruliš by Martin Kruliš (v1.1)1.
NUS.SOC.CS5248 Ooi Wei Tsang 1 Course Matters. NUS.SOC.CS5248 Ooi Wei Tsang 2 Make-Up Lecture This Saturday, 23 October TR7, 1-3pm Topic: “CPU scheduling”
CS4315A. Berrached:CMS:UHD1 Introduction to Operating Systems Chapter 1.
1.  System Characteristics  Features of Real-Time Systems  Implementing Real-Time Operating Systems  Real-Time CPU Scheduling  An Example: VxWorks5.x.
1 CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling.
Scheduling for QoS Management. Engineering Internet QoS2 Outline  What is Queue Management and Scheduling?  Goals of scheduling  Fairness (Conservation.
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 32 – Multimedia OS Klara Nahrstedt Spring 2010.
Studying and Implementing Multi-processor based Real-time Scheduling Algorithms in Linux Musfiq Niaz Rahman
Basic Concepts Maximum CPU utilization obtained with multiprogramming
Scheduling.
Dynamic Resource Allocation for Shared Data Centers Using Online Measurements By- Abhishek Chandra, Weibo Gong and Prashant Shenoy.
Improved Conditions for Bounded Tardiness under EPDF Fair Multiprocessor Scheduling UmaMaheswari Devi and Jim Anderson University of North Carolina at.
04/02/08 1 Packet Scheduling IT610 Prof. A. Sahoo KReSIT.
Copyright ©: Nahrstedt, Angrave, Abdelzaher
Copyright ©: Nahrstedt, Angrave, Abdelzaher
Chapter 2 Scheduling.
Jason Neih and Monica.S.Lam
Chapter 6: CPU Scheduling
Uniprocessor scheduling
Anand Srinivasan Department of Computer Science
کنترل جریان امیدرضا معروضی.
Presentation transcript:

Computer Science Deadline Fair Scheduling: Bridging the Theory and Practice of Proportionate-Fair Scheduling in Multiprocessor Servers Abhishek Chandra Micah Adler Prashant Shenoy University of Massachusetts Amherst, USA

Computer Science Motivation  Applications hosted on Commodity (OTS) OS’s  Key Challenge: Design OS mechanisms for predictable Resource Management  Diverse multimedia applications popular  Streaming, games, etc.  Applications require delay/bandwidth guarantees Server Streaming Virtual Worlds Games

Computer Science Requirements for OS Resource Management  Fair, Proportionate Allocation Divide resource among applications based on requirement  Predictable Execution Provide soft real-time guarantees (delay, response, etc.)  Application Isolation Overloaded application should not affect others  Efficiency Utilize system resources, low overhead Focus: Achieving these objectives for CPU scheduling on multiprocessor machines

Computer Science Outline Motivation  Proportionate-Fairness  Deadline Fair Scheduling  Behavior in Commodity OS  Practical Enhancements  Experimental Evaluation  Concluding Remarks

Computer Science Upper bound Lower bound Proportionate-Fairness [Baruah et al.96]  Periodic Task needs e units of service every p units  Ideal service in duration t,  P-fairness: Ideal time CPU Service e=1, p=2 P-fair

Computer Science Deadline Fair Scheduling  Eligibility: Task not allowed to run more than its due  Deadlines: Task finishes each run on time Ideal time CPU Service DeadlineEligible Ineligible DeadlineEligible DFS e=1, p=2

Computer Science Deadline Fair Scheduling: Relative Allocation  Weight: For relative shares in a k-CPU system  Start tag: Service received by a task so far  Virtual time: Average service of all tasks in the system

Computer Science Deadline Fair Scheduling: Online Schedule  Eligibility criteria:  Comparison of start tag and virtual time  Deadlines:  In order of start tags

Computer Science Deadline Fair Scheduling: Proportionate Allocation time CPU Service 1 CPU, 3 Tasks with weights 2, 1, 1 Task 1 Task 2 Task 3 Task 1 (w1=2 => e=1, p=2) Task 2 (wt=1 => e=1, p=4) Task 3 (wt=1 => e=1, p=4) ED ED ED I I DE I E : Eligible I : Ineligible D : Deadline E E E

Computer Science Properties of DFS  System Model:  Multiprocessor system with k symmetric CPUs  A fixed set of n tasks  No arrivals and departures  All CPUs are synchronized  Lemma 1: DFS generates P-fair schedule  Lemma 2: DFS is work-conserving (no CPU is idle if runnable tasks in the system)

Computer Science Outline Motivation Proportionate-Fairness Deadline Fair Scheduling  Behavior in Commodity OS  Practical Enhancements  Experimental Evaluation  Concluding Remarks

Computer Science Issues in Commodity OS  Quantum durations are not fixed length  Due to blocking/pre-emption  CPUs are not synchronized:  Quanta on various CPUs are out of phase  Each CPU calls scheduler independently  Tasks can arrive and depart Question: How does this affect the work-conserving behavior of DFS?

Computer Science Non-Work Conserving Behavior  DFS becomes non-work conserving

Computer Science Enhancement 1: Fair Airport Scheduling [Goyal et al.97]  Goal: Utilize available bandwidth if runnable tasks Guaranteed Service Queue Rate Controller Eligible Queue Auxiliary Service QueueIneligible Queue DFS Ordered by deadlines Eligibility Criteria

Computer Science Enhancement 2: Incorporating Processor Affinities  Problem: How to utilize processor caches?  Solution: Give priority to tasks with affinity  New deadline D:  If task has affinity: D = d  If task has no affinity: D = d + α Here, d is the deadline of task, α is the affinity weight  Tasks scheduled in order of D  Trades fairness for performance

Computer Science Outline Motivation Proportionate-Fairness Deadline Fair Scheduling Behavior in Commodity OS Practical Enhancements  Experimental Evaluation  Concluding Remarks

Computer Science Proportionate Allocation and Application Isolation

Computer Science Performance of Real-Time and Multimedia Applications

Computer Science Related Work  P-fairness [Baruah96]:  PF Algorithm [Baruah-Gehrke96], Pfair Priorities [Anderson99]  Deadline-based scheduler [West99]  Generalized Processor Scheduling [Parekh92]  WFQ [Demers89], SFQ [Goyal96], BVT [Duda99]  Multiprocessor Scheduling:  Spring [Ramamritham84]  CPU Reservations [Jones99], SFS [Chandra00]

Computer Science Summary  P-fairness notion of proportionate scheduling  DFS can provide p-fairness in ideal system model  Two practical enhancements:  Fair Airport Scheduling  Incorporating processor affinities  Source code available at: