Performance Evaluation: Markov Models, revisited CSCI 8710 E. Kraemer.

Slides:



Advertisements
Similar presentations
Disk Arrays COEN 180. Large Storage Systems Collection of disks to store large amount of data. Performance advantage: Each drive can satisfy only so many.
Advertisements

Introduction to Queuing Theory
P3- Represent how data flows around a computer system
10. 5: Model Solution Model Interpretation 10
Kirchhoff’s Laws Three Examples
Mean, Proportion, CLT Bootstrap
INDR 343 Problem Session
10/12/1999(c) Ian Davis1 Predicting performance Topics: –Operational analysis of network models –Markov models.
NETE4631:Capacity Planning (3)- Private Cloud Lecture 11 Suronapee Phoomvuthisarn, Ph.D. /
Lecture 13 – Continuous-Time Markov Chains
1 Part II Web Performance Modeling: basic concepts © 1998 Menascé & Almeida. All Rights Reserved.
1 Wednesday, June 28, 2006 Command, n.: Statement presented by a human and accepted by a computer in such a manner as to make the human feel that he is.
Maximum likelihood Conditional distribution and likelihood Maximum likelihood estimations Information in the data and likelihood Observed and Fisher’s.
Single queue modeling. Basic definitions for performance predictions The performance of a system that gives services could be seen from two different.
1 Multiple class queueing networks Mean Value Analysis - Open queueing networks - Closed queueing networks.
Stochastic Process1 Indexed collection of random variables {X t } t   for each t  T  X t is a random variable T = Index Set State Space = range.
1 Part VI System-level Performance Models for the Web © 1998 Menascé & Almeida. All Rights Reserved.
Deadlock Characterization
ICOM 6005 – Database Management Systems Design Dr. Manuel Rodríguez-Martínez Electrical and Computer Engineering Department Lecture 6 – RAID ©Manuel Rodriguez.
Computer Networks Performance Evaluation. Chapter 12 Single Class MVA Performance by Design: Computer Capacity Planning by Example Daniel A. Menascé,
yahoo.com SUT-System Level Performance Models yahoo.com SUT-System Level Performance Models8-1 chapter12 Single Class MVA.
yahoo.com SUT-System Level Performance Models yahoo.com SUT-System Level Performance Models8-1 chapter10 Markov Models.
SOLVING EQUATIONS BY ADDING
AN INTRODUCTION TO THE OPERATIONAL ANALYSIS OF QUEUING NETWORK MODELS Peter J. Denning, Jeffrey P. Buzen, The Operational Analysis of Queueing Network.
Computer Networks Performance Evaluation
 Introduction to Operating System Introduction to Operating System  Types Of An Operating System Types Of An Operating System  Single User Single User.
