SlideShare a Scribd company logo
Exact Analysis of Some
Split-Merge Queues
Lester Lipsky
Computer Science & Engineering
University of Connecticut
Pierre Fiorini
CF Search
Portsmouth, NH
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
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
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).
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”
• 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 − 𝜌
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
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
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
Contributions
Research Queueing
Models
Homogenous
Order Statistics
Heterogeneous
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
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
Background – Homogenous Order Statistics
Background – Homogenous Order Statistics
• Interested in the Extremes
• Maximum
• Minimum
Background – Homogenous Order Statistics
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
Background – Heterogeneous Order Statistics
Let X1, X2, X3, … be the order statistics
The joint distribution is (Bapet & Beg 1989)
Background – LAQT
Any 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
Background – LAQT (M/G/1)
For the open M/G/1 queue, the stationary queue length
probabilities are given by
where
Background – LAQT (M/G/1)
For the open M/G/1 queue, the mean queue length can be
calculated by
or
Background – LAQT (M/G/1)
For the open M/G/1 queue, the response time distribution
can be calculated by
• 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
ME Order Statistics
State Transition Diagram
max{B1, B2, B3, B4} 𝑩1 ⊕ 𝑩2 ⊕ 𝑩3 ⊕ 𝑩4
𝑩1 ⊕ 𝑩2 ⊕ 𝑩3 𝑩1 ⊕ 𝑩2 ⊕ 𝑩4 𝑩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 ⊕ 𝑩3 ⊕ 𝑩4
𝑩1
𝑩4
𝑩3
𝑩1
ME Order Statistics – Markov Chain
max{B1, B2, B3, B4}
𝑩 =
ME Order Statistics - Max
Let X1, X2,…, Xn be independent (and possibly non-identical)
ME distributed r.v.’s having CDF
ME Order Statistics - Max
ME Order Statistics - Max
Need to construct the M & P matrices…
ME Order Statistics - Max
ME Order Statistics - Max
• Examples…
– Homogeneous split-merge queues
– Heterogeneous split-merge queues
– Split-Merge queues with unreliable subtasks
– Variable number of subtasks
Examples of 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
Homogeneous Split-Merge Queues
• Process rate matrix
• Service time matrix
• Density function, which
is maximum of 2 exp r.v.
with rate µ
Homogeneous Split-Merge Queues
• Mean response time (using
the PK Formula for M/G/1
queues)
• Response time distribution (pdf)
Split-Merge vs. Fork-Join (n = 2)
(Nelson & Tantawi, 1988)
(Fiorini & Lipsky, 2015)
Mean upper-bound for FJ Queue, n = 2
• Upper-Bound Response Time Distribution for
Fork-Join queues where n = 2
Split-Merge vs. Fork-Join (n = 2)
• 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
𝜇1 ≠ 𝜇2
Heterogeneous 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
Heterogeneous Split-Merge Queues
• Mean response time (using the PK Formula) for
M/G/1 queue
• 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
• For n = 2, we have
Unreliable 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
• 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
Split-Merge Queues with Variable
Number of Forked Subtasks
• 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
Summary
Research Queueing
Models
Homogenous
Order Statistics
Heterogeneous
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
• 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
Questions???

More Related Content

What's hot

Chap7 slides
Chap7 slidesChap7 slides
Chap7 slides
BaliThorat1
 
Chap1 slides
Chap1 slidesChap1 slides
Chap1 slides
BaliThorat1
 
A novel approach for high speed convolution of finite
A novel approach for high speed convolution of finiteA novel approach for high speed convolution of finite
A novel approach for high speed convolution of finite
eSAT Publishing House
 
A novel approach for high speed convolution of finite and infinite length seq...
A novel approach for high speed convolution of finite and infinite length seq...A novel approach for high speed convolution of finite and infinite length seq...
A novel approach for high speed convolution of finite and infinite length seq...
eSAT Journals
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithms
Danish Javed
 
