Non-clairvoyant Precedence Constrained Scheduling

Slides:



Advertisements
Similar presentations
Coordination Mechanisms for Unrelated Machine Scheduling Yossi Azar joint work with Kamal Jain Vahab Mirrokni.
Advertisements

Minimizing Average Flow-Time Naveen Garg IIT Delhi Joint work with Amit Kumar, Jivi Chadha,V Muralidhara, S. Anand.
Minimum Clique Partition Problem with Constrained Weight for Interval Graphs Jianping Li Department of Mathematics Yunnan University Jointed by M.X. Chen.
CALTECH CS137 Fall DeHon 1 CS137: Electronic Design Automation Day 19: November 21, 2005 Scheduling Introduction.
ECE 667 Synthesis and Verification of Digital Circuits
C&O 355 Lecture 23 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A A A A A A A A.
Properties of SPT schedules Eric Angel, Evripidis Bampis, Fanny Pascual LaMI, university of Evry, France MISTA 2005.
Introduction to Algorithms
CALTECH CS137 Winter DeHon CS137: Electronic Design Automation Day 14: March 3, 2004 Scheduling Heuristics and Approximation.
Primal-Dual Algorithms for Connected Facility Location Chaitanya SwamyAmit Kumar Cornell University.
S ELFISH M IGRATE : A Scalable Algorithm for Non-clairvoyantly Scheduling Heterogeneous Processors Janardhan Kulkarni, Duke University Sungjin Im (UC Merced.
Online Scheduling with Known Arrival Times Nicholas G Hall (Ohio State University) Marc E Posner (Ohio State University) Chris N Potts (University of Southampton)
Scheduling with Outliers Ravishankar Krishnaswamy (Carnegie Mellon University) Joint work with Anupam Gupta, Amit Kumar and Danny Segev.
Paths, Trees and Minimum Latency Tours Kamalika Chaudhuri, Brighten Godfrey, Satish Rao, Satish Rao, Kunal Talwar UC Berkeley.
Precedence Constrained Scheduling Abhiram Ranade Dept. of CSE IIT Bombay.
6.896: Topics in Algorithmic Game Theory Lecture 14 Constantinos Daskalakis.
Auction Algorithms for Market Equilibrium Rahul Garg IBM India Research Sanjiv Kapoor Illionis Institute of Technology.
Precedence Constrained Scheduling Abhiram Ranade Dept. of CSE IIT Bombay.
Max-Min Fair Allocation of Indivisible Goods Amin Saberi Stanford University Joint work with Arash Asadpour TexPoint fonts used in EMF. Read the TexPoint.
CISS Princeton, March Optimization via Communication Networks Matthew Andrews Alcatel-Lucent Bell Labs.
1 Scheduling on Heterogeneous Machines: Minimize Total Energy + Flowtime Ravishankar Krishnaswamy Carnegie Mellon University Joint work with Anupam Gupta.
Job Scheduling Lecture 19: March 19. Job Scheduling: Unrelated Multiple Machines There are n jobs, each job has: a processing time p(i,j) (the time to.
Building Edge-Failure Resilient Networks Chandra Chekuri Bell Labs Anupam Gupta Bell Labs ! CMU Amit Kumar Cornell ! Bell Labs Seffi Naor, Danny Raz Technion.
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy under contract.
Primal-Dual Algorithms for Connected Facility Location Chaitanya SwamyAmit Kumar Cornell University.
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy under contract.
Algorithms and Economics of Networks: Coordination Mechanisms Abraham Flaxman and Vahab Mirrokni, Microsoft Research.
Priority Models Sashka Davis University of California, San Diego June 1, 2003.
Minimizing Flow Time on Multiple Machines Nikhil Bansal IBM Research, T.J. Watson.
1 The Santa Claus Problem (Maximizing the minimum load on unrelated machines) Nikhil Bansal (IBM) Maxim Sviridenko (IBM)
How the Experts Algorithm Can Help Solve LPs Online Marco Molinaro TU Delft Anupam Gupta Carnegie Mellon University.
ICALP'05Stochastic Steiner without a Root1 Stochastic Steiner Trees without a Root Martin Pál Joint work with Anupam Gupta.
Approximation Algorithms for Stochastic Combinatorial Optimization Part I: Multistage problems Anupam Gupta Carnegie Mellon University.
Yossi Azar Tel Aviv University Joint work with Ilan Cohen Serving in the Dark 1.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
CALTECH CS137 Winter DeHon CS137: Electronic Design Automation Day 12: February 13, 2002 Scheduling Heuristics and Approximation.
Batch Scheduling of Conflicting Jobs Hadas Shachnai The Technion Based on joint papers with L. Epstein, M. M. Halldórsson and A. Levin.
Primal-Dual Algorithms for Connected Facility Location Chaitanya SwamyAmit Kumar Cornell University.
Packing Rectangles into Bins Nikhil Bansal (CMU) Joint with Maxim Sviridenko (IBM)
Comp 553: Algorithmic Game Theory Fall 2014 Yang Cai Lecture 23.
Algorithmic Game Theory and Internet Computing Vijay V. Vazirani Georgia Tech Primal-Dual Algorithms for Rational Convex Programs II: Dealing with Infeasibility.
2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani.
How the Experts Algorithm Can Help Solve LPs Online Marco Molinaro TU Delft Anupam Gupta Carnegie Mellon University.
Lecture.6. Table of Contents Lp –rounding Dual Fitting LP-Duality.
Algorithmic Game Theory and Internet Computing Vijay V. Vazirani 3) New Market Models, Resource Allocation Markets.
MAP Estimation in Binary MRFs using Bipartite Multi-Cuts Sashank J. Reddi Sunita Sarawagi Sundar Vishwanathan Indian Institute of Technology, Bombay TexPoint.
Algorithmic Game Theory and Internet Computing
A stochastic scheduling algorithm for precedence constrained tasks on Grid Future Generation Computer Systems (2011) Xiaoyong Tang, Kenli Li, Guiping Liao,
PRIMAL-DUAL APPROXIMATION ALGORITHMS FOR METRIC FACILITY LOCATION AND K-MEDIAN PROBLEMS K. Jain V. Vazirani Journal of the ACM, 2001.
Scheduling Parallel DAG Jobs to Minimize the Average Flow Time K. Agrawal, J. Li, K. Lu, B. Moseley.
Tuesday, March 19 The Network Simplex Method for Solving the Minimum Cost Flow Problem Handouts: Lecture Notes Warning: there is a lot to the network.
Competitive Algorithms from Competitive Equilibria
Maximum Matching in the Online Batch-Arrival Model
Algorithmic Game Theory and Internet Computing
On Scheduling in Map-Reduce and Flow-Shops
Combinatorial Optimization Under Uncertainty
The Price of information in combinatorial optimization
Chapter 5. Optimal Matchings
Distributed Submodular Maximization in Massive Datasets
Chapter 6. Large Scale Optimization
(22nd August, 2018) Sahil Singla
Linear Programming and Approximation
Sampling in Graphs: node sparsifiers
Chaitanya Swamy University of Waterloo
Algorithmic Game Theory and Internet Computing
The Byzantine Secretary Problem
Online Algorithms via Projections set cover, paging, k-server
György Dósa – M. Grazia Speranza – Zsolt Tuza:
Chapter 1. Formulations.
Chapter 6. Large Scale Optimization
Presentation transcript:

Non-clairvoyant Precedence Constrained Scheduling July 9th, 2019 Sahil singla Princeton University and Institute for Advanced Study Joint work with naveen Garg, Anupam gupta, And Amit Kumar

What is Scheduling? 𝐦 identical machines: Each processes 1 unit per time 𝐧 jobs: (Release time r j , Processing time p j , Weight w j ) Goal: Execute jobs to minimize: Total completion time: j C j Total time in system (flow time): j ( C j − r j ) Time of last job (makespan): ma x j C j 𝒓 𝟏 time 𝒓 𝟐 Weighted versions: j w j C j & j w j ( C j − r j ) At any moment execute at most 1 job per machine at most 1 machine per job m machines n jobs Preemption & Migration allowed

Non-Clairvoyant Scheduling What if (r j , p j , w j ) not known? (non-clairvoyant) Don’t know existence of job before r j Don’t know size p j until executed p j Compare to offline optimum solution Single machine do shortest job first, but in general NP hard Cannot achieve offline optimum E.g, two jobs on a single machine (Weighted) Round-robin gives O(1) approx p 1 =1 p 2 =2 Preemption & Migration allowed

Precedence Constraints j Some jobs can only start after finishing another: i≺j Directed acyclic dependency-graph (DAG) Wtd. Completion time captures Makespan 1 job with weight >0 depending on all others Applications to parallel/distributed systems Multi-processing modeled as DAGs Non-homogenous jobs Big data systems Graham’66 Grandl et al.’16 Apache Tez and Apache Spark

can we do online with precedence? What is Known with Precedence? Offline: Wtd Completion: Constant factor algorithms Hall-Schulz-Shmoys-Wein’97 Wtd Flow: Speedup necessary & constant factor with constant speedup Kulkarni-Li’18 Online/Non-clairvoyant: Not much is known Some works assume each DAG is a “hyper-job”: Greedy works Same release date Only one value for the entire “hyper-job” Agrawal-Li-Lu-Moseley’16 Robert-Schabanel’08 can we do online with precedence?

Main results Thm [GGKS'19]: For Wtd Completion Time and DAG Preced: 𝟏𝟎 approximation All jobs in a DAG released together Thm [GGKS'19]: For Wtd Flow Time and DAG with No-Surprise Preced: 𝐎(𝟏) approximation with a small “speedup” Remark: The assumptions are necessary and we give a scalable algorithm, i.e. O(1/ ϵ 2 ) approx even with (1+ϵ)-speedup.

OUTLINE Introduction: Precedence Constrained Scheduling Our Algorithm: Independence Graph & Nash Social Welfare Primal-Dual Analysis Other Results and Open Problems

Weighted Round-Robin Algorithm What if no-precedence? Run proportional to weights All job rates ≤1 and total rate ≤𝑚 What if only chains or trees? Cannot be uniform over all chains Weight according to subtree weight For inverted stars, who should get j’s weight? 𝑤 𝑗 =∞ Easy Chains Medium Trees j Who should j blame?

How to Distribute Speeds? Use a dependency Graph i How to Distribute Speeds? Cannot arbitrarily distribute: Want some kind of “fair” algorithm For every t imagine a Dependency Graph G t Indep jobs I t and All jobs J t Edge (i,j) if i≺j or i=j Inverted star j Indep jobs 𝐈 𝐭 All jobs 𝐉 𝐭 i j Machines

Maximize Nash Social Welfare (NSW) Want a “Fair” Solution NSW used previously by Munagala et al. (without precedence) Convex Program max j∈ J t w j ⋅log R j t L i t := j z ij t ∀i∈ I t R j t := i z ij t ∀j∈ J t L i t ≤1 ∀i∈ I t i L i t ≤m 0≤z ij t ≤1 Machines i Real Rate i Virtual Rate j 𝐈 𝐭 𝐉 𝐭 Generalizes round-robin Similar to Eisenberg-Gale for Fisher markets Combinatorial Water-Filling algo

OUTLINE Introduction: Precedence Constrained Scheduling Our Algorithm: Independence Graph & Nash Social Welfare Primal-Dual Analysis Other Results and Open Problems

Proof approach Assume our machines at twice speed Thm: Weighted Compl time with DAG Preced has 𝟏𝟎 approx Assume our machines at twice speed Two lower bounds on OPT : Show ALG is comparable to I + II ALG ≤ j w j ⋅ chai n j +2⋅ r j +2⋅LP Chain Lower Bound C j ≥chai n j the length of max chain to j C j ≥ r j the release date LP Lower Bound Write an LP lower bounding OPT Any feasible solution to the dual j

Primal-Dual LP Thm: Weighted Compl time with DAG Preced has 𝟏𝟎 approx x jt denotes processing j gets at t min j,t w j ⋅t⋅ x j,t p j t≥ r j x j,t p j ≥1 ∀j j x j,t ≤m ∀t s≤t x i,s p i ≥ s≤t x j,s p j ∀t, i≺j max j α j −m⋅ t β t α j , β t ≥0 ∀j,t α j − w j ⋅t+ s≥t γ s,j out − γ s,j in ≤ p j ⋅ β t ∀j,t≥ r j Jobs finished Bounded Speed Precedence

Setting Duals and LP Feasibility Use the CP solution to set LP duals Only active jobs count at t Feasibility: Waiting jobs: getting money from I t Running jobs: rate proportional to total weight Dual objective comparable: ALG ≤2⋅LP+ j w j ⋅(chai n j + 2⋅r j ) max j α j −m⋅ t β t α j , β t ≥0 ∀j,t α j − w j ⋅t+ s≥t γ s,j out − γ s,j in ≤ p j ⋅ β t ∀j,t≥ r j Jobs that help Thm: Weighted Compl time with DAG Preced has 𝟏𝟎 approx

OUTLINE Introduction: Precedence Constrained Scheduling Our Algorithm: Independence Graph & Nash Social Welfare Primal-Dual Analysis Other Results and Open Problems

Weighted Flow Time All jobs in a DAG released together Thm [GGKS'19]: For Wtd Flow Time and DAG with No-Surprise Preced: 𝐎(𝟏) approximation with a small “speedup” Remark: We give a scalable algorithm, i.e., 𝐎(𝟏) approx even with (1+𝜖)-speedup No surprise assump necessary (even with speedup & single machine) At t=0, release n indep jobs of size 1. At t=1, release n 3 new jobs of size 0 depending on a random j. Assumption allows to define a Total Order: Different DAGs w.r.t. r j and within DAG w.r.t. C j Slightly change the LP and CP objectives Set duals using CP solution

Conclusion Questions? Scheduling with Precedence No “hyper-job” assump: 10 approx for Wtd Compl. Nash-Social Welfare Primal-Dual analysis: Set LP duals using the CP solution O 1/ ϵ 2 approx for Wtd Flow Time with (1+ϵ) speedup No-Surprise Assump Open Problems Improve approximation factors For related machines can we get O(k⋅ log n )? Questions?

Further SLIDES

Relationship to Fisher Markets max j∈ J t w j ⋅log R j t L j t := j ′ z j j ′ t ∀j∈ I t R j t := j ′ z j j ′ t ∀j∈ J t L j t ≤1 ∀j∈ I t j L j t ≤m z j j ′ t ≥0 Fisher Markets m divisible goods and n buyers Buyer j has budget B j and utility u ij for item i Find equilibrium item prices p i s.t. market clears Comparison to Eisenberg-Gale Convex Program Difficult: Additional constraint overall speed ≤m Simpler: Unit-weights, i.e, u ij =1 Combinatorial algorithms Complicated for Fisher-Markets Simple Water-Filling for our convex program max j∈Buyers B j ⋅log U j L i := j z ij ∀i∈Items U j := i u ij ⋅ z ij ∀j∈Buyers L i ≤1 ∀i∈Items z ij ≥0

Primal-Dual LP Thm: Wtd Compl time with DAG Preced has 𝟏𝟎 approx. min j,t w j ⋅t⋅ x j,t p j t≥ r j x j,t p j ≥1 ∀j j x j,t ≤m ∀t s≤t x j,s p j ≥ s≤t x j ′ ,s p j ′ ∀t, j≺j′ max j α j −m⋅ t β t α j , β t ≥0 ∀j,t α j − w j ⋅t+ s≥t j≺j′ γ s,j→ j ′ − j′≺j γ s, j ′ →j ≤ p j ⋅ β t ∀j,t≥ r j Jobs finished Bounded Speed Precedence Alternately, max j α j −m⋅ t β t α j , β t ≥0 ∀j,t α j − w j ⋅t+ s≥t γ s,j out − γ s,j in ≤ p j ⋅ β t ∀j,t≥ r j x jt is processing j gets at t

Dual Feasibility (Idea) max j α j −m⋅ t β t α j , β t ≥0 ∀j,t α j − w j ⋅t+ s≥t γ s,j out − γ s,j in ≤ p j ⋅ β t ∀j,t≥ r j Waiting Jobs J t ∖ I t Getting money from 𝐼 𝑡 Running Jobs I t Running rate proportional to how many jobs depend on it Careful but simple case analysis Thm [GGKS'19]: For Wtd Completion Time and DAG Preced: 𝟏𝟎 approximation

Related Machines Machines of k speed classes: n i machines of speed s i Cannot do better than factor k: Minimize makespan: Suppose s 1 ≫ s 2 ≫…≫ s k Let n 1 s 1 ≪ n 2 s 2 ≪…≪ n k s k with n i jobs of size s i Cannot do better than factor log n loglog n =: 1 ϵ Objective: Makespan for 1/ϵ-ary tree of depth 1/ϵ Machines: One fast & many slow: s 1 =1= n 1 & s 2 =ϵ, n 2 =∞ Sizes: P is random root-leaf path. Jobs incident to P size 1, otherwise 0 OPT is 1 ϵ but any ALG is 1 ϵ 2 Can we get O(1) approx? 1