S ELFISH M IGRATE : A Scalable Algorithm for Non-clairvoyantly Scheduling Heterogeneous Processors Janardhan Kulkarni, Duke University Sungjin Im (UC Merced.

Slides:



Advertisements
Similar presentations
Minimizing Average Flow-Time Naveen Garg IIT Delhi Joint work with Amit Kumar, Jivi Chadha,V Muralidhara, S. Anand.
Advertisements

PATH SELECTION AND MULTIPATH CONGESTION CONTROL BY P. KEY, L. MASSOULIE, AND D. TOWSLEY R02 – Network Architectures Michaelmas term, 2013 Ulku Buket Nazlican.
Scheduling Criteria CPU utilization – keep the CPU as busy as possible (from 0% to 100%) Throughput – # of processes that complete their execution per.
Price Of Anarchy: Routing
COT 4600 Operating Systems Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 3:00-4:00 PM.
Mehdi Kargahi School of ECE University of Tehran
Scheduling with Outliers Ravishankar Krishnaswamy (Carnegie Mellon University) Joint work with Anupam Gupta, Amit Kumar and Danny Segev.
1 Better Scalable Algorithms for Broadcast Scheduling Ravishankar Krishnaswamy Carnegie Mellon University Joint work with Nikhil Bansal and Viswanath Nagarajan.
Yousi Zheng Dept. of ECE, The Ohio State University
HASSO-PLATTNER-INSTITUT für Softwaresystemtechnik GmbH an der Universität Potsdam Multiprocessor Scheduling “Global Multiprocessor Scheduling of Aperiodic.
Competitive Routing in Multi-User Communication Networks Presentation By: Yuval Lifshitz In Seminar: Computational Issues in Game Theory (2002/3) By: Prof.
Worst-case Equilibria Elias Koutsoupias and Christos Papadimitriou Presenter: Yishay Mansour Tight Bounds for Worst-case Equilibria Artur Czumaj and Berthold.
Energy-Efficient Rate Scheduling in Wireless Links A Geometric Approach Yashar Ganjali High Performance Networking Group Stanford University
Convergence Time to Nash Equilibria in Load Balancing Eyal Even-Dar, Tel-Aviv University Alex Kesselman, Tel-Aviv University Yishay Mansour, Tel-Aviv University.
CSE 421 Algorithms Richard Anderson Lecture 6 Greedy Algorithms.
1 Scheduling on Heterogeneous Machines: Minimize Total Energy + Flowtime Ravishankar Krishnaswamy Carnegie Mellon University Joint work with Anupam Gupta.
1 Scheduling Jobs with Varying Parallelizability Ravishankar Krishnaswamy Carnegie Mellon University.
An Adaptive Multi-Objective Scheduling Selection Framework For Continuous Query Processing Timothy M. Sutherland Bradford Pielech Yali Zhu Luping Ding.
1 A Cooperative Game Framework for QoS Guided Job Allocation Schemes in Grids Riky Subrata, Member, IEEE, Albert Y. Zomaya, Fellow, IEEE, and Bjorn Landfeldt,
Packet Scheduling From Ion Stoica. 2 Packet Scheduling  Decide when and what packet to send on output link -Usually implemented at output interface 1.
DaVinci: Dynamically Adaptive Virtual Networks for a Customized Internet Jennifer Rexford Princeton University With Jiayue He, Rui Zhang-Shen, Ying Li,
Throughput Competitive Online Routing Baruch Awerbuch Yossi Azar Serge Plotkin.
Recall … Process states –scheduler transitions (red) Challenges: –Which process should run? –When should processes be preempted? –When are scheduling decisions.
CPU Scheduling Chapter 6 Chapter 6.
Computer Architecture and Operating Systems CS 3230: Operating System Section Lecture OS-3 CPU Scheduling Department of Computer Science and Software Engineering.
COT 4600 Operating Systems Spring 2011 Dan C. Marinescu Office: HEC 304 Office hours: Tu-Th 5:00-6:00 PM.
More Scheduling cs550 Operating Systems David Monismith.
Yossi Azar Tel Aviv University Joint work with Ilan Cohen Serving in the Dark 1.
ECE559VV – Fall07 Course Project Presented by Guanfeng Liang Distributed Power Control and Spectrum Sharing in Wireless Networks.
1 Pruhs, Woeginger, Uthaisombut 2004  Qos Objective: Minimize total flow time  Flow time f i of a job i is completion time C i – r i  Power Objective:
1 Server Scheduling in the L p norm Nikhil Bansal (CMU) Kirk Pruhs (Univ. of Pittsburgh)
1 Our focus  scheduling a single CPU among all the processes in the system  Key Criteria: Maximize CPU utilization Maximize throughput Minimize waiting.
Incentive-Oriented Downlink Scheduling for Wireless Networks with Real-Time and Non-Real-Time Flows I-Hong Hou, Jing Zhu, and Rath Vannithamby.
3.1 : Resource Management Part2 :Processor Management.
Scheduling tasks from selfish multi-tasks agents Johanne Cohen, CNRS, LRI, Orsay Fanny Pascual, Université Pierre et Marie Curie (UPMC), LIP6, Paris.
Michael J. Neely, University of Southern California CISS, Princeton University, March 2012 Asynchronous Scheduling for.
Resource Mapping and Scheduling for Heterogeneous Network Processor Systems Liang Yang, Tushar Gohad, Pavel Ghosh, Devesh Sinha, Arunabha Sen and Andrea.
CompSci 143A1 5. Process and thread scheduling 5.1 Organization of Schedulers – Embedded and Autonomous Schedulers – Priority Scheduling 5.2 Scheduling.
Lecture 7: Scheduling preemptive/non-preemptive scheduler CPU bursts
6. Application mapping 6.1 Problem definition
Operating System 9 UNIPROCESSOR SCHEDULING. TYPES OF PROCESSOR SCHEDULING.
DaVinci: Dynamically Adaptive Virtual Networks for a Customized Internet Jiayue He, Rui Zhang-Shen, Ying Li, Cheng-Yen Lee, Jennifer Rexford, and Mung.
Packet Scheduling: SCFQ, STFQ, WF2Q Yongho Seok Contents Review: GPS, PGPS SCFQ( Self-clocked fair queuing ) STFQ( Start time fair queuing ) WF2Q( Worst-case.
ITFN 2601 Introduction to Operating Systems Lecture 4 Scheduling.
1 Real-Time Scheduling. 2Today Operating System task scheduling –Traditional (non-real-time) scheduling –Real-time scheduling.
Rounding scheme if r * j  1 then r j := 1  When the number of processors assigned in the continuous solution is between 0 and 1 for each task, the speed.
CS333 Intro to Operating Systems Jonathan Walpole.
Process Scheduling Schedulers and Scheduling Methods.
Scheduling Parallel DAG Jobs to Minimize the Average Flow Time K. Agrawal, J. Li, K. Lu, B. Moseley.
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.
Competitive Algorithms from Competitive Equilibria
Chapter 8 – Processor Scheduling
Scheduling (Priority Based)
Stratified Round Robin: A Low Complexity Packet Scheduler with Bandwidth Fairness and Bounded Delay Sriram Ramabhadran Joseph Pasquale Presented by Sailesh.
On Scheduling in Map-Reduce and Flow-Shops
CPU Scheduling.
Process Scheduling B.Ramamurthy 11/18/2018.
CPU Scheduling G.Anuradha
Andy Wang Operating Systems COP 4610 / CGS 5765
Dan C. Marinescu Office: HEC 439 B. Office hours: M, Wd 3 – 4:30 PM.
COT 4600 Operating Systems Spring 2011
Process scheduling Chapter 5.
New Scheduling Algorithms: Improving Fairness and Quality of Service
CGS 3763 Operating Systems Concepts Spring 2013
University of Pittsburgh
University of Pittsburgh
György Dósa – M. Grazia Speranza – Zsolt Tuza:
Scheduling 21 May 2019.
Flexible Assembly Systems
Non-clairvoyant Precedence Constrained Scheduling
Presentation transcript:

S ELFISH M IGRATE : A Scalable Algorithm for Non-clairvoyantly Scheduling Heterogeneous Processors Janardhan Kulkarni, Duke University Sungjin Im (UC Merced ), Kamesh Munagala (Duke), Kirk Pruhs (UPitt)

M M ONLINE UNRELATED MACHINE MODEL processing length - rate of processing - weight

M M ONLINE UNRELATED MACHINE (rate = 1, length=100) (rate = 0.5, length 200) (rate = 2, length =50) Time - processing length - rate of processing (rate = 0, length = infinity)

M M NON-CLAIRVOYANCE 3 3 (rate = 1, length=100) (rate = 0, infinity) (rate = 0.5, length = 200) (rate = 2, length =50) - processing length - rate of processing - weight Time

FLOW-TIME (DELAY OR RESPONSE TIME)

ANOTHER FORM

SPEED-AUGMENTATION: - Online scheduler runs at higher speed PREMPTION: - S top a job in middle of processing and continue later. MIGRATION: - Change the assignment of jobs to machines at no cost.

NO PARALLEL PROCESSING - No job is simultaneously processed on multiple machines OK

NO PARALLEL PROCESSING: - No job is simultaneously processed on multiple machines NOT ALLOWED

How to schedule jobs to minimize sum of weighted flow-time for unrelated machines in non-clairvoyant model?

It was very difficult Motivation

Heterogeneous architectures are ubiquitous Non-clairvoyance is very important in practice Motivation

S ELFISH M IGRATE is -speed -competitive for minimizing weighted flow-time on unrelated machines. Result also extends to energy + weighted flow-time. THE MAIN THEOREM

CLAIRVOYANT ALGORITHM Anand-Garg-Kumar, SODA ‘12 Chadha-Garg-Kumar-Muralidhara, STOC ‘09

Each machine schedules jobs using HDF (SJF) policy When a new job arrives, calculate the increase in the objective when the job is assigned to each of the machines. Assign the job greedily to the machine which increases the objective the least. ALGORITHM

SJF ALGORITHM Increase B = Increase A = NEW

For all jobs For all machines

THE DUAL For all jobs machines and time instants

DUAL FITTING Increase in the objective due to the job The total number of jobs alive at time on machine Speed-Augmentation

= Increase in the objective due to the job and

The whole frame work breaks down for non-clairvoyant settings… 1.We cannot measure the increase in the objective 2.Migrating jobs is necessary 3.Migration of jobs makes calculating the flow- times difficult and complicates how jobs interfere with each other

SELFISHMIGRATE

KEY IDEA I Focus on speed at which jobs are getting processed and monotonicity of speed Speed of a job = fraction of the job processed at time

If is monotone, then

Dual Constraint:

If is monotone, then Dual Constraint:

Fraction of processor allocated = Round Robin or Proportional Sharing

If is monotone, then Dual Constraints:

If is monotone, then Dual Constraints: But which machine we should assign the job ?

If is monotone, then Dual Constraints: But which machine we should assign the job ? ANS IS MINIMUM

Dual constraints need us… For all jobs machines and time instants 1. BEST MACHINE- which maximizes speed. 2.The speed MONOTONICALLY increases.

KEY IDEA II: VIRTUAL QUEUES, VIRTUAL SPEED RR j

VIRTUAL QUEUES, VIRTUAL SPEEDS RR Inverse of instantaneous delay the job induces on the other jobs ahead of its virtual queue.

KEY IDEA II: VIRTUAL QUEUES, VIRTUAL SPEED RR Total delay induced by job if it stays on the machine till its completion is proportional to

KEY IDEA III: SELFISHMIGRATE RULE 1: NO JUMPING ( not even virtual ones! )

Virtual speed of other jobs does not decrease if a job enters the machine! RULE 1: NO JUMPING

RULE 2: BE SELFISH! Increases virtual speed… migrate! Any time!

RULE 2: BE SELFISH! Remains Same Increases!

Jobs migrate whenever they can increase their virtual speed...

Jobs migrate whenever they can increase their virtual speed…..

Jobs migrate whenever they can increase their virtual speed…

Jobs migrate whenever they can increase their virtual speed…..

This cannot go on forever… as virtual speeds are finite

We get …MONOTONICITY Virtual speeds are monotone non-decreasing!

BEST MACHINE each job chooses the best machine on arrival

BEST MACHINE (Nash Equilibrium on Virtual Speed) S ELFISH M IGRATE ensures this is true at all times by design!

BEST MACHINE Entire process can be thought as Coordination ‘game’ on virtual speeds

DUAL SETTINGS The total delay job causes on the jobs ahead of its virtual queue over its entire sojourn

DUAL SETTINGS The total delay job j causes on the jobs ahead of its virtual queue over its entire sojourn + its total processing time. The flow-time of all jobs (Cost of the algorithm)

The total number of jobs in the queue at time t. The total flow-time of all jobs (Cost of the algorithm) Dual setting = =

DUAL OBJECTIVE

What About Constraints? For all jobs machines and time instants

DELAY LEMMAS (Follows from a property of Round Robin) Total delay a job induced on jobs ahead of it over the interval Total delay a job induced on jobs ahead of it in

DELAY LEMMA

MINIMUM ( BEST MACHINE )

We gave a new framework to analyze non-clairvoyant scheduling problems CONCLUSIONS and OPEN PROBLEMS - norms of weighted flow-time

THANKS