COMP60621 Designing for Parallelism

Slides:



Advertisements
Similar presentations
Chapter 13 Queueing Models
Advertisements

Lecture 10 Queueing Theory. There are a few basic elements common to almost all queueing theory application. Customers arrive, they wait for service in.
Many useful applications, especially in queueing systems, inventory management, and reliability analysis. A connection between discrete time Markov chains.
QUEUING MODELS Based on slides for Hilier, Hiller, and Lieberman, Introduction to Management Science, Irwin McGraw-Hill.
Lecture 13 – Continuous-Time Markov Chains
Queueing Theory: Recap
Nur Aini Masruroh Queuing Theory. Outlines IntroductionBirth-death processSingle server modelMulti server model.
Chap. 20, page 1051 Queuing Theory Arrival process Service process Queue Discipline Method to join queue IE 417, Chap 20, Jan 99.
Model Antrian By : Render, ect. Outline  Characteristics of a Waiting-Line System.  Arrival characteristics.  Waiting-Line characteristics.  Service.
HW # Due Day: Nov 23.
Queuing Systems Chapter 17.
Multiple server queues In particular, we look at M/M/k Need to find steady state probabilities.
CSE 221: Probabilistic Analysis of Computer Systems Topics covered: Simple queuing models (Sec )
Data Communication and Networks Lecture 13 Performance December 9, 2004 Joseph Conron Computer Science Department New York University
Probability theory 2011 Outline of lecture 7 The Poisson process  Definitions  Restarted Poisson processes  Conditioning in Poisson processes  Thinning.
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 14-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 14.
HW # Due Day: Nov 23.
QUEUING MODELS Queuing theory is the analysis of waiting lines It can be used to: –Determine the # checkout stands to have open at a store –Determine the.
Chapter 9: Queuing Models
Lecture 14 – Queuing Systems
Queuing Models and Capacity Planning
Introduction to Management Science
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
1 Queuing Analysis Overview What is queuing analysis? - to study how people behave in waiting in line so that we could provide a solution with minimizing.
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
1 Queuing Models Dr. Mahmoud Alrefaei 2 Introduction Each one of us has spent a great deal of time waiting in lines. One example in the Cafeteria. Other.
1 Systems Analysis Methods Dr. Jerrell T. Stracener, SAE Fellow SMU EMIS 5300/7300 NTU SY-521-N NTU SY-521-N SMU EMIS 5300/7300 Queuing Modeling and Analysis.
Traffic Flow Fundamentals
Structure of a Waiting Line System Queuing theory is the study of waiting lines Four characteristics of a queuing system: –The manner in which customers.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
1 1 Slide Chapter 12 Waiting Line Models n The Structure of a Waiting Line System n Queuing Systems n Queuing System Input Characteristics n Queuing System.
Queuing Models.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
1 BIS 3106: Business Process Management (BPM) Lecture Nine: Quantitative Process Analysis (2) Makerere University School of Computing and Informatics Technology.
Managerial Decision Making Chapter 13 Queuing Models.
Modeling the Optimization of a Toll Booth Plaza By Liam Connell, Erin Hoover and Zach Schutzman Figure 1. Plot of k values and outputs from Erlang’s Formula.
OPERATING SYSTEMS CS 3502 Fall 2017
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All rights reserved.
Models of Traffic Flow 1.
Queueing Theory What is a queue? Examples of queues:
2.7: Simulation.
Management of Waiting Lines
Chapter 9: Queuing Models
Demo on Queuing Concepts
Lecture on Markov Chain
Birth-Death Process Birth – arrival of a customer to the system
Chapter 6 Queuing Models.
Solutions Queueing Theory 1
Delays Deterministic Stochastic Assumes “error free” type case
System Performance: Queuing
MATS Quantitative Methods Dr Huw Owens
TexPoint fonts used in EMF.
COMP60611 Fundamentals of Parallel and Distributed Systems
COMP60621 Designing for Parallelism
COMP60611 Fundamentals of Parallel and Distributed Systems
Queuing Theory By: Brian Murphy.
Queuing Analysis Two analytical techniques can be employed to study queuing processes: Shock wave analysis Demand-capacity process is deterministic Suited.
COMP60621 Fundamentals of Parallel and Distributed Systems
Lecture 13 – Queuing Systems
Delays Deterministic Stochastic Assumes “error free” type case
COMP60621 Designing for Parallelism
Waiting Line Models Waiting takes place in virtually every productive process or service. Since the time spent by people and things waiting in line is.
Queuing Models J. Mercy Arokia Rani Assistant Professor
COMP60611 Fundamentals of Parallel and Distributed Systems
LECTURE 09 QUEUEING THEORY PART3
Course Description Queuing Analysis This queuing course
Kendall’s Notation ❚ Simple way of summarizing the characteristics of a queue. Arrival characteristics / Departure characteristics / Number of servers.
VIRTUE MARYLEE MUGURACHANI QUEING THEORY BIRTH and DEATH.
Presentation transcript:

