cs 147 computer systems performance analysis
play

CS 147: Computer Systems Performance Analysis Introduction to - PowerPoint PPT Presentation

CS147 2015-06-15 CS 147: Computer Systems Performance Analysis Introduction to Queueing Theory CS 147: Computer Systems Performance Analysis Introduction to Queueing Theory 1 / 27 Overview CS147 Overview 2015-06-15 Introduction and


  1. CS147 2015-06-15 CS 147: Computer Systems Performance Analysis Introduction to Queueing Theory CS 147: Computer Systems Performance Analysis Introduction to Queueing Theory 1 / 27

  2. Overview CS147 Overview 2015-06-15 Introduction and Terminology Poisson Distributions Fundamental Results Stability Little’s Law M/M/* Overview M/M/1 M/M/m M/M/m/B Introduction and Terminology More General Queues Poisson Distributions Fundamental Results Stability Little’s Law M/M/* M/M/1 M/M/m M/M/m/B More General Queues 2 / 27

  3. Introduction and Terminology What is a Queueing System? CS147 What is a Queueing System? 2015-06-15 Introduction and Terminology ◮ A queueing system is any system in which things arrive, hang around for a while, and leave ◮ Examples ◮ A bank ◮ A freeway ◮ A (computer) network ◮ A beehive What is a Queueing System? ◮ The things that arrive and leave are customers or jobs ◮ Customers leave after receiving service ◮ Most queueing systems have (surprise!) a queue that can store (delay) customers awaiting service ◮ A queueing system is any system in which things arrive, hang around for a while, and leave ◮ Examples ◮ A bank ◮ A freeway ◮ A (computer) network ◮ A beehive ◮ The things that arrive and leave are customers or jobs ◮ Customers leave after receiving service ◮ Most queueing systems have (surprise!) a queue that can store (delay) customers awaiting service 3 / 27

  4. Introduction and Terminology Parameters of a Queueing System CS147 Parameters of a Queueing System 2015-06-15 Arrival Process Injects customers into system Introduction and Terminology ◮ Usually statistical ◮ Convenient to specify in terms of interarrival time distribution ◮ Most common is Poisson arrivals Service Time Also statistical Number of Servers Often 1 Parameters of a Queueing System System Capacity Equals number of servers plus queue capacity. Often assumed infinite for convenience Arrival Process Injects customers into system Population Maximum number of customers. Often assumed infinite Service Discipline How next customer is chosen for service. Often FCFS or priority ◮ Usually statistical ◮ Convenient to specify in terms of interarrival time distribution ◮ Most common is Poisson arrivals Service Time Also statistical Number of Servers Often 1 System Capacity Equals number of servers plus queue capacity. Often assumed infinite for convenience Population Maximum number of customers. Often assumed infinite Service Discipline How next customer is chosen for service. Often FCFS or priority 4 / 27

  5. Introduction and Terminology Arrival and Service Distributions CS147 Arrival and Service Distributions 2015-06-15 Introduction and Terminology ◮ Customer arrivals are random variables ◮ Next disk request from many processes ◮ Next packet hitting Google ◮ Next call to Chipotle ◮ Same is true for service times ◮ What distribution describes it? Arrival and Service Distributions ◮ May be complicated (fractal, Zipf) ◮ We often use Poisson for tractability ◮ Customer arrivals are random variables ◮ Next disk request from many processes ◮ Next packet hitting Google ◮ Next call to Chipotle ◮ Same is true for service times ◮ What distribution describes it? ◮ May be complicated (fractal, Zipf) ◮ We often use Poisson for tractability 5 / 27

  6. Introduction and Terminology Poisson Distributions The Poisson Distribution CS147 The Poisson Distribution 2015-06-15 ◮ Probability of exactly k arrivals in ( 0 , t ) is P k ( t ) = ( λ t ) k e λ t / k ! Introduction and Terminology ◮ λ is arrival rate parameter ◮ More useful formulation is Poisson arrival distribution : ◮ PDF A ( t ) = P [ next arrival takes time ≤ t ] = 1 − e − λ t Poisson Distributions ◮ pdf a ( t ) = λ e − λ t ◮ Also known as exponential or memoryless distribution ◮ Mean = standard deviation = λ ◮ Poisson distribution is memoryless The Poisson Distribution ◮ Assume P[arrival within 1 second] at time t 0 = x ◮ Then P[arrival within 1 second] at time t 1 > t 0 is also x ◮ I.e., no memory that time has passed ◮ Often true in real world ◮ Probability of exactly k arrivals in ( 0 , t ) is P k ( t ) = ( λ t ) k e λ t / k ! ◮ E.g., when I go to Von’s doesn’t affect when you go ◮ λ is arrival rate parameter ◮ More useful formulation is Poisson arrival distribution : ◮ PDF A ( t ) = P [ next arrival takes time ≤ t ] = 1 − e − λ t ◮ pdf a ( t ) = λ e − λ t ◮ Also known as exponential or memoryless distribution ◮ Mean = standard deviation = λ ◮ Poisson distribution is memoryless ◮ Assume P[arrival within 1 second] at time t 0 = x ◮ Then P[arrival within 1 second] at time t 1 > t 0 is also x ◮ I.e., no memory that time has passed ◮ Often true in real world ◮ E.g., when I go to Von’s doesn’t affect when you go 6 / 27

  7. Introduction and Terminology Poisson Distributions Splitting and Merging Poisson Processes CS147 Splitting and Merging Poisson Processes 2015-06-15 Introduction and Terminology ◮ Merging streams of Poisson events (e.g., arrivals) is Poisson k � Poisson Distributions λ = λ i i = 1 ◮ Splitting a Poisson stream randomly gives Poisson streams; if Splitting and Merging Poisson Processes stream i has probability p i , then λ i = p i λ ◮ Merging streams of Poisson events (e.g., arrivals) is Poisson k � λ = λ i i = 1 ◮ Splitting a Poisson stream randomly gives Poisson streams; if stream i has probability p i , then λ i = p i λ 7 / 27

  8. Introduction and Terminology Poisson Distributions Kendall’s Notation CS147 Kendall’s Notation 2015-06-15 A/S/m/B/K/D defines a (single) queueing system compactly: Introduction and Terminology A Denotes arrival distribution, as follows: M Exponential ( M emoryless) E k Erlang with parameter k D Deterministic Poisson Distributions G Completely general (very hard to analyze!) S Service distribution, same as arrival Kendall’s Notation m Number of servers A/S/m/B/K/D defines a (single) queueing system compactly: B System capacity; ∞ if omitted K Population size; ∞ if omitted D Service discipline, FCFS if omitted A Denotes arrival distribution, as follows: M Exponential ( M emoryless) E k Erlang with parameter k D Deterministic G Completely general (very hard to analyze!) S Service distribution, same as arrival m Number of servers B System capacity; ∞ if omitted K Population size; ∞ if omitted D Service discipline, FCFS if omitted 8 / 27

  9. Introduction and Terminology Poisson Distributions Examples of Kendall’s Notation CS147 Examples of Kendall’s Notation 2015-06-15 Introduction and Terminology D/D/1 Arrivals on clock tick, fixed service times, one server Poisson Distributions M/M/m Memoryless arrivals, memoryless service, multiple servers (good model of a bank) M/M/m/m Customers go away rather than wait in line Examples of Kendall’s Notation G/G/1 Modern disk drive D/D/1 Arrivals on clock tick, fixed service times, one server M/M/m Memoryless arrivals, memoryless service, multiple servers (good model of a bank) M/M/m/m Customers go away rather than wait in line G/G/1 Modern disk drive 9 / 27

  10. Introduction and Terminology Poisson Distributions Common Variables CS147 Common Variables 2015-06-15 Introduction and Terminology τ Interarrival time. Usually varies per customer, e.g., τ 1 , τ 2 , . . . λ Mean arrival rate: 1 /τ Poisson Distributions s i Service time for job i , sometimes called x i µ Mean service rate per server, 1 / s ρ Traffic intensity or system load = λ/ m µ . This is the Common Variables most important parameter in most queueing systems w i Waiting time, or time in queue: interval between arrival and beginning of service r i Response time = w i + s i τ Interarrival time. Usually varies per customer, e.g., τ 1 , τ 2 , . . . λ Mean arrival rate: 1 /τ s i Service time for job i , sometimes called x i µ Mean service rate per server, 1 / s ρ Traffic intensity or system load = λ/ m µ . This is the most important parameter in most queueing systems w i Waiting time, or time in queue: interval between arrival and beginning of service r i Response time = w i + s i 10 / 27

  11. Fundamental Results Stability Stability CS147 Stability 2015-06-15 Fundamental Results Stability ◮ A system is stable iff λ < m µ ≡ ρ < 1 ◮ Otherwise, system can’t keep up and queue grows to ∞ ◮ Exception: in D/D/ m , ρ = 1 is OK Stability ◮ A system is stable iff λ < m µ ≡ ρ < 1 ◮ Otherwise, system can’t keep up and queue grows to ∞ ◮ Exception: in D/D/ m , ρ = 1 is OK 11 / 27

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend