SlideShare a Scribd company logo
1 of 25
Download to read offline
ACM/SPEC ICPE 2016 - March14th, 2016
Weikun Wang (Imperial College London, UK)
Giuliano Casale (Imperial College London, UK)
Ajay Kattepur (TCS Innovation Labs, India)
Manoj Nambiar (TCS Innovation Labs, India)
Maximum Likelihood Estimation of
Closed Queueing Network
Demands from Queue Length Data
2
SPE & Model-Driven Engineering
Platform-Indep.
Model
Architecture
Model
Platform-Specific
Model
Performance
& Reliability Models
3
CQN Characterization
CPU-1
Time
Service
Demand
X X X
CPU-1
Mix 1 Mix 2 Mix 3
 Service demand of a request
 CPU time, bandwidth consumed, …
 Multi-threaded software
 e.g., web servers
4
Drawback of Existing methods
 Utilization based approaches
 Regression based on utilization and throughput
 Issues: collinearities, load-dependence, outliers,
utilization unreliable/unavailable, …
5
 State observations
 Dataset ( points):
 CQN State:
Queue length samples
6
 State observations
 Dataset ( points):
 CQN State:
Queue length samples
7
 Assume product-form state probabilities
 Computationally challenging to evaluate
 Maximum likelihood estimation?
 Infer demands with the probability
Queue length samples
Service demand
Normalizing constant
Queue length
8
 Maximum likelihood estimation (MLE)
 Problem with direct computation
 Evaluation of for each observation
 Slow due to the need for computing
 Very small probabilities when L is large
 Any other solution?
Maximum Likelihood Estimation
parameter space Likelihood
9
 A necessary condition for a point inside to
be a MLE is that
 How to find the MLE?
 Change the value of , until the mean queue
length predicted with MVA match
 Fixed point iteration or an optimization program
Maximum Likelihood Estimation
observed mean
queue length
theoretical mean
queue length
Only mean
queue length
is required!
10
Confidence Intervals
 Assume the MLE to be asymptotically normal
 Confidence intervals for the MLE demands
 is the Fisher Information matrix
 is the Hessian matrix
 works with mean queue length only!
 Obtained by using standard MVA, no probabilities!
11
QMLE Approximation
 Exact MLE can be found by direct search
 Fixed-point iteration tends to be effective
 A simple approximation of the MLE:
 Consider the demand vector where
 Then it must be
observed mean
queue length
12
Validation- Existing methods
 CI: Complete Information
[J.F. Perez et al., IEEE Trans. Sw. Eng.’15]
 Full knowledge of sample path
 Baseline approach
 ERPS: Extended Regression for Processor Sharing
[J.F. Perez et al., IEEE Trans. Sw. Eng.’15]
 Based on mean response time and arrival queue
 GQL: Gibbs Sampling for Queue Lengths
[W. Wang et al., Accepted to appear in ACM TOMACS]
 Gibbs sampling based on queue length samples
 Many iterations until convergence
13
Validation
 ≈20000 random models
 Randomized number of stations, classes, jobs
 Focus on QMLE instead of exact analysis
 Results
 All the algorithms: below 10%
 QMLE has less than 4% error
 Confidence interval validated
Number of
observations
14
1E-04
1E-03
1E-02
1E-01
1E+00
1E+01
1E+02
1E+03
1E+04
CI ERPS GQL QMLE
Execution timeExecutiontime(s)
15
 Mean demand varies under different load
 Real world system behavior
 e.g. multi-core servers
Load-dependent (LD) extension
16
 A scaling factor function
 load-independent :
 Product-form still holds
 MLE
Load-dependent (LD) extension
new term
17
 Directly computation is infeasible
 A necessary condition for a point inside
to be a MLE is that
and
 Works with marginal probability only!
MLE characterization
Empirical marginal
queue length probability
Theoretical marginal
queue length probability
18
 How to find the MLE?
 Solve by optimization program
 Confidence intervals
 Hessian matrix can still be derived
 Computation requires marginal probabilities and
