Surplus Fair Scheduling Ricardo A. Baratto COMS E6118 – Spring 2004.

Slides:



Advertisements
Similar presentations
Scheduling Algorithms. Announcements Homework 1 is graded Homework 2 is on CMS Prelim is in class on 14 th March.
Advertisements

CS 268: Packet Scheduling Ion Stoica March 18/20, 2003.
1 Comnet 2010 Communication Networks Recitation 4 Scheduling & Drop Policies.
© 2004 Wayne Wolf Topics Task-level partitioning. Hardware/software partitioning.  Bus-based systems.
Computer Science Lecture 6, page 1 CS677: Distributed OS Processes and Threads Processes and their scheduling Multiprocessor scheduling Threads Distributed.
1 GPS Example 2: Arrivals o Eleven Sources. First source gets 0.5. Other 10 sources get 0.05 each. First source sends 11 cells send one each at t=0.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 19 Scheduling IV.
Chapter 5 CPU Scheduling. CPU Scheduling Topics: Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling.
Operating Systems 1 K. Salah Module 2.1: CPU Scheduling Scheduling Types Scheduling Criteria Scheduling Algorithms Performance Evaluation.
Computer Science Deadline Fair Scheduling: Bridging the Theory and Practice of Proportionate-Fair Scheduling in Multiprocessor Servers Abhishek Chandra.
OS Fall ’ 02 Processes Operating Systems Fall 2002.
CS 268: Lecture 15/16 (Packet Scheduling) Ion Stoica April 8/10, 2002.
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.
5: CPU-Scheduling1 Jerry Breecher OPERATING SYSTEMS SCHEDULING.
Computer Science Surplus Fair Scheduling: A Proportional-Share Scheduling Algorithm for Symmetric Multiprocessors Abhishek Chandra Micah Adler Pawan Goyal.
OS Spring ’ 04 Processes Operating Systems Spring 2004.
1Chapter 05, Fall 2008 CPU Scheduling The CPU scheduler (sometimes called the dispatcher or short-term scheduler): Selects a process from the ready queue.
Packet Scheduling From Ion Stoica. 2 Packet Scheduling  Decide when and what packet to send on output link -Usually implemented at output interface 1.
Computer Architecture and Operating Systems CS 3230: Operating System Section Lecture OS-3 CPU Scheduling Department of Computer Science and Software Engineering.
CSC 360- Instructor: K. Wu CPU Scheduling. CSC 360- Instructor: K. Wu Agenda 1.What is CPU scheduling? 2.CPU burst distribution 3.CPU scheduler and dispatcher.
OPERATING SYSTEMS CPU SCHEDULING.  Introduction to CPU scheduling Introduction to CPU scheduling  Dispatcher Dispatcher  Terms used in CPU scheduling.
More Scheduling cs550 Operating Systems David Monismith.
MM Process Management Karrie Karahalios Spring 2007 (based off slides created by Brian Bailey)
Lottery Scheduling: Flexible Proportional-Share Resource Management Sim YounSeok C. A. Waldspurger and W. E. Weihl.
1 Scheduling Processes. 2 Processes Each process has state, that includes its text and data, procedure call stack, etc. This state resides in memory.
Scheduling Strategies Operating Systems Spring 2004 Class #10.
Fair Queueing. 2 First-Come-First Served (FIFO) Packets are transmitted in the order of their arrival Advantage: –Very simple to implement Disadvantage:
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 5: CPU Scheduling.
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.
Operating Systems 1 K. Salah Module 2.2: CPU Scheduling Scheduling Types Scheduling Criteria Scheduling Algorithms Performance Evaluation.
Packet Scheduling: SCFQ, STFQ, WF2Q Yongho Seok Contents Review: GPS, PGPS SCFQ( Self-clocked fair queuing ) STFQ( Start time fair queuing ) WF2Q( Worst-case.
Lecture Note on Scheduling Algorithms. What is scheduling? A scheduling discipline resolves contention, “who is the next?” Goal: fairness and latency.
1 Fair Queuing Hamed Khanmirza Principles of Network University of Tehran.
Lecture Topics: 11/15 CPU scheduling: –Scheduling goals and algorithms.
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 32 – Multimedia OS Klara Nahrstedt Spring 2010.
CPU Scheduling Operating Systems CS 550. Last Time Deadlock Detection and Recovery Methods to handle deadlock – Ignore it! – Detect and Recover – Avoidance.
Stride Scheduling: Deterministic Proportional-Share Resource Management Carl A. Waldspurger, William E. Weihl MIT Laboratory for Computer Science Presenter:
Lecture 4 CPU scheduling. Basic Concepts Single Process  one process at a time Maximum CPU utilization obtained with multiprogramming CPU idle :waiting.
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.  Single Process  one process at a time  Maximum CPU utilization obtained with multiprogramming  CPU idle :waiting time is wasted 2.
Lecture 5 Scheduling. Today CPSC Tyson Kendon Updates Assignment 1 Assignment 2 Concept Review Scheduling Processes Concepts Algorithms.
04/02/08 1 Packet Scheduling IT610 Prof. A. Sahoo KReSIT.
Virtual-Time Round-Robin: An O(1) Proportional Share Scheduler Jason Nieh, Chris Vaill, Hua Zhong Columbia University Presented by Adam Binford.
CPU SCHEDULING.
Tao Zhu1,2, Chengchun Shu1, Haiyan Yu1
April 6, 2001 Gary Kimura Lecture #6 April 6, 2001
Lottery Scheduling Ish Baid.
CS 3204 Operating Systems Lecture 14 Godmar Back.
Quality of Service For Traffic Aggregates
Lecture 21: Introduction to Process Scheduling
Variations of Weighted Fair Queueing
Jason Neih and Monica.S.Lam
Fair Queueing.
Scheduling Adapted from:
Chapter5: CPU Scheduling
Operating systems Process scheduling.
Chapter 5: CPU Scheduling
CPU SCHEDULING.
Outline Scheduling algorithms Multi-processor scheduling
Chapter 5: CPU Scheduling
Variations of Weighted Fair Queueing
Chapter 5: CPU Scheduling
Lecture 21: Introduction to Process Scheduling
Processor Scheduling Hank Levy 1.
Uniprocessor scheduling
Chapter 5: CPU Scheduling
Don Porter Portions courtesy Emmett Witchel
Fair Queueing.
کنترل جریان امیدرضا معروضی.
Presentation transcript:

Surplus Fair Scheduling Ricardo A. Baratto COMS E6118 – Spring 2004

Proportional-Share CPU Scheduling for Symmetric Multiprocessors

What? Why? ● Fair resource allocation Proportional to application's share ● WFQ [Demers et al.], [Parekh et al.], Stride [Waldspurger et al.] ● SFQ [Goyal et al.] ● SMART [Nieh et al.]

The Problem ● Unfeasible Weight Assignment : Starvation Upper Bound on Assignment ● Frequent Arrival – Departures: Unfairness Burst Behavior

Surplus Fair Scheduling 1.Weight Readjustment 2.Generalized Multiprocessor Sharing (Surplus Approximation)

Weight Readjustment ● Readjust threads violating feasibility constraint: ● Optimal: Number of threads Weight change ● Efficient O(p)

GMS and Surplus Approximation ● Generalization of GPS [Parekh et al.] ● φ i : Readjusted weight ● A i (t 1, t 2 ): CPU service received ● S i : Weighted CPU service = S i + q/φ i ● α i = A i (0, t) - A i GMS (0, t) ≈ (φ i. S i ) - (φ i. v)

SFS Algorithm i.update F i and compute S i ii.compute v: min(S i ) iii.compute α i iv.schedule t i with min(α i ) v.If {t} changes: readjust weights

Implementation and Complexity ● Three ordered queues: – w: Weight readjustment – S: Virtual time – α : Next to schedule ● Add thread: Insert + Readjust = O(t+p) ● Delete thread: Delete + Readjust = O(p) ● Schedule: Update surplus + Sort = O(t log t) [~ every p schedules]

Evaluation: Weight Readjustment

Evaluation: Short Jobs

Evaluation: Application Isolation