exact analysis of some split-merge queues

47

Upload: pierre-m-fiorini-phd

Post on 16-Aug-2015

150 views

Category:

Engineering


5 download

TRANSCRIPT

Page 1: Exact Analysis of Some Split-Merge Queues
Page 2: Exact Analysis of Some Split-Merge Queues

Exact Analysis of Some Split-Merge Queues

Lester LipskyComputer Science & Engineering

University of Connecticut

Pierre FioriniCF Search

Portsmouth, NH

Page 3: Exact Analysis of Some Split-Merge Queues

Contents• Introduction

– Synchronized Queues• Fork-Join Queues• Split-Merge Queues

• Related Work– Research Strategies– Harrison & Zertal (2003)– Lebrecht & Knottenbelt (2007)– Tsimashenka & Knottenbelt (2014)

• Background– Order Statistics

• Homogenous• Heterogeneous

– Matrix Exponential Distributions• Matrix Exponential Functions• Homogenous Order Statistics• Heterogeneous Order Statistics• Joint Distributions

– M/G/1 Queues• PK Formula• Stationary Queue Length

Distribution• Response Time Distribution

• Examples of Split-Merge Queues– Homogeneous Split–Merge

Queues– Heterogeneous Split–Merge

Queues– Split–Merge Queues with

Subtask Failure & Repair– Split–Merge Queues with a

Variable Number of Subtasks

Page 4: Exact Analysis of Some Split-Merge Queues

Introduction – Split-Merge Queues

• On arrival a job is split into n sub-tasks which are serviced in parallel. • Only when all the tasks finish servicing and have rejoined can the

next job start• A type of “synchronized” queue

Page 5: Exact Analysis of Some Split-Merge Queues

Introduction – Fork-Join Queues

• Incoming jobs are split on arrival for service by numerous servers and joined before departure

• Jobs can arrive at any time• Exact results only exist for N = 2

𝑇=12− 𝜌8

𝑥1− 𝜌

Nelson, R. & Tantawi, A. N. (1988).

Page 6: Exact Analysis of Some Split-Merge Queues

Introduction – Difference Between Fork-Join & Split-Merge Queues

• FJ – new jobs can arrive at any time

• SM – new jobs can only arrive after the last subtask finishes service

• This means SM provide upper-bound response time for FJ queues

• SM queues are “more synchronized”

Page 7: Exact Analysis of Some Split-Merge Queues

• Most researchers have used the EMOS (Expected Maximum Order Statistic) technique for the service time distribution

• Usually computed via numerical integration

• They have applied this to the M/G/1 queue and used the PK Formula to generate performance measures

Related Work – Research Strategies

𝑅E[max ( 𝑋1 , 𝑋 2,…, 𝑋𝑛)2]  

1−𝜌

Page 8: Exact Analysis of Some Split-Merge Queues

Related Work - Harrison & Zertal (2003)

• “Queueing Models with Maxima of Service Times”

• Found recursive way to compute the moments of o.s.– Identical + Non-Identical– Exact for exponential– Approximate for non-

exponential

• Applied results to analyze performance of RAID subsystems (exponential) for M/G/1 queues

Page 9: Exact Analysis of Some Split-Merge Queues

Related Work - Lebrecht & Knottenbelt (2007)

• “Response Time Approximations in Fork-Join Queues”

• A response time approximation of the fork-join queue is presented using EMOS

• Used to model performance of RAID

• Used various distributions for M/G/1 queues & heterogeneous servers

Page 10: Exact Analysis of Some Split-Merge Queues

Related Work – Tsimashenka & Knottenbelt (2014)

• “Trading off Subtask Dispersion and Response Time in Split-Merge Systems”

• Describe a methodology for managing the trade off between subtask dispersion and task response time

• That is, the time between the arrival of the first and last subtasks originating from a given task in the output buffer– The “Range”

• Used M/G/1 queue to generate performance measures

Page 11: Exact Analysis of Some Split-Merge Queues

ContributionsResearch Queueing

ModelsHomogenous

Order StatisticsHeterogeneous Order Statistics

Stationary Queue Length Distribution

Response Time Distribution

Unreliable SM Queues

Variable Subtasks

Harrison & Zertal (2003)

M/G/1 (PK Formula)

Exact for Exponential, Approximations

Exact for Exponential, Approximations

No results No results No results No results

Lebrecht & Knottenbelt (2007)

M/G/1 (PK Formula)

Numerical Integration

Approximations & Numerical Integration

No results No results No results No results

Tsimashenka & Knottenbelt (2014)

M/G/1 (PK Formula)

Not discussed Numerical Integration

No results No results No results No results

Fiorini & Lipsky (2015)

M/G/1, M/G/1/N, M/G/1//N, M/G/C, M/G/C//N, G/G/1//N

Markov Chain Markov Chain Explicit ME representation

Explicit ME representation

ME rep ME rep

Page 12: Exact Analysis of Some Split-Merge Queues

Background – Homogenous Order Statistics

F(x)X1

X2

X3

X4 X5

X(1)≤ X(2) ≤ X(3) ≤ X(4) ≤ X(5)

Randomly sample F(x)

Order sample by size…Parent Distribution

o.s. Distributions

Page 13: Exact Analysis of Some Split-Merge Queues

Background – Homogenous Order Statistics

Page 14: Exact Analysis of Some Split-Merge Queues

Background – Homogenous Order Statistics

• Interested in the Extremes• Maximum• Minimum

Page 15: Exact Analysis of Some Split-Merge Queues

Background – Homogenous Order Statistics

Page 16: Exact Analysis of Some Split-Merge Queues

Background – Heterogeneous Order Statistics

F1(x)X1

X2

X3

X4 X5

X(1)≤ X(2) ≤ X(3) ≤ X(4) ≤ X(5)

Randomly sample Fi(x)

Order sample by size…

F2(x)

Fn(x)Parent Distribution

Non-Identical o.s. Distributions

Page 17: Exact Analysis of Some Split-Merge Queues

Background – Heterogeneous Order Statistics

Let X1, X2, X3, … be the order statistics

The joint distribution is (Bapet & Beg 1989)

Page 18: Exact Analysis of Some Split-Merge Queues

Background – LAQTAny arbitrary pdf can be represented by an m-dimensional vector-matrix pair < p, B >

Let X be a matrix-exponential (ME) r.v. greater than or equal to 0. The cdf is

Let density function is

Moments can be computed by

Page 19: Exact Analysis of Some Split-Merge Queues

Background – LAQT (M/G/1)For the open M/G/1 queue, the stationary queue length probabilities are given by

where

Page 20: Exact Analysis of Some Split-Merge Queues

Background – LAQT (M/G/1)For the open M/G/1 queue, the mean queue length can be calculated by

or

Page 21: Exact Analysis of Some Split-Merge Queues

Background – LAQT (M/G/1)For the open M/G/1 queue, the response time distribution can be calculated by

Page 22: Exact Analysis of Some Split-Merge Queues

• Intuition…– Think of 4 tasks (i.e., “r.v.’s”) running concurrently…

• The 1st task finishes at t1

• The 2nd finishes at t2

– The maximum happens at X(4)

ME Order Statistics - Max

X(1)

X(2)

X(3)

X(4)

t1 t2 t3 t4

Page 23: Exact Analysis of Some Split-Merge Queues

ME Order StatisticsState Transition Diagram

max{B1, B2, B3, B4} 𝑩1⊕𝑩2⊕𝑩3⊕𝑩4

𝑩1⊕𝑩2 𝑩3⊕𝑩4𝑩1⊕𝑩3𝑩1⊕𝑩4𝑩2⊕𝑩3𝑩2⊕𝑩4

𝑩1 𝑩2 𝑩3 𝑩4

𝑩4

𝑩3 𝑩3

𝑩3𝑩2 𝑩3

𝑩4 𝑩2𝑩1𝑩2

𝑩3 𝑩4

𝑩2

𝑩2 𝑩2𝑩1

𝑩1

𝑩1𝑩3𝑩3 𝑩3

𝑩4 𝑩4 𝑩4

𝑩1

𝑩4

𝑩3

𝑩1

Page 24: Exact Analysis of Some Split-Merge Queues

ME Order Statistics – Markov Chainmax{B1, B2, B3, B4}

𝑩=¿

Page 25: Exact Analysis of Some Split-Merge Queues

ME Order Statistics - Max

Let X1, X2,…, Xn be independent (and possibly non-identical) ME distributed r.v.’s having CDF

Page 26: Exact Analysis of Some Split-Merge Queues

ME Order Statistics - Max

Page 27: Exact Analysis of Some Split-Merge Queues

ME Order Statistics - Max

Need to construct the M & P matrices…

Page 28: Exact Analysis of Some Split-Merge Queues

ME Order Statistics - Max

Page 29: Exact Analysis of Some Split-Merge Queues

ME Order Statistics - Max

Page 30: Exact Analysis of Some Split-Merge Queues

• Examples…

– Homogeneous split-merge queues – Heterogeneous split-merge queues – Split-Merge queues with unreliable subtasks– Variable number of subtasks