Chap6 slides
Chap6 slidesChap6 slides
Chap6 slides
BaliThorat1
 
Analysis of Multi Level Feedback Queue Scheduling Using Markov Chain Model wi...
Analysis of Multi Level Feedback Queue Scheduling Using Markov Chain Model wi...Analysis of Multi Level Feedback Queue Scheduling Using Markov Chain Model wi...
Analysis of Multi Level Feedback Queue Scheduling Using Markov Chain Model wi...
Eswar Publications
 
Lecture 4 principles of parallel algorithm design updated
Lecture 4   principles of parallel algorithm design updatedLecture 4   principles of parallel algorithm design updated
Lecture 4 principles of parallel algorithm design updated
Vajira Thambawita
 
Module 2 Design Analysis and Algorithms
Module 2 Design Analysis and AlgorithmsModule 2 Design Analysis and Algorithms
Module 2 Design Analysis and Algorithms
Cool Guy
 
Chapter 3 pc
Chapter 3 pcChapter 3 pc
Chapter 3 pc
Hanif Durad
 
PRAM algorithms from deepika
PRAM algorithms from deepikaPRAM algorithms from deepika
PRAM algorithms from deepika
guest1f4fb3
 
新たなRNNと自然言語処理
新たなRNNと自然言語処理新たなRNNと自然言語処理
新たなRNNと自然言語処理
hytae
 
A Hybrid Method of CART and Artificial Neural Network for Short Term Load For...
A Hybrid Method of CART and Artificial Neural Network for Short Term Load For...A Hybrid Method of CART and Artificial Neural Network for Short Term Load For...
A Hybrid Method of CART and Artificial Neural Network for Short Term Load For...
Salford Systems
 
Lecture 2 more about parallel computing
Lecture 2   more about parallel computingLecture 2   more about parallel computing
Lecture 2 more about parallel computing
Vajira Thambawita
 
Tri Merge Sorting Algorithm
Tri Merge Sorting AlgorithmTri Merge Sorting Algorithm
Tri Merge Sorting Algorithm
Ashim Sikder
 
Parallelizing Pruning-based Graph Structural Clustering
Parallelizing Pruning-based Graph Structural ClusteringParallelizing Pruning-based Graph Structural Clustering
Parallelizing Pruning-based Graph Structural Clustering
煜林 车
 
High speed multiplier using vedic mathematics
High speed multiplier using vedic mathematicsHigh speed multiplier using vedic mathematics
High speed multiplier using vedic mathematics
eSAT Publishing House
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
Oğuzhan TAŞ Akademi
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithmsguest084d20
 

What's hot (20)

Chap7 slides
Chap7 slidesChap7 slides
Chap7 slides
 
Chap1 slides
Chap1 slidesChap1 slides
Chap1 slides
 
A novel approach for high speed convolution of finite
A novel approach for high speed convolution of finiteA novel approach for high speed convolution of finite
A novel approach for high speed convolution of finite
 
A novel approach for high speed convolution of finite and infinite length seq...
A novel approach for high speed convolution of finite and infinite length seq...A novel approach for high speed convolution of finite and infinite length seq...
A novel approach for high speed convolution of finite and infinite length seq...
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithms
 
Chap6 slides
Chap6 slidesChap6 slides
Chap6 slides
 
Analysis of Multi Level Feedback Queue Scheduling Using Markov Chain Model wi...
Analysis of Multi Level Feedback Queue Scheduling Using Markov Chain Model wi...Analysis of Multi Level Feedback Queue Scheduling Using Markov Chain Model wi...
Analysis of Multi Level Feedback Queue Scheduling Using Markov Chain Model wi...
 
Lecture 4 principles of parallel algorithm design updated
Lecture 4   principles of parallel algorithm design updatedLecture 4   principles of parallel algorithm design updated
Lecture 4 principles of parallel algorithm design updated
 
Module 2 Design Analysis and Algorithms
Module 2 Design Analysis and AlgorithmsModule 2 Design Analysis and Algorithms
Module 2 Design Analysis and Algorithms
 
Chapter 3 pc
Chapter 3 pcChapter 3 pc
Chapter 3 pc
 
PRAM algorithms from deepika
PRAM algorithms from deepikaPRAM algorithms from deepika
PRAM algorithms from deepika
 
Parallel Algorithms
Parallel AlgorithmsParallel Algorithms
Parallel Algorithms
 
新たなRNNと自然言語処理
新たなRNNと自然言語処理新たなRNNと自然言語処理
新たなRNNと自然言語処理
 
A Hybrid Method of CART and Artificial Neural Network for Short Term Load For...
A Hybrid Method of CART and Artificial Neural Network for Short Term Load For...A Hybrid Method of CART and Artificial Neural Network for Short Term Load For...
A Hybrid Method of CART and Artificial Neural Network for Short Term Load For...
 
Lecture 2 more about parallel computing
Lecture 2   more about parallel computingLecture 2   more about parallel computing
Lecture 2 more about parallel computing
 
Tri Merge Sorting Algorithm
Tri Merge Sorting AlgorithmTri Merge Sorting Algorithm
Tri Merge Sorting Algorithm
 
Parallelizing Pruning-based Graph Structural Clustering
Parallelizing Pruning-based Graph Structural ClusteringParallelizing Pruning-based Graph Structural Clustering
Parallelizing Pruning-based Graph Structural Clustering
 
High speed multiplier using vedic mathematics
High speed multiplier using vedic mathematicsHigh speed multiplier using vedic mathematics
High speed multiplier using vedic mathematics
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithms
 

Similar to Exact Analysis of Some Split-Merge Queues

Topology for data science
Topology for data scienceTopology for data science
Topology for data science
Colleen Farrelly
 
Queuing theory and traffic analysis in depth
Queuing theory and traffic analysis in depthQueuing theory and traffic analysis in depth
Queuing theory and traffic analysis in depth
IdcIdk1
 
Clustering - ACM 2013 02-25
Clustering - ACM 2013 02-25Clustering - ACM 2013 02-25
Clustering - ACM 2013 02-25
MapR Technologies
 
05 k-means clustering
05 k-means clustering05 k-means clustering
05 k-means clustering
Subhas Kumar Ghosh
 
[Paper Reading] Attention is All You Need
[Paper Reading] Attention is All You Need[Paper Reading] Attention is All You Need
[Paper Reading] Attention is All You Need
Daiki Tanaka
 
In-class slides with activities
In-class slides with activitiesIn-class slides with activities
In-class slides with activities
SERC at Carleton College
 
Neural machine translation by jointly learning to align and translate.pptx
Neural machine translation by jointly learning to align and translate.pptxNeural machine translation by jointly learning to align and translate.pptx
Neural machine translation by jointly learning to align and translate.pptx
ssuser2624f71
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
Girish Khanzode
 
Comparing Different Job Scheduling Heuristics
Comparing Different Job Scheduling HeuristicsComparing Different Job Scheduling Heuristics
Comparing Different Job Scheduling Heuristics
Radu Stoenescu
 
2017:12:06 acl読み会"Learning attention for historical text normalization by lea...
2017:12:06 acl読み会"Learning attention for historical text normalization by lea...2017:12:06 acl読み会"Learning attention for historical text normalization by lea...
2017:12:06 acl読み会"Learning attention for historical text normalization by lea...
ayaha osaki
 
Applied Stochastic Processes, Chaos Modeling, and Probabilistic Properties of...
Applied Stochastic Processes, Chaos Modeling, and Probabilistic Properties of...Applied Stochastic Processes, Chaos Modeling, and Probabilistic Properties of...
Applied Stochastic Processes, Chaos Modeling, and Probabilistic Properties of...
e2wi67sy4816pahn
 
Mining the social web 6
Mining the social web 6Mining the social web 6
Mining the social web 6
HyeonSeok Choi
 
KNN
KNNKNN
Hadoop map reduce concepts
Hadoop map reduce conceptsHadoop map reduce concepts
Hadoop map reduce concepts
Subhas Kumar Ghosh
 
Sparksummitny2016
Sparksummitny2016Sparksummitny2016
Sparksummitny2016
Ram Sriharsha
 
Oxford 05-oct-2012
Oxford 05-oct-2012Oxford 05-oct-2012
Oxford 05-oct-2012
Ted Dunning
 
Binary Similarity : Theory, Algorithms and Tool Evaluation
Binary Similarity :  Theory, Algorithms and  Tool EvaluationBinary Similarity :  Theory, Algorithms and  Tool Evaluation
Binary Similarity : Theory, Algorithms and Tool Evaluation
Liwei Ren任力偉
 
Data streaming algorithms
Data streaming algorithmsData streaming algorithms
Data streaming algorithms
Sandeep Joshi
 

Similar to Exact Analysis of Some Split-Merge Queues (20)

Topology for data science
Topology for data scienceTopology for data science
Topology for data science
 
Queuing theory and traffic analysis in depth
Queuing theory and traffic analysis in depthQueuing theory and traffic analysis in depth
Queuing theory and traffic analysis in depth
 
Clustering - ACM 2013 02-25
Clustering - ACM 2013 02-25Clustering - ACM 2013 02-25
Clustering - ACM 2013 02-25
 
05 k-means clustering
05 k-means clustering05 k-means clustering
05 k-means clustering
 
[Paper Reading] Attention is All You Need
[Paper Reading] Attention is All You Need[Paper Reading] Attention is All You Need
[Paper Reading] Attention is All You Need
 
In-class slides with activities
In-class slides with activitiesIn-class slides with activities
In-class slides with activities
 
Neural machine translation by jointly learning to align and translate.pptx
Neural machine translation by jointly learning to align and translate.pptxNeural machine translation by jointly learning to align and translate.pptx
Neural machine translation by jointly learning to align and translate.pptx
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
 
Comparing Different Job Scheduling Heuristics
Comparing Different Job Scheduling HeuristicsComparing Different Job Scheduling Heuristics
Comparing Different Job Scheduling Heuristics
 
2017:12:06 acl読み会"Learning attention for historical text normalization by lea...
2017:12:06 acl読み会"Learning attention for historical text normalization by lea...2017:12:06 acl読み会"Learning attention for historical text normalization by lea...
2017:12:06 acl読み会"Learning attention for historical text normalization by lea...
 
Presentation
PresentationPresentation
Presentation
 
Applied Stochastic Processes, Chaos Modeling, and Probabilistic Properties of...
Applied Stochastic Processes, Chaos Modeling, and Probabilistic Properties of...Applied Stochastic Processes, Chaos Modeling, and Probabilistic Properties of...
Applied Stochastic Processes, Chaos Modeling, and Probabilistic Properties of...
 
Mining the social web 6
Mining the social web 6Mining the social web 6
Mining the social web 6
 
KNN
KNNKNN
KNN
 
Hadoop map reduce concepts
Hadoop map reduce conceptsHadoop map reduce concepts
Hadoop map reduce concepts
 
Sparksummitny2016
Sparksummitny2016Sparksummitny2016
Sparksummitny2016
 
Query processing System
Query processing SystemQuery processing System
Query processing System
 
Oxford 05-oct-2012
Oxford 05-oct-2012Oxford 05-oct-2012
Oxford 05-oct-2012
 
Binary Similarity : Theory, Algorithms and Tool Evaluation
Binary Similarity :  Theory, Algorithms and  Tool EvaluationBinary Similarity :  Theory, Algorithms and  Tool Evaluation
Binary Similarity : Theory, Algorithms and Tool Evaluation
 
Data streaming algorithms
Data streaming algorithmsData streaming algorithms
Data streaming algorithms
 

Recently uploaded

HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 

Recently uploaded (20)

HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 

Exact Analysis of Some Split-Merge Queues

  • 1.
  • 2. Exact Analysis of Some Split-Merge Queues Lester Lipsky Computer Science & Engineering University of Connecticut Pierre Fiorini CF Search Portsmouth, NH
  • 3. 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
  • 4. 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
  • 5. 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).
  • 6. 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”
  • 7. • 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 − 𝜌
  • 8. 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
  • 9. 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
  • 10. 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
  • 11. Contributions Research Queueing Models Homogenous Order Statistics Heterogeneous 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
  • 12. 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
  • 13. Background – Homogenous Order Statistics
  • 14. Background – Homogenous Order Statistics • Interested in the Extremes • Maximum • Minimum
  • 15. Background – Homogenous Order Statistics
  • 16. 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
  • 17. Background – Heterogeneous Order Statistics Let X1, X2, X3, … be the order statistics The joint distribution is (Bapet & Beg 1989)
  • 18. Background – LAQT Any 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
  • 19. Background – LAQT (M/G/1) For the open M/G/1 queue, the stationary queue length probabilities are given by where
  • 20. Background – LAQT (M/G/1) For the open M/G/1 queue, the mean queue length can be calculated by or
  • 21. Background – LAQT (M/G/1) For the open M/G/1 queue, the response time distribution can be calculated by
  • 22. • 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
  • 23. ME Order Statistics State Transition Diagram max{B1, B2, B3, B4} 𝑩1 ⊕ 𝑩2 ⊕ 𝑩3 ⊕ 𝑩4 𝑩1 ⊕ 𝑩2 ⊕ 𝑩3 𝑩1 ⊕ 𝑩2 ⊕ 𝑩4 𝑩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 ⊕ 𝑩3 ⊕ 𝑩4 𝑩1 𝑩4 𝑩3 𝑩1
  • 24. ME Order Statistics – Markov Chain max{B1, B2, B3, B4} 𝑩 =
  • 25. ME Order Statistics - Max Let X1, X2,…, Xn be independent (and possibly non-identical) ME distributed r.v.’s having CDF
  • 27. ME Order Statistics - Max Need to construct the M & P matrices…
  • 30. • Examples… – Homogeneous split-merge queues – Heterogeneous split-merge queues – Split-Merge queues with unreliable subtasks – Variable number of subtasks Examples of Split-Merge Queues
  • 31. • 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
  • 32. Homogeneous Split-Merge Queues • Process rate matrix • Service time matrix • Density function, which is maximum of 2 exp r.v. with rate µ
  • 33. Homogeneous Split-Merge Queues • Mean response time (using the PK Formula for M/G/1 queues) • Response time distribution (pdf)
  • 34. Split-Merge vs. Fork-Join (n = 2) (Nelson & Tantawi, 1988) (Fiorini & Lipsky, 2015) Mean upper-bound for FJ Queue, n = 2
  • 35. • Upper-Bound Response Time Distribution for Fork-Join queues where n = 2 Split-Merge vs. Fork-Join (n = 2)
  • 36. • 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 𝜇1 ≠ 𝜇2 Heterogeneous Split-Merge Queues
  • 37. Heterogeneous Split-Merge Queues • Process rate matrix • Service time matrix • Density function of maximum o.s. of 2 non- identical exponential r.v.’s
  • 38. Heterogeneous Split-Merge Queues • Mean response time (using the PK Formula) for M/G/1 queue
  • 39. • 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
  • 40. • For n = 2, we have Unreliable Split-Merge Queues
  • 41. • The mean response time turns out to be (using the PK formula) for the M/G/1 queue Unreliable Split-Merge Queues
  • 42. • 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
  • 43. Split-Merge Queues with Variable Number of Forked Subtasks
  • 44. • 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
  • 45. Summary Research Queueing Models Homogenous Order Statistics Heterogeneous 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
  • 46. • 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