Queueing and Scheduling - Bridging the Gap Gideon Weiss University of Haifa CIRM Marseilles 12-16 May, 2008 Gideon Weiss University of Haifa CIRM Marseilles.

Slides:



Advertisements
Similar presentations
Energy-efficient Task Scheduling in Heterogeneous Environment 2013/10/25.
Advertisements

Introduction to Queuing Theory
CALTECH CS137 Fall DeHon 1 CS137: Electronic Design Automation Day 19: November 21, 2005 Scheduling Introduction.
Scheduling Criteria CPU utilization – keep the CPU as busy as possible (from 0% to 100%) Throughput – # of processes that complete their execution per.
COT 4600 Operating Systems Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 3:00-4:00 PM.
Scheduling.
ISE480 Sequencing and Scheduling Izmir University of Economics ISE Fall Semestre.
Chapter 2: Model of scheduling problem Components of any model: Decision variables –What we can change to optimize the system, i.e., model output Parameters.
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.
MODELING AND ANALYSIS OF MANUFACTURING SYSTEMS Session 6 SCHEDULING E
Job scheduling Queue discipline.
1 ISQA 459/559 Mellie Pullman Scheduling Shop Floor.
Buffer Management for Shared- Memory ATM Switches Written By: Mutlu Apraci John A.Copelan Georgia Institute of Technology Presented By: Yan Huang.
Operational Research & ManagementOperations Scheduling Flow Shop Scheduling 1.Flexible Flow Shop 2.Flexible Assembly Systems (unpaced) 3.Paced Assembly.
Scheduling.
Chapter 6: CPU Scheduling
Computer Architecture and Operating Systems CS 3230: Operating System Section Lecture OS-3 CPU Scheduling Department of Computer Science and Software Engineering.
Yoni Nazarathy Gideon Weiss University of Haifa Yoni Nazarathy Gideon Weiss University of Haifa On the Variance of Queueing Output Processes Haifa Statistics.
On the variance curve of outputs for some queues and networks Yoni Nazarathy Gideon Weiss Yoav Kerner QPA Seminar, EURANDOM January 8, 2009.
Flows and Networks Plan for today (lecture 5): Last time / Questions? Blocking of transitions Kelly / Whittle network Optimal design of a Kelly / Whittle.
Yoni Nazarathy Gideon Weiss University of Haifa Yoni Nazarathy Gideon Weiss University of Haifa The Asymptotic Variance of the Output Process of Finite.
Chapter 6 Scheduling. Basic concepts Goal is maximum utilization –what does this mean? –cpu pegged at 100% ?? Most programs are I/O bound Thus some other.
Probabilistic Results for Mixed Criticality Real-Time Scheduling Bader N. Alahmad Sathish Gopalakrishnan.
Operational Research & ManagementOperations Scheduling Introduction Operations Scheduling 1.Setting up the Scheduling Problem 2.Single Machine Problems.
Yoni Nazarathy Gideon Weiss University of Haifa Yoni Nazarathy Gideon Weiss University of Haifa The Asymptotic Variance of the Output Process of Finite.
Stability using fluid limits: Illustration through an example "Push-Pull" queuing network Yoni Nazarathy* EURANDOM Contains Joint work with Gideon Weiss.
On the variance curve of outputs for some queues and networks Yoni Nazarathy Gideon Weiss Yoav Kerner CWI Amsterdam March 2009.
Appointment Systems - a Stochastic and Fluid Approach Michal Penn The William Davidson Faculty of Industrial Engineering and Management Technion - Israel.
On Control of Queueing Networks and The Asymptotic Variance Rate of Outputs Ph.d Summary Talk Yoni Nazarathy Supervised by Prof. Gideon Weiss Haifa Statistics.
1 Short Term Scheduling. 2  Planning horizon is short  Multiple unique jobs (tasks) with varying processing times and due dates  Multiple unique jobs.
Positive Harris Recurrence and Diffusion Scale Analysis of a Push-Pull Queueing Network Yoni Nazarathy and Gideon Weiss University of Haifa ValueTools.
ORSIS Conference, Jerusalem Mountains, Israel May 13, 2007 Yoni Nazarathy Gideon Weiss University of Haifa Yoni Nazarathy Gideon Weiss University of Haifa.
STUDENTS PROBABILITY DAY Weizmann Institute of Science March 28, 2007 Yoni Nazarathy (Supervisor: Prof. Gideon Weiss) University of Haifa Yoni Nazarathy.
14 th INFORMS Applied Probability Conference, Eindhoven July 9, 2007 Yoni Nazarathy Gideon Weiss University of Haifa Yoni Nazarathy Gideon Weiss University.
Flows and Networks Plan for today (lecture 6): Last time / Questions? Kelly / Whittle network Optimal design of a Kelly / Whittle network: optimisation.
Chapter 4 CPU Scheduling. 2 Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation.
Scheduling.
Scheduling Operations
Copyright ©: Nahrstedt, Angrave, Abdelzaher
CPU SCHEDULING.
Copyright ©: Nahrstedt, Angrave, Abdelzaher
CHAPTER 8 Operations Scheduling
Chapter 6: CPU Scheduling
CPU Scheduling G.Anuradha
Chapter 6: CPU Scheduling
Module 5: CPU Scheduling
3: CPU Scheduling Basic Concepts Scheduling Criteria
Chapter5: CPU Scheduling
TDC 311 Process Scheduling.
COT 4600 Operating Systems Spring 2011
Chapter 6: CPU Scheduling
Introduction to Scheduling Chapter 1
Scheduling Algorithms to Minimize Session Delays
CGS 3763 Operating Systems Concepts Spring 2013
Lecture 2 Part 3 CPU Scheduling
Process Scheduling B.Ramamurthy 2/23/2019.
Process Scheduling B.Ramamurthy 2/23/2019.
Process Scheduling B.Ramamurthy 4/11/2019.
Topic 15 Job Shop Scheduling.
Process Scheduling B.Ramamurthy 4/7/2019.
Process Scheduling B.Ramamurthy 4/19/2019.
Process Scheduling B.Ramamurthy 4/24/2019.
Chapter 6: CPU Scheduling
Module 5: CPU Scheduling
Process Scheduling B.Ramamurthy 5/7/2019.
Chapter 6: CPU Scheduling
CPU Scheduling.
Module 5: CPU Scheduling
Chapter 5: CPU Scheduling
Inputs and Outputs to Aggregate Production Planning
Presentation transcript:

Queueing and Scheduling - Bridging the Gap Gideon Weiss University of Haifa CIRM Marseilles May, 2008 Gideon Weiss University of Haifa CIRM Marseilles May, 2008

Gideon Weiss, University of Haifa, Scheduling and Queues, ©2008 1

2 Outline of the talk: We survey of some stochastic scheduling and queueing results and put them in context Single machine - performance evaluation -batch vs stream Parallel machines - pooling and pipelining Job shop scheduling - the 10x10x10 problem - demo of job shop simulator Fluid control of MCQN with IVQs joint work with Anat Kopzon and Yoni Nazarathy

Gideon Weiss, University of Haifa, Scheduling and Queues, © Single Machine Scheduling - Batch Batch of N jobs, Minimize flowtime, SPT optimal Three proofs #1: Pairwise interchange: #2: Calculate cost of each job: #3: In every pair of jobs one waits for the other (Matloff ‘ 86) Performance: ~30% savings

Gideon Weiss, University of Haifa, Scheduling and Queues, © Single Machine Scheduling - Stream Arrival stream (release times) at NP-hard Work conservation: amount of work remaining independent of schedule Min Makespan = Max Utilization = Non-Idling = Work Conserving Min Flowtime = Min Waiting = Min Queue Length (Little ’ s Law) SEPT optimal: Waiting is done almost exclusively by long jobs F(List)/F(SEPT) = Longest jobs/Average jobs = Unbounded

Gideon Weiss, University of Haifa, Scheduling and Queues, © Single Machine Scheduling - Computer Science Computers usually allocate processor sharing (round robin) Sojourn is Proporional to Length - Fair (same for LCFS) In internet: mice and elephants. Modern work (Mor Harchol Balther, Wierman, Scheller Wolfe) shows vast improvement by using SRPT with no penalty for long jobs Priority Rules - Bandit Problems and Gittins Index Preemptive scheduling, stochastic jobs, Gittins index (Klimov) optimal Whittle index - for restless bandits Nino Mora - Marginal Productivity Index Protocols ALOHA, TCP (vast literature), RED, etc.

Gideon Weiss, University of Haifa, Scheduling and Queues, © Single Machine Lessons Performance evaluation and comparison of policies Stream scheduling: same optimal policy, but very different costs Makespan = Utilization Flowtime = Queue length = Waiting time

Gideon Weiss, University of Haifa, Scheduling and Queues, © Parallel Machine Scheduling - Batch Flowtime: SPT optimal. Stochastic jobs: SEPT optimal (for stochastically comparable jobs) Weber Varaiya Walrand ‘ 86 Makespan: NP-hard, but in practice list is almost optimal (end effect) Weighted Flowtime: NP-hard. WF(Smith Rule)/WF(Optimum)≤1.2 For stochastic jobs, worst case performance of Smith Rule (c  -Rule) ≤1+1/N 2 W ‘ 92 Lesson : With less information optimum may get closer to heuristic solution

Gideon Weiss, University of Haifa, Scheduling and Queues, © Parallel Machine Scheduling - Batch Stochastic result: Expected flowtime for i.i.d. jobs: N jobs, M+1 machines: Lesson : Resource Pooling

Gideon Weiss, University of Haifa, Scheduling and Queues, © Parallel Machine Scheduling - Stream In heavy traffic, parallel machines exhibit resource pooling. c  -Rule or Gittins index scheduling are nearly optimal Lesson : Resource Pooling

Gideon Weiss, University of Haifa, Scheduling and Queues, ©

Gideon Weiss, University of Haifa, Scheduling and Queues, © Job Shop Scheduling - Minimum Makespan, Fluid approach: Consider the famous 10x10 job shop, with 930 optimum. If jobs were fluid and machines infinitely divisible: 100 activities, calculate total work for each of 10 machines, find bottleneck, T*=631 Allocate machine capacities to work at constant rate on all 100 activities Bottleneck fully utilized, others only partially.

Gideon Weiss, University of Haifa, Scheduling and Queues, © Multi-project Scheduling Project scheduling one usually thinks of CPM, and adds resource constraints But if there are many similar projects, and dedicated teams to do various types of activities, a queueing view may be better. Example 1: Agricultural extension In the 70s I worked for Tahal - Israel Water Planning. We were doing agricultural extension in Qazwin region of Iran, Dozens of villages, similar projects, teams of instructors, equipment, etc. Example 2: US naval shipyard - refurbishing destroyers and submarines Rob Leachman and Steve Hackman developed a scheme to schedule and Control these Example 3: Israel Electric Corporation - (Lemberg, Avi Mandelbaum, W ‘ 93) building new sub-generation and switching stations Each station has similar PERT-CPM chart. A critical activity is obtaining planning building permission Legal team has queue of all projects in process.

Gideon Weiss, University of Haifa, Scheduling and Queues, © Queueing vs Manufacturing: Single server queueMachine with controlled input A tandem of queues

Gideon Weiss, University of Haifa, Scheduling and Queues, © Multi Class Queueing Ntworks MCQN with Infinite Virtual Queues IVQ Queues/Classes Routing Processes Initial Queue Levels Processing Durations Resource Allocation (Scheduling) Network Dynamics Nominal Productio n Rates Resources

Gideon Weiss, University of Haifa, Scheduling and Queues, © IVQ ’ s Make Controlled Queueing Network even more interesting … Some Resource The Network PUSH PULL To Push Or To Pull? That is the question… High Utilization of Resources High and Balanced Throughput Stable and Low Queue Sizes Low variance of the departure process What does a “good” control achieve? Fluid oriented Approach: Choose a “good” nominal production rate (α)…

Gideon Weiss, University of Haifa, Scheduling and Queues, © Finite horizon control of queueing networks Fluid problem Control MCQN (Q(t),T(t)), over 0<t<T objective Fluid solution SCLP W ‘01-’08

Gideon Weiss, University of Haifa, Scheduling and Queues, © A two machine 3 steps re-entrant line Minimum Makespan Last Buffer First Served Optimal Fluid Solution

Gideon Weiss, University of Haifa, Scheduling and Queues, © Using Max Pressure to track fluid solution by MCQN-IVQ

Gideon Weiss, University of Haifa, Scheduling and Queues, © The KSRS network and the Push Pull network Push pull network (Kopzon, Nazarathy, W) Full utilization and stable queues Kumar Seidman Rybko Stolyar network congested in heavy traffic

Gideon Weiss, University of Haifa, Scheduling and Queues, © Summary Queueing people should think BATCH (finite horizon) Schedulers should think STREAM (queue) A FLUID MODEL provides a tractable optimization problem Tracking the fluid via MCQN w IVQ is ASYMPTOTICALLY OPTIMAL It is all a question of SCALE To verify your scale SIMULATE

Gideon Weiss, University of Haifa, Scheduling and Queues, ©