Examples of Split-Merge Queues

Page 31: Exact Analysis of Some Split-Merge Queues

• In this example, all subtasks are iid and have the same parent distribution,

• For now, we assume the following:– n = 2 subtasks (but, n can by any number)

– Subtasks are exponentially distributed with parameter m

Homogeneous Split-Merge Queues

Page 32: Exact Analysis of Some Split-Merge Queues

Homogeneous Split-Merge Queues

• Process rate matrix

• Service time matrix

• Density function, which is maximum of 2 exp r.v. with rate µ

Page 33: Exact Analysis of Some Split-Merge Queues

Homogeneous Split-Merge Queues• Mean response time (using the

PK Formula for M/G/1 queues)

• Response time distribution (pdf)

Page 34: Exact Analysis of Some Split-Merge Queues

Split-Merge vs. Fork-Join (n = 2)

(Nelson & Tantawi, 1988)

(Fiorini & Lipsky, 2015)

Mean upper-bound for FJ Queue, n = 2

Page 35: Exact Analysis of Some Split-Merge Queues

• Upper-Bound Response Time Distribution for Fork-Join queues where n = 2

Split-Merge vs. Fork-Join (n = 2)

Page 36: Exact Analysis of Some Split-Merge Queues

• Here we assume all subtasks are iid and have different parent distributions,

• We assume the following:– n = 2 subtasks (but, n can by any number)– Subtasks are exponentially distributed, where

Heterogeneous Split-Merge Queues

Page 37: Exact Analysis of Some Split-Merge Queues

Heterogeneous Split-Merge Queues

• Process rate matrix

• Service time matrix

• Density function of maximum o.s. of 2 non-identical exponential r.v.’s

Page 38: Exact Analysis of Some Split-Merge Queues

Heterogeneous Split-Merge Queues

• Mean response time (using the PK Formula) for M/G/1 queue

Page 39: Exact Analysis of Some Split-Merge Queues

• Suppose a subtask fails at rate a and is repaired at rate b

• Assume when subtask is in upstate, it completes at rate m

• The generator of this process is

Unreliable Split-Merge Queues

Page 40: Exact Analysis of Some Split-Merge Queues

• For n = 2, we have

Unreliable Split-Merge Queues

Page 41: Exact Analysis of Some Split-Merge Queues

• The mean response time turns out to be (using the PK formula) for the M/G/1 queue

Unreliable Split-Merge Queues

Page 42: Exact Analysis of Some Split-Merge Queues

• Other modeling factors…

– Subtasks can have different failure rates, – Subtasks can have different repair rates, – Subtasks can be a mixture of subtasks that fail and

those that don’t– Subtasks can have different recovery polices • prd, prs, etc.

Unreliable Split-Merge Queues

Page 43: Exact Analysis of Some Split-Merge Queues

Split-Merge Queues with Variable Number of Forked Subtasks

Page 44: Exact Analysis of Some Split-Merge Queues

• There is an a1p1 vector probability of 1 task being forked, a2p2 vector probability of 2 tasks, and so on…

Split-Merge Queues with Variable Number of Forked Subtasks

Page 45: Exact Analysis of Some Split-Merge Queues

SummaryResearch Queueing

ModelsHomogenous

Order StatisticsHeterogeneous Order Statistics

Stationary Queue Length Distribution

Response Time Distribution

Unreliable SM Queues

Variable Subtasks

Harrison & Zertal (2003)

M/G/1 (PK Formula)

Exact for Exponential, Approximations

Exact for Exponential, Approximations

No results No results No results No results

Lebrecht & Knottenbelt (2007)

M/G/1 (PK Formula)

Numerical Integration

Approximations & Numerical Integration

No results No results No results No results

Tsimashenka & Knottenbelt (2014)

M/G/1 (PK Formula)

Not discussed Numerical Integration

No results No results No results No results

Fiorini & Lipsky (2015)

M/G/1, M/G/1/N, M/G/1//N, M/G/C, M/G/C//N, G/G/1//N

Markov Chain Markov Chain Explicit ME representation

Explicit ME representation

ME rep ME rep

Page 46: Exact Analysis of Some Split-Merge Queues

• Study performance bounds of homogenous and heterogeneous fork-join queues– Use split-merge queues– Heavy-Tails?– Not well understood

• Unreliable split-merge queues– Subtasks can have different failure rates, – Subtasks can have different repair rates, – Subtasks can be a mixture of subtasks that fail and those that don’t– Subtasks can have different recovery polices

• prd, prs, etc.

Future Work

Page 47: Exact Analysis of Some Split-Merge Queues

Questions???