An Analysis of the Preemptive Repeat Queueing Discipline

Similar documents
M/G/1 and Priority Queueing

2905 Queueing Theory and Simulation PART III: HIGHER DIMENSIONAL AND NON-MARKOVIAN QUEUES

Queues and Queueing Networks

Chapter 1. Introduction. 1.1 Stochastic process

Continuous Time Processes

Exponential Distribution and Poisson Process

Probability and Statistics Concepts

Assignment 3 with Reference Solutions

The exponential distribution and the Poisson process

Chapter 2. Poisson Processes. Prof. Shun-Ren Yang Department of Computer Science, National Tsing Hua University, Taiwan

Queueing Theory. VK Room: M Last updated: October 17, 2013.

Queueing systems. Renato Lo Cigno. Simulation and Performance Evaluation Queueing systems - Renato Lo Cigno 1

Exercises Stochastic Performance Modelling. Hamilton Institute, Summer 2010

Basics of Stochastic Modeling: Part II

NATCOR: Stochastic Modelling

Solution: The process is a compound Poisson Process with E[N (t)] = λt/p by Wald's equation.

11 The M/G/1 system with priorities

Course Outline Introduction to Transportation Highway Users and their Performance Geometric Design Pavement Design

IEOR 6711, HMWK 5, Professor Sigman

P (L d k = n). P (L(t) = n),

2905 Queueing Theory and Simulation PART IV: SIMULATION

Chapter 2 Queueing Theory and Simulation

Queueing Systems: Lecture 3. Amedeo R. Odoni October 18, Announcements

M/G/1 and M/G/1/K systems

Contents Preface The Exponential Distribution and the Poisson Process Introduction to Renewal Theory

Queuing Theory. Using the Math. Management Science

Link Models for Circuit Switching

Renewal theory and its applications

Birth-Death Processes

BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS

System Simulation Part II: Mathematical and Statistical Models Chapter 5: Statistical Models

Lecture 20: Reversible Processes and Queues

Performance Modelling of Computer Systems

HW7 Solutions. f(x) = 0 otherwise. 0 otherwise. The density function looks like this: = 20 if x [10, 90) if x [90, 100]