Chapter 3 Discrete Time and State Models. Discount Functions.
COEN/ELEN 180 Storage Systems Memory Hierarchy. We are therefore forced to recognize the possibility of constructing a hierarchy of memories, each of.
1 1 Slide © 2001 South-Western College Publishing/Thomson Learning Anderson Sweeney Williams Anderson Sweeney Williams Slides Prepared by JOHN LOUCKS QUANTITATIVE.
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
"1"1 Introduction to Managing Data " Describe problems associated with managing large numbers of disks " List requirements for easily managing large amounts.
Network Design and Analysis-----Wang Wenjie Queuing Theory III: 1 © Graduate University, Chinese academy of Sciences. Network Design and Performance Analysis.
Queueing Models with Multiple Classes CSCI 8710 Tuesday, November 28th Kraemer.
West Virginia University Slide 1 Copyright © K.Goseva 2010 CS 736 Software Performance Engineering Comments on Homework #1  Please revise the solution.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems with Multi-programming Chapter 4.
COEN 180 Memory Hierarchy. We are therefore forced to recognize the possibility of constructing a hierarchy of memories, each of which has greater capacity.
State Estimator & Telemetry. Imagine a student measuring current on an electrical circuit.59 With on meter, he measures.59 A. Being a cautious type, he.
1 Components performance modelling - Outline of queue networks - Mean Value Analisys (MVA) for open and close queue networks.
1 Part VII Component-level Performance Models for the Web © 1998 Menascé & Almeida. All Rights Reserved.
Lesson Topic: One-Step Equations (Addition, Subtraction, Multiplication, and Division) Lesson Objective: I can…  Solve one-step equations by relating.
NETE4631: Network Information System Capacity Planning (2) Suronapee Phoomvuthisarn, Ph.D. /
Lesson 1-8 Solving Addition and Subtraction Equations.
Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part VI System-level Performance Models for the Web (Book, Chapter 8)
Solving Linear Equations Substitution. Find the common solution for the system y = 3x + 1 y = x + 5 There are 4 steps to this process Step 1:Substitute.
Review Session Jehan-François Pâris. Agenda Statistical Analysis of Outputs Operational Analysis Case Studies Linear Regression.
Little’s Law & Operational Laws. Little’s Law Proportionality relation between the average number of jobs (E[N]) in a system and the average system time.
Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part II System Performance Modeling: basic concepts, operational analysis (book, chap. 3)
Solving One Step Equations Algebra I. Addition and Subtraction One Step Equations A solution of an equation is the value or values of the variable that.
1 of 8 Algebra 1 Chapter 11 Section 3 Chapter 11 Sec 3 Radical Equations.
Ó 1998 Menascé & Almeida. All Rights Reserved.1 Part VI System-level Performance Models for the Web.
Discrete-time Markov chain (DTMC) State space distribution
Markov Decision Process (MDP)
CPE 619 Mean-Value Analysis
Database Management System
Medium Access Control Protocols
Solving Linear Inequalities in One Unknown
7-3 Solving Subtraction and Addition Equations
Solving Absolute Value Equations
Solving Inequalities (3-2)
ICOM 6005 – Database Management Systems Design
Chapter 5 Markov Analysis
Systems of Linear Equations
Do Now 1) t + 3 = – 2 2) 18 – 4v = 42.
Equations with Variables on Both Sides Day 2
Chapter 3-3 Solve Equations by Adding/Subtracting
EXAMPLE 4 Standardized Test Practice SOLUTION
Solving 1-Step Integer Equations
Chapter 14: File-System Implementation
CS 416 Artificial Intelligence
Bell Work Solve for “x” and check your solution
Presentation transcript:

Performance Evaluation: Markov Models, revisited CSCI 8710 E. Kraemer

Working with Markov models  State space enumeration  State transition identification  Parameterization  Calibration and solution

Example 1: Random walk through England  Young man spending one year in England; checks in with Mom at 3 pm daily 1. State space enumeration 2. State transition identification 3. Parameterization

State space enumeration Mom detects 4 states: Drinking in Leeds pub Sightseeing in London Kayaking in Lake District Hiking in Yorkshire moors

State space enumeration 1. Leeds pub 2. Sightseeing in London 3. Kayaking in Lake District 4. Hiking in Yorkshire Moors

State transition identification  If in Leeds one day, then next day: Sightseeing in London Again in Leeds pub  If in London one day, then next day: In Leeds pub Hiking in Yorkshire Moors  If kayaking in Lake District one day, then next day: Still kayaking in Lake district Hiking in Yorkshire Moors In Leeds pub  If hiking in Moors one day, then next day: Hiking in Moors In Leeds pub Kayaking in Lake District

State transistion identification 1. Leeds pub 2. Sightseeing in London 3. Kayaking in Lake District 4. Hiking in Yorkshire Moors

Parameterization  If in Leeds one day, then next day: Sightseeing in London (60%) Again in Leeds pub (40%)  If in London one day, then next day: In Leeds pub (20%) Hiking in Yorkshire Moors (80%)  If kayaking in Lake District one day, then next day: Still kayaking in Lake district (70%) Hiking in Yorkshire Moors (20%) In Leeds pub (10%)  If hiking in Moors one day, then next day: Hiking in Moors (50%) In Leeds pub (30%) Kayaking in Lake District (20%)