mean queue length only
 Drawback
 Computationally expensive because of LD-MVA
MLE characterization
19
Validation
 Random models validation
 2 stations, 2 classes, 8 jobs, different think time
 MATLAB fmincon solver
 Compare the estimated against exact ones
 Considered scaling factors
 : resembles multi-core feature
– number of CPUs in queueing station i.
20
0
5
10
15
20
25
30
35
40
5000 10000 50000 100000
u
Estimation error on γ (scaling factors)
Erroronγ(%)
Number of observed samples (L)
21
0.0E+00
5.0E+03
1.0E+04
1.5E+04
2.0E+04
2.5E+04
3.0E+04
5000 10000 50000 10000
Execution timeExecutiontime(s)
Number of observed samples (L)
Progress: We found a new approximation
method for efficiently evaluating marginal
probabilities, which reduces the execution
time to < 20s on average!
22
Case Study (MyBatis JPetStore)
 3-tier commercial application
 Transactions grouped in R=1 class
 5 GB user data
User 1
Worker Database
Web/Application server
Workload
Generator
Dispatcher
Database server
23
Observed performance matching
 Exact demand unknown
 Estimated demands using QMLE
 Validate observed throughput with estimated demands
0
5
10
15
20
25
0.1 0.5 1 5 All
ERPS
QMLE
Erroronthroughput(%)
Think time (s)
24
Conclusion
 Demand estimation from queue length
 Efficient
 Confidence interval characterization
 Load-dependent extension
 Ongoing work
 Accelerate the load-dependent estimation
 More experimental evaluations
Funded by FP7 MODAClouds, H2020 DICE, EPSRC OptiMAM
25
weikun.wang11@imperial.ac.uk
Thanks!

More Related Content

What's hot

TUKE System for MediaEval 2014 QUESST
TUKE System for MediaEval 2014 QUESSTTUKE System for MediaEval 2014 QUESST
TUKE System for MediaEval 2014 QUESSTmultimediaeval
 
Implications of Ceiling Effects in Defect Predictors
Implications of Ceiling Effects in Defect PredictorsImplications of Ceiling Effects in Defect Predictors
Implications of Ceiling Effects in Defect Predictorsgregoryg
 
ModelSelection1_WCSMO_2013_Ali
ModelSelection1_WCSMO_2013_AliModelSelection1_WCSMO_2013_Ali
ModelSelection1_WCSMO_2013_AliMDO_Lab
 

What's hot (6)

31
3131
31
 
TUKE System for MediaEval 2014 QUESST
TUKE System for MediaEval 2014 QUESSTTUKE System for MediaEval 2014 QUESST
TUKE System for MediaEval 2014 QUESST
 
September 11, Deliberative Algorithms II
September 11, Deliberative Algorithms IISeptember 11, Deliberative Algorithms II
September 11, Deliberative Algorithms II
 
Implications of Ceiling Effects in Defect Predictors
Implications of Ceiling Effects in Defect PredictorsImplications of Ceiling Effects in Defect Predictors
Implications of Ceiling Effects in Defect Predictors
 
Network simulator
Network  simulatorNetwork  simulator
Network simulator
 
ModelSelection1_WCSMO_2013_Ali
ModelSelection1_WCSMO_2013_AliModelSelection1_WCSMO_2013_Ali
ModelSelection1_WCSMO_2013_Ali
 

Similar to Maximum Likelihood Estimation of Closed Queueing Network Demands from Queue Length Data

Automated Parameterization of Performance Models from Measurements
Automated Parameterization of Performance Models from MeasurementsAutomated Parameterization of Performance Models from Measurements
Automated Parameterization of Performance Models from MeasurementsWeikun Wang
 
SSBSE 2020 keynote
SSBSE 2020 keynoteSSBSE 2020 keynote
SSBSE 2020 keynoteShiva Nejati
 