Since D has an exponential distribution, E[D] = 0.09 years. Since {A(t) : t 0} is a Poisson process with rate λ = 10, 000, A(0.

Computer Systems Modelling

Figure 10.1: Recording when the event E occurs

WORKING PAPER SLOAN SCHOOL OF MANAGEMENT MASSACHUSETTS ALFRED P. CAMBRIDGE, MASSACHUSETTS INSTITUTE OF TECHNOLOGY

Chapter 2. Poisson Processes

Computer Networks More general queuing systems

4.7 Finite Population Source Model

c~msshset ea::-institut OFs TECH-~-~~ENOLGY~ wor :: :a:.-p i ': ----.: _- ; ; - L i: : ; - i. ; i.. i.. r - - i-; i. -.?. _'.: :: : '.

M/G/1 queues and Busy Cycle Analysis

Queueing Theory and Simulation. Introduction

Solutions to COMP9334 Week 8 Sample Problems

Part I Stochastic variables and Markov chains

A Study on M x /G/1 Queuing System with Essential, Optional Service, Modified Vacation and Setup time

Networking = Plumbing. Queueing Analysis: I. Last Lecture. Lecture Outline. Jeremiah Deng. 29 July 2013

Notes on Continuous Random Variables

Quiz Queue II. III. ( ) ( ) =1.3333

Advanced Computer Networks Lecture 3. Models of Queuing

Class 11 Non-Parametric Models of a Service System; GI/GI/1, GI/GI/n: Exact & Approximate Analysis.

Sampling Distributions

Intro to Queueing Theory

Lecture 9: Deterministic Fluid Models and Many-Server Heavy-Traffic Limits. IEOR 4615: Service Engineering Professor Whitt February 19, 2015

BRAVO for QED Queues

EE 368. Weeks 3 (Notes)

Chapter 10. Queuing Systems. D (Queuing Theory) Queuing theory is the branch of operations research concerned with waiting lines.

PROBABILITY DISTRIBUTIONS

Introduction to Queueing Theory

Chapter 8 Queuing Theory Roanna Gee. W = average number of time a customer spends in the system.

Simple queueing models

Buzen s algorithm. Cyclic network Extension of Jackson networks

Queueing Theory I Summary! Little s Law! Queueing System Notation! Stationary Analysis of Elementary Queueing Systems " M/M/1 " M/M/m " M/M/1/K "

The Timing Capacity of Single-Server Queues with Multiple Flows

Part II: continuous time Markov chain (CTMC)

Markov processes and queueing networks

Introduction to Queueing Theory

Sampling Distributions

CHAPTER-5 PERFORMANCE ANALYSIS OF AN M/M/1/K QUEUE WITH PREEMPTIVE PRIORITY

Computer Systems Modelling

10.2 For the system in 10.1, find the following statistics for population 1 and 2. For populations 2, find: Lq, Ls, L, Wq, Ws, W, Wq 0 and SL.

PBW 654 Applied Statistics - I Urban Operations Research

SQF: A slowdown queueing fairness measure

Classification of Queuing Models

THE QUEEN S UNIVERSITY OF BELFAST

Stationary remaining service time conditional on queue length

Renewal processes and Queues

MATH 56A: STOCHASTIC PROCESSES CHAPTER 6

LIMITS AND APPROXIMATIONS FOR THE M/G/1 LIFO WAITING-TIME DISTRIBUTION

Laplace Transforms of Busy Periods in Queues

A Fuzzy Approach to Priority Queues

Stochastic Models of Manufacturing Systems

Queuing Theory and Stochas St t ochas ic Service Syste y ms Li Xia

Introduction to Queueing Theory

Stochastic Simulation Discrete simulation/event-by-event

Slides 9: Queuing Models

Can Determinacy Minimize Age of Information?

A Queueing System with Queue Length Dependent Service Times, with Applications to Cell Discarding in ATM Networks

CDA5530: Performance Models of Computers and Networks. Chapter 4: Elementary Queuing Theory

QUEUING MODELS AND MARKOV PROCESSES

Review of Queuing Models

Introduction to Queueing Theory with Applications to Air Transportation Systems

Outline. Finite source queue M/M/c//K Queues with impatience (balking, reneging, jockeying, retrial) Transient behavior Advanced Queue.

Introduction to Queuing Networks Solutions to Problem Sheet 3

Fuzzy Queues with Priority Discipline

IE 336 Seat # Name (one point) < KEY > Closed book. Two pages of hand-written notes, front and back. No calculator. 60 minutes.

ESTIMATING WAITING TIMES WITH THE TIME-VARYING LITTLE S LAW

Systems Simulation Chapter 6: Queuing Models

Section 1.2: A Single Server Queue

Transcription:

An Analysis of the Preemptive Repeat Queueing Discipline Tony Field August 3, 26 Abstract An analysis of two variants of preemptive repeat or preemptive repeat queueing discipline is presented: one in which the preempted customer s service time distribution is re-sampled when the customer rejoins service, and one where the service time at each subsequent visit is the same. The two variants are not the same, even for the exponential distribution. 1 Preemptive Repeat Different With exponentially-distributed service times, the preemptive repeat policy is identical to the preemptive resume policy, because the residual service time distribution is the same as that of the original service time. Consider the problem of determining the distribution of the number of visits made to the server. At each visit the customer is preempted if the time to the next arrival is smaller than the time to completion. Because the service demand at each visit is recomputed resampling the successive service times are independent. Let N the number of visits made to the server by a customer. Because of the independence assumption the probability that a customer will be preempted during their service time is simply /λ+ where λ and are the arrival rate and service rate respectively. N thus has a geometric distribution with n 1 λ PN n λ + λ + n λ λ λ + The mean number of visits is EN λ + / and the variance is V N λ + λ/ 2. 1

2 Preemptive Repeat Identical If the service time distribution is sampled once for each customer and the identical time re-used at each visit to the server, then the successive service times seen by the server are no longer independent. Consider again the problem of determining the distribution of the number of visits made to the server and the specific case of exponentially-distributed inter-arrival and service times, with rates λ and respectively. Let S denote the service time random variable and N the number of visits made to the server by a customer. Let I denote the inter-arrival times of new customers. Because the inter-arrival times are independent of the service times the probability that a customer whose service time is s is preempted is PI s 1 e λs. The number of visits made by a customer whose service time is t is thus geometrically distributed with parameter e λt : Now, deconditioning on t, PN n t 1 e λt n 1 e λt PN n PN n t e t e λ+t 1 e λt n 1 for n 1. This is messy, but the integral can be reduced to a sum, thus: PN n n 1 i n 1 i e λ+t 1 e λt n 1 n 1 e λ+t 1 i n 1 i 1 i n 1 i i 1 i n 1 i i + 1λ + e iλt e i+1λ+ 2.1 Mean Number of Server Visits The mean number of visits to the server is given by EN n n1 n1 e λ+t 1 e λt n 1 e λ+t n 1 e λt n 1 2

Let u be any function of t with a t b for some a and b and assume that u < 1, a t b. Then Similarly, note also that nu n 1 d du un n1 n1 d u n du nu n n1 n1 1 1 u 2 which will be useful later on. Thus n 1 e λt n 1 and n1 EN λ u 1 u 2 e 2λt e λ+t e 2λt 2.2 Variance of the Number of Server Visits Putting u 1 e λt, the second moment of N is given by EN 2 n 2 e λ+t u n 1 n1 The summation can be simplified thus: n 2 u n 1 n1 e λ+t n 2 u n 1 n1 nnu n 1 n1 n d n1 d du 3 du un nu n n1

d u du 1 u 2 1 + u 1 u 3 Expanding u, EN 2 therefore simplifies to Thus we obtain, EN 2 e λ+t 2 e λt e 3λt 2 e 2λt [ ] 2 2λ e 2λt + 2 2λ λ 2 λ 2λ V N EN 2 EN 2 2 λ 2λ λ 2 λ 2 2λ e λt [ ] λ e λt 2 λ The most curious aspect of this result is that the variance of the number of visits is undefined when 2λ. Compare this with the usual stability condition for the M/M/1 queue, for example. Thus, for λ < 2λ the variance of the number of server visits is infinite, even though the mean is finite, and the service process has many of the characteristics of a heavy-tailed distribution. Simulating this queue as approaches 2λ from above is notoriously difficult as the system is subject to rare events. 2.3 Dilated Service Time Because a customer may make several visits to the server, each with the same service demand, the total time spent at the server will, on average, be greater than the initial demand. The mean total time spent at the server comprises the sum of a number of inter-arrival times and the final service demand, which is satisfied exactly once without interruption. The probability that a customer makes n visits to the server, n >, is known from above. We will call the first n 1 interrupted visits failed visits. 4

Each inter-arrival time is conditioned on the fact that it is smaller than the service demand, otherwise the customer would have completed service. If t is the service demand and I t is the random variable denoting inter-arrival times smaller than t, the density function for I t is that of a normalised exponential distribution, given by: f t x λe λx 1 e λt Let T be the total time spent at the server during its failed visits, i.e. prior to the customer s final visit, when its service demand is finally satisfied. The mean total time spent at the server is then ET + 1. To compute ET we will first derive Ls, the Laplace Transform of f T x, the density function of T. Then, [ ] d ET ds Ls s The distribution of T is made up of a convolution of normalised exponentials, in the above sense, weighted by the visit count probability distribution, and deconditioned on the service demand. Beginning with the normalised exponentials, the Laplace Transform of f t x above is given by L t s Putting it all together, we obtain: t t λ λ + s e sx f t xdx sx λe λx e 1 e λt 1 e λ+st 1 e λt Ls e t PN n Lt s n 1 n1 e t n1 1 e λt n 1 e λt λ λ + s λ1 e e λ+t λ+st n λ + s n e λ+t λ + s s + λe λ+st 1 e λ+st n 1 1 e λt In principle, it is possible to invert this numerically to derive f T x, but here we will focus on deriving the mean, ET. Differentiating Ls with respect to 5

s, we obtain d ds Ls d ds [ Setting s we obtain ET e λ+t λ + s s + λe λ+st e λ+t λ ] s + λe λ+st λ + s1 λte λ+st s + λe λ+st 2 e λ+t λe λt λ1 λte λt λe λt 2 e λ+t e λt e 2λt + λte λt 1 λ λ 1 λ 2 1 λ 1 The total time spent at the server excluding the queueing time is thus 1/ λ. Extraordinarily, this is the same as the waiting time in an M/M/1 FIFO queue! 6