COMP60621 Designing for Parallelism Lecture 8 Queueing Theory: Part 2 John Gurd, Graham Riley Centre for Novel Computing School of Computer Science University of Manchester

Analysis of M/M/1 Queue Diagrammatic representation of the queue at any particular time: queue service queue service XXXX X - 4 in queue, none in queue, 1 being served none being served We wish to trace the queue behaviour over time and, hopefully, identify long-term steady-state characteristics. At time t, let N(t) be a random variable that describes the number (of customers) in the system. Q(t) is a related random variable that describes the number in the queue: 28 February 2019

Analysis of M/M/1 Queue N(t) increases by 1 with each arrival and decreases by 1 with each service completion. N(t) 5 4 3 2 1 A1 A2 A3 A4 A5 S1 A6 S2 S3 …… S6 t This diagram could represent a general G/G/1 queue. It will represent an M/M/1 queue if the inter-arrival times A2-A1, A3-A2, … and the service times S1-A1, S2-S1, S3-S2, … both satisfy negative exponential distributions. 28 February 2019

Analysis of M/M/1 Queue 28 February 2019

Analysis of M/M/1 Queue 28 February 2019

Analysis of M/M/1 Queue 28 February 2019

Analysis of M/M/1 Queue is referred to as the traffic intensity. 28 February 2019

Some Interesting Consequences 28 February 2019

Some Interesting Consequences 28 February 2019

Simple Example That’s a lot of theory! What does it all mean? Consider a TV repair shop. TVs arrive for repair at random at an average rate of 4 per day (assume an 8 hour day). A single repair service does the repairs; the average time for repair is 1.5 hours and repair times satisfy a negative exponential distribution. Arrivals:  = 0.5 (0.5 sets per hour in the 8 hour day) Service:  = 2/3 (0.667 repairs per working hour – the average repair time is 1/ = 1.5 working hours). 28 February 2019

TV Repair Shop Example 0 2 4 6 8 10 28 February 2019

TV Repair Shop Characteristics Hence, traffic intensity ρ = / = 0.5/0.667 = 0.75 (75%). Expected number of TV sets in system = L = ρ/(1 – ρ) = 0.75/0.25 = 3.00. Expected number of TV sets in queue = L – ρ = 2.25. Mean queueing time = /{( – )} = 0.5/{0.67(0.67 – 0.5)} = 0.5/{0.667*0.183} = 4.5 hours. Mean time in system = 1/( – ) = 1/(0.667 – 0.5) = 6 hours. 28 February 2019

TV Repair Shop Characteristics 28 February 2019

Analysis of M/M/k Queue We have shown how to analyse a very simple system: M/M/1 queue We now consider a more challenging and more concurrent scenario: M/M/k queue Arrival of Customers 28 February 2019

System Characteristics Arrivals: Customers arrive, at random, at a rate ; i.e. random arrivals with inter-arrival time a random variable having a negative exponential distribution with parameter . They form a single queue for the multiple servers. Service: Served by one of k service points, each having a service time which is a random variable having a negative exponential distribution with parameter  (the same for all k service points). Assuming that  < k (the arrival rate is less than the cumulative service rate), there exists a steady state solution. 28 February 2019

Analysis of M/M/k Queue

Analysis of M/M/k Queue 28 February 2019

Analysis of M/M/k Queue 28 February 2019

Simple Example (See Sasieni, Yaspan & Friedman, 1959) An insurance company has two claims adjusters in its branch office. People with claims arrive in Poisson fashion at an average rate of 20 per 8 hour working day. The length of time an adjuster spends with each claimant satisfies a negative exponential distribution with a mean service time of 40 minutes. What is the average time in the queue and what is the average time in the system? How would these characteristics change if the company employed an extra claims adjuster? Arrivals:  = 2.5 (2.5 claimants per hour in the 8 hour day) Service:  = 1.5 (1.5 claims per working hour – the average service time is 1/ = 0.667 working hours). 28 February 2019

Characteristics 28 February 2019

Characteristics 28 February 2019

Effect of an Extra Adjuster 28 February 2019

Effect of an Extra Adjuster 28 February 2019

Effect of an Extra Adjuster The insurance company might be more interested in how busy the claims adjusters are! As an exercise in understanding all this mathematics, work out the fraction of time that all the adjusters are busy (in other words, there are k or more customers in the system). Also, work out the fraction of time that an adjuster can expect not to be busy (this is a bit more difficult to express, but everything that is needed is in the equations). 28 February 2019

Recap Queueing systems occur in many different situations in real life, and it is frequently necessary to anticipate the way that such systems will behave in practical scenarios. We have introduced queueing theory as a useful vehicle for analysing the behaviour of (relatively simple) queueing systems. The mathematics is characterised by finding steady state solutions to systems of equations: Answers are probabilistic Mathematics is complicated 28 February 2019