AHF_IDETC_2011_Jie
AHF_IDETC_2011_JieAHF_IDETC_2011_Jie
AHF_IDETC_2011_JieMDO_Lab
 
Eswc2009
Eswc2009Eswc2009
Eswc2009fanizzi
 
COSMOS1_Scitech_2014_Ali
COSMOS1_Scitech_2014_AliCOSMOS1_Scitech_2014_Ali
COSMOS1_Scitech_2014_AliMDO_Lab
 
Neural Network-Based Actuator Fault Diagnosis for a Non-Linear Multi-Tank System
Neural Network-Based Actuator Fault Diagnosis for a Non-Linear Multi-Tank SystemNeural Network-Based Actuator Fault Diagnosis for a Non-Linear Multi-Tank System
Neural Network-Based Actuator Fault Diagnosis for a Non-Linear Multi-Tank SystemISA Interchange
 
Advancements in the Real-Time Simulation of Large Active Distribution Systems...
Advancements in the Real-Time Simulation of Large Active Distribution Systems...Advancements in the Real-Time Simulation of Large Active Distribution Systems...
Advancements in the Real-Time Simulation of Large Active Distribution Systems...OPAL-RT TECHNOLOGIES
 
A tale of experiments on bug prediction
A tale of experiments on bug predictionA tale of experiments on bug prediction
A tale of experiments on bug predictionMartin Pinzger
 
Queuing theory and its applications
Queuing theory and its applicationsQueuing theory and its applications
Queuing theory and its applicationsDebasisMohanty37
 
solving restaurent model problem by using queueing theory
solving restaurent model problem by using queueing theorysolving restaurent model problem by using queueing theory
solving restaurent model problem by using queueing theorySubham kumar
 
680report final
680report final680report final
680report finalRajesh M
 
C:\Documents And Settings\User\桌面\Sciece Talk投影片\Science Talk 100111 陸行
C:\Documents And Settings\User\桌面\Sciece Talk投影片\Science Talk 100111 陸行C:\Documents And Settings\User\桌面\Sciece Talk投影片\Science Talk 100111 陸行
C:\Documents And Settings\User\桌面\Sciece Talk投影片\Science Talk 100111 陸行guestf4730f1
 
Science Talk-100111-陸行
Science Talk-100111-陸行Science Talk-100111-陸行
Science Talk-100111-陸行nccuscience
 
DSUS_MAO_2012_Jie
DSUS_MAO_2012_JieDSUS_MAO_2012_Jie
DSUS_MAO_2012_JieMDO_Lab
 
Parallel Left Ventricle Simulation Using the FEniCS Framework
Parallel Left Ventricle Simulation Using the FEniCS FrameworkParallel Left Ventricle Simulation Using the FEniCS Framework
Parallel Left Ventricle Simulation Using the FEniCS FrameworkUral-PDC
 

Similar to Maximum Likelihood Estimation of Closed Queueing Network Demands from Queue Length Data (20)

Automated Parameterization of Performance Models from Measurements
Automated Parameterization of Performance Models from MeasurementsAutomated Parameterization of Performance Models from Measurements
Automated Parameterization of Performance Models from Measurements
 
SSBSE 2020 keynote
SSBSE 2020 keynoteSSBSE 2020 keynote
SSBSE 2020 keynote
 
AHF_IDETC_2011_Jie
AHF_IDETC_2011_JieAHF_IDETC_2011_Jie
AHF_IDETC_2011_Jie
 
Queue
QueueQueue
Queue
 
Ajila (1)
Ajila (1)Ajila (1)
Ajila (1)
 
Eswc2009
Eswc2009Eswc2009
Eswc2009
 
COSMOS1_Scitech_2014_Ali
COSMOS1_Scitech_2014_AliCOSMOS1_Scitech_2014_Ali
COSMOS1_Scitech_2014_Ali
 
Neural Network-Based Actuator Fault Diagnosis for a Non-Linear Multi-Tank System
Neural Network-Based Actuator Fault Diagnosis for a Non-Linear Multi-Tank SystemNeural Network-Based Actuator Fault Diagnosis for a Non-Linear Multi-Tank System
Neural Network-Based Actuator Fault Diagnosis for a Non-Linear Multi-Tank System
 
Advancements in the Real-Time Simulation of Large Active Distribution Systems...
Advancements in the Real-Time Simulation of Large Active Distribution Systems...Advancements in the Real-Time Simulation of Large Active Distribution Systems...
Advancements in the Real-Time Simulation of Large Active Distribution Systems...
 
A tale of experiments on bug prediction
A tale of experiments on bug predictionA tale of experiments on bug prediction
A tale of experiments on bug prediction
 
Queuing theory and its applications
Queuing theory and its applicationsQueuing theory and its applications
Queuing theory and its applications
 
solving restaurent model problem by using queueing theory
solving restaurent model problem by using queueing theorysolving restaurent model problem by using queueing theory
solving restaurent model problem by using queueing theory
 
680report final
680report final680report final
680report final
 
Queuing Theory
Queuing TheoryQueuing Theory
Queuing Theory
 
C:\Documents And Settings\User\桌面\Sciece Talk投影片\Science Talk 100111 陸行
C:\Documents And Settings\User\桌面\Sciece Talk投影片\Science Talk 100111 陸行C:\Documents And Settings\User\桌面\Sciece Talk投影片\Science Talk 100111 陸行
C:\Documents And Settings\User\桌面\Sciece Talk投影片\Science Talk 100111 陸行
 
Science Talk-100111-陸行
Science Talk-100111-陸行Science Talk-100111-陸行
Science Talk-100111-陸行
 
DSUS_MAO_2012_Jie
DSUS_MAO_2012_JieDSUS_MAO_2012_Jie
DSUS_MAO_2012_Jie
 
QUEUING THEORY
QUEUING THEORY QUEUING THEORY
QUEUING THEORY
 
Ramniwas final
Ramniwas finalRamniwas final
Ramniwas final
 
Parallel Left Ventricle Simulation Using the FEniCS Framework
Parallel Left Ventricle Simulation Using the FEniCS FrameworkParallel Left Ventricle Simulation Using the FEniCS Framework
Parallel Left Ventricle Simulation Using the FEniCS Framework
 

Recently uploaded

Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 