State transition identification 1. Leeds pub 2. Sightseeing in London 3. Kayaking in Lake District 4. Hiking in Yorkshire Moors

Questions to be answered:  Dad wants to know: What percentage of days is son actually not drinking in Leeds?  Relatives in Lake District want to know: Once he finishes a day of kayaking in the Lake District, how long will it typically be before he returns?  Policeman wants to know: How many days each month can bobbies expect to see son driving to London after drinking in Leeds?  Kayak renter wants to know: How many times per month does son typically visit kayak shop? How long does he typically keep kayak checked out?

Model Solution  steady state probabilities of being in each state  Independent of initial state  Solve system of linear equations, each encoding notion that flow in = flow out

Flow in = flow out  P1 Flow in =  0.4 * P1 +  0.2 * P2 +  0.1 * P3 +  0.3 * P4 Flow out =  0.4 * P1  0.6 * P1 Can subtract out “self loop” 0.2*P *P * P4 = 0.6 * P1

Flow in = flow out  P2 Flow in = 0.6 * P1 Flow out = 0.8 * P * P2 Since no self-loop, sum of outflows = 1 Can write:  0.6 * P1 = P2

Flow in = flow out  P3: Flow in = 0.2* P4 Flow out = 0.1 * P * P3 0.2 * P4 = 0.3 * P3  P4: Flow in = 0.8 * P * P3 Flow out = 0.3 * P * P4 0.8 * P * P3 = 0.5 * P4

To solve:  0.2 * P * P * P4 = 0.6 * P1  0.6 * P1 = P2  0.2 * P4 = 0.3 * P3  0.8 * P * P3 = 0.5 * P4  P1 + P2 + P3 + P4 = 1.0  Drop one of first four (save for a “check”), and solve system of 4 equations in 4 unknowns

Solution  P1 = 55/208 =  P2 = 33/208 =  P3 = 48/208 =  P4 = 72/208 =

Answering the questions …  Dad wants to know: What percentage of days is son actually not drinking in Leeds? P1 = So, NOT(P1) = 1 – = % of the time not drinking in Leeds

Answering the questions  Relatives in Lake District want to know: Once he finishes a day of kayaking in the Lake District, how long will it typically be before he returns? Kayaking at Lake is state 3 P3 = = steady state probability of being in state 3 Mean time between entering state is inverse: 1/ = 4.33 days Start to start is 4.33 days Finish to start is 3.33 days 3.33 days

Answering the questions  Policeman wants to know: How many days each month can bobbies expect to see son driving to London after drinking in Leeds? Drinking in Leeds = P1 = days * = 7.93 days drinking P1 -> P2 = * 0.6 = 4.76 days per month

 Kayak renter wants to know: How many times per month does son typically visit kayak shop? How long does he typically keep kayak checked out? P3 entered only from P4 P4 = * 30 days = days/month P4 -> P3 = * 0.2 = 2.08 times/month

 P3 = prob kayaking =  30 * = 6.92 days/month  6.92 days/2.08 new visits = 3.33 days/visit

Example #2: Database server support  System with one CPU and two disks Users remotely access server: login, perform DB transactions, logout Max of 2 simultaneous users; high demand; can assume consistent 2 simultaneous users Each transaction alternates between using CPU and disk Disks are different speeds: 2X and 1X D_cpu = 10 sec File access probability is equal across disks D_fast = 15 sec D_slow = 30 sec

Questions to be answered:  User wants to know: Expected response time  Sys admin wants to know: Utilization of each resource  Company pres wants to know: What happens to performance if number of users doubles?  Company nay-sayer wants to know: Given that fast disk is about to fail and all files will have to be moved to slow disk, what will the new response time be?

State space enumeration  Two users, each of which can be at any one of three devices  Notation: (X, Y, Z) X = number of users at CPU Y = number of users at fast disk Z = number of users at slow disk

Other notations?  (CPU, CPU)  (CPU, FD)  (CPU, SD)  (FD, FD)  (FD, SD)  (FD, CPU)  (SD, SD)  (SD, CPU)  (SD, FD)  … more states, some statistically identical (FD, SD) and (SD, FD), etc. …  Model more complex, might be needed for multiclass model, but not for this example …

State space enumeration  (2,0,0) Both users at CPU  (1,1,0) One user at CPU, one at fast disk  (1,0,1) One user at cpu, one at slow disk  (0,2,0) Two users at fast disk  (0,1,1) One user at fast disk, one user at slow disk  (0,0,2) Two users at slow disk

State space enumeration 2,0,0 1,0,11,1,0 0,0,2 0,2,0 0,1,1

State transition identification 2,0,0 1,0,11,1,0 0,0,2 0,2,0 0,1,1

Parameterization  Start with (2,0,0): CPU is actively working D_cpu is 10 seconds : 6 t/m  Of those at (2,0,0), half go to fast, half to slow

State transition identification 2,0,0 1,0,11,1,0 0,0,2 0,2,0 0,1,1 3 3

Parameterization  Consider (1,1,0) One user executing at CPU One user at fast disk Still, rate from CPU is 6, with half going to fast(3) and half going to slow (3), so …

State transition identification 2,0,0 1,0,11,1,0 0,0,2 0,2,0 0,1,

Parameterization  Fast disk satisfies user requests at rate of 4 t/m (D_fast = 15 sec)  All users at fast disk next visit CPU, so …

State transition identification 2,0,0 1,0,11,1,0 0,0,2 0,2,0 0,1,

Parameterization  Similar logic for slow disk side …

State transition identification 2,0,0 1,0,11,1,0 0,0,2 0,2,0 0,1,

Model Solution  Flow in = Flow out  P(2,0,0) = 4 * P(1,1,0) + 2*P(1,0,1)  … construct remainder as in-class exercise

Solution  P(2,0,0) = 16/115 =  P(1,1,0) = 12/115 =  P(1,0,1) = 24/115 =  P(0,2,0) = 9/115 =  P(0,1,1) = 18/115 =  P(0,0,2) = 36/115 =

Interpreting the model  User wants to know: Expected response time

Interpreting the model  User wants to know expected response time R = M/X_O – Z Z = 0 M = users in system = 2  So, R = M/X_0 X = throughput = utilization * service rate  U_cpu = P(2,0,0) + P(1,1,0) + P(1,0,1)  U = _ =  X = bs/ts * 1 t/10 bs = t/s  R = 2/ = t/sec

Interpreting …  Sys admin wants to know: Utilization of each resource

Interpreting the model …  Sys admin wants to know utilization of each resource  U_cpu = P(2,0,0) + P(1,1,0) + P(1,0,1)  U = _ =  U_fast = P(1,1,0) + P(0,2,0) + P(0,1,1)  U_fast = =  U_slow = P(1,0,1) + P(0,1,1) + P(0,0,2)  U_slow = =

Interpreting the model  Company pres wants to know: What happens to performance if number of users doubles?

Interpreting the model …  Company pres wants to know what happens to performance if number of users doubles? … build model with 4 active users instead of 2 … now have 15 states in diagram … solve for throughput based on new utilizations, derived from state probabilities … calculate response time..  X_0 increases from t/min to t/min  R increases from sec to sec

Interpreting …  Company nay-sayer wants to know: Given that fast disk is about to fail and all files will have to be moved to slow disk, what will the new response time be?

 Company nay-sayer wants to know: Given that fast disk is about to fail and all files will have to be moved to slow disk, what will the new response time be? … now, solve model with just two devices.. CPU and slow disk.. Only three states … derive probabilities P(2,0) = P(1,1) = P(0.2) = X_0 = t/min, R = 65 sec