Maximum Likelihood Estimation of Closed Queueing Network Demands from Queue Length Data

  • 1. ACM/SPEC ICPE 2016 - March14th, 2016 Weikun Wang (Imperial College London, UK) Giuliano Casale (Imperial College London, UK) Ajay Kattepur (TCS Innovation Labs, India) Manoj Nambiar (TCS Innovation Labs, India) Maximum Likelihood Estimation of Closed Queueing Network Demands from Queue Length Data
  • 2. 2 SPE & Model-Driven Engineering Platform-Indep. Model Architecture Model Platform-Specific Model Performance & Reliability Models
  • 3. 3 CQN Characterization CPU-1 Time Service Demand X X X CPU-1 Mix 1 Mix 2 Mix 3  Service demand of a request  CPU time, bandwidth consumed, …  Multi-threaded software  e.g., web servers
  • 4. 4 Drawback of Existing methods  Utilization based approaches  Regression based on utilization and throughput  Issues: collinearities, load-dependence, outliers, utilization unreliable/unavailable, …
  • 5. 5  State observations  Dataset ( points):  CQN State: Queue length samples
  • 6. 6  State observations  Dataset ( points):  CQN State: Queue length samples
  • 7. 7  Assume product-form state probabilities  Computationally challenging to evaluate  Maximum likelihood estimation?  Infer demands with the probability Queue length samples Service demand Normalizing constant Queue length
  • 8. 8  Maximum likelihood estimation (MLE)  Problem with direct computation  Evaluation of for each observation  Slow due to the need for computing  Very small probabilities when L is large  Any other solution? Maximum Likelihood Estimation parameter space Likelihood
  • 9. 9  A necessary condition for a point inside to be a MLE is that  How to find the MLE?  Change the value of , until the mean queue length predicted with MVA match  Fixed point iteration or an optimization program Maximum Likelihood Estimation observed mean queue length theoretical mean queue length Only mean queue length is required!
  • 10. 10 Confidence Intervals  Assume the MLE to be asymptotically normal  Confidence intervals for the MLE demands  is the Fisher Information matrix  is the Hessian matrix  works with mean queue length only!  Obtained by using standard MVA, no probabilities!
  • 11. 11 QMLE Approximation  Exact MLE can be found by direct search  Fixed-point iteration tends to be effective  A simple approximation of the MLE:  Consider the demand vector where  Then it must be observed mean queue length
  • 12. 12 Validation- Existing methods  CI: Complete Information [J.F. Perez et al., IEEE Trans. Sw. Eng.’15]  Full knowledge of sample path  Baseline approach  ERPS: Extended Regression for Processor Sharing [J.F. Perez et al., IEEE Trans. Sw. Eng.’15]  Based on mean response time and arrival queue  GQL: Gibbs Sampling for Queue Lengths [W. Wang et al., Accepted to appear in ACM TOMACS]  Gibbs sampling based on queue length samples  Many iterations until convergence
  • 13. 13 Validation  ≈20000 random models  Randomized number of stations, classes, jobs  Focus on QMLE instead of exact analysis  Results  All the algorithms: below 10%  QMLE has less than 4% error  Confidence interval validated Number of observations
  • 15. 15  Mean demand varies under different load  Real world system behavior  e.g. multi-core servers Load-dependent (LD) extension
  • 16. 16  A scaling factor function  load-independent :  Product-form still holds  MLE Load-dependent (LD) extension new term
  • 17. 17  Directly computation is infeasible  A necessary condition for a point inside to be a MLE is that and  Works with marginal probability only! MLE characterization Empirical marginal queue length probability Theoretical marginal queue length probability
  • 18. 18  How to find the MLE?  Solve by optimization program  Confidence intervals  Hessian matrix can still be derived  Computation requires marginal probabilities and mean queue length only  Drawback  Computationally expensive because of LD-MVA MLE characterization
  • 19. 19 Validation  Random models validation  2 stations, 2 classes, 8 jobs, different think time  MATLAB fmincon solver  Compare the estimated against exact ones  Considered scaling factors  : resembles multi-core feature – number of CPUs in queueing station i.
  • 20. 20 0 5 10 15 20 25 30 35 40 5000 10000 50000 100000 u Estimation error on γ (scaling factors) Erroronγ(%) Number of observed samples (L)
  • 21. 21 0.0E+00 5.0E+03 1.0E+04 1.5E+04 2.0E+04 2.5E+04 3.0E+04 5000 10000 50000 10000 Execution timeExecutiontime(s) Number of observed samples (L) Progress: We found a new approximation method for efficiently evaluating marginal probabilities, which reduces the execution time to < 20s on average!
  • 22. 22 Case Study (MyBatis JPetStore)  3-tier commercial application  Transactions grouped in R=1 class  5 GB user data User 1 Worker Database Web/Application server Workload Generator Dispatcher Database server
  • 23. 23 Observed performance matching  Exact demand unknown  Estimated demands using QMLE  Validate observed throughput with estimated demands 0 5 10 15 20 25 0.1 0.5 1 5 All ERPS QMLE Erroronthroughput(%) Think time (s)
  • 24. 24 Conclusion  Demand estimation from queue length  Efficient  Confidence interval characterization  Load-dependent extension  Ongoing work  Accelerate the load-dependent estimation  More experimental evaluations Funded by FP7 MODAClouds, H2020 DICE, EPSRC OptiMAM