Little s Law assumptions: But I still wanna use it! The Goldilocks solution to sizing the system for non-steady-state dynamics

Similar documents
Analysis of Software Artifacts

Queuing Networks. - Outline of queuing networks. - Mean Value Analisys (MVA) for open and closed queuing networks

COMP9334: Capacity Planning of Computer Systems and Networks

COMP9334 Capacity Planning for Computer Systems and Networks

Multimedia Communication Services Traffic Modeling and Streaming

Operational Laws Raj Jain

Scheduling I. Today. Next Time. ! Introduction to scheduling! Classical algorithms. ! Advanced topics on scheduling

Simulation. Where real stuff starts

THE ESSENCE OF... HAO~ Edward N. Lorenz UNIVERSITY OF WASHINGTON PRESS. Seattle

Ch. 12: Workload Forecasting

Simulation. Where real stuff starts

Environment (E) IBP IBP IBP 2 N 2 N. server. System (S) Adapter (A) ACV

Operational Laws 33-1

Day 5. Friday May 25, 2012

Fair and Efficient User-Network Association Algorithm for Multi-Technology Wireless Networks

CSM: Operational Analysis

Announcements. CS 188: Artificial Intelligence Fall VPI Example. VPI Properties. Reasoning over Time. Markov Models. Lecture 19: HMMs 11/4/2008

Scheduling I. Today Introduction to scheduling Classical algorithms. Next Time Advanced topics on scheduling

CS188: Artificial Intelligence, Fall 2009 Written 2: MDPs, RL, and Probability

Stochastic Networks and Parameter Uncertainty

Introduction to Queueing Theory with Applications to Air Transportation Systems

Overall Plan of Simulation and Modeling I. Chapters

CS 347 Parallel and Distributed Data Processing

Exercises Stochastic Performance Modelling. Hamilton Institute, Summer 2010

Operations Research II, IEOR161 University of California, Berkeley Spring 2007 Final Exam. Name: Student ID:

Performance Evaluation of Queuing Systems

Remark: Do not treat as ordinary numbers. These symbols do not obey the usual rules of arithmetic, for instance, + 1 =, - 1 =, 2, etc.

MAT12X Intermediate Algebra

STEADY-STATE PROBABILITIES FOR SOME QUEUEING SYSTEMS: Part II

A Summary of Economic Methodology

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

Introductory Econometrics

Extending DPLL-Based QBF Solvers to Handle Free Variables

Introduction to Dynamical Systems Basic Concepts of Dynamics

1 Modelling and Simulation

ENZYME SCIENCE AND ENGINEERING PROF. SUBHASH CHAND DEPARTMENT OF BIOCHEMICAL ENGINEERING AND BIOTECHNOLOGY IIT DELHI LECTURE 7

ecompass eco-friendly urban Multi-modal route PlAnning Services for mobile users ecompass TR 045 Checking the Stationarity of the Datasets

Chapter 4. Transition towards chaos. 4.1 One-dimensional maps

Introduction to Design of Experiments

1 Basic Analysis of Forward-Looking Decision Making

Software Engineering 3DX3. Slides 8: Root Locus Techniques

(b) What is the variance of the time until the second customer arrives, starting empty, assuming that we measure time in minutes?

Chapter III. Unconstrained Univariate Optimization

HOMEWORK #4: LOGISTIC REGRESSION

MATH10001 Mathematical Workshop Difference Equations part 2 Non-linear difference equations

Scalability is Quantifiable

Bandwidth Scheduling for Big Data Transfer with Deadline Constraint between Data Centers

CSE 4201, Ch. 6. Storage Systems. Hennessy and Patterson

Eco504, Part II Spring 2010 C. Sims PITFALLS OF LINEAR APPROXIMATION OF STOCHASTIC MODELS

Little s result. T = average sojourn time (time spent) in the system N = average number of customers in the system. Little s result says that

AP Statistics. Chapter 6 Scatterplots, Association, and Correlation

(Refer Slide Time: 2:11)

Operations Research Letters. Instability of FIFO in a simple queueing system with arbitrarily low loads

CS188: Artificial Intelligence, Fall 2009 Written 2: MDPs, RL, and Probability

22: Applications of Differential Calculus

HOMEWORK #4: LOGISTIC REGRESSION

Linear Regression. Linear Regression. Linear Regression. Did You Mean Association Or Correlation?

CRISP: Capture-Recapture Interactive Simulation Package

Operational Laws. Operational Laws. Overview. Operational Quantities

Traffic Flow Impact (TFI)

CHAPTER 3. CAPACITY OF SIGNALIZED INTERSECTIONS

Chapitre 4. Transition to chaos. 4.1 One-dimensional maps

Chapter 6. Maximum Likelihood Analysis of Dynamic Stochastic General Equilibrium (DSGE) Models

The Reynolds experiment

KALMAN-TYPE RECURSIONS FOR TIME-VARYING ARMA MODELS AND THEIR IMPLICATION FOR LEAST SQUARES PROCEDURE ANTONY G AU T I E R (LILLE)

Horizontal and Vertical Asymptotes from section 2.6

Performance Modelling of Computer Systems

A source model for ISDN packet data traffic *

Prediction Experience and New Model

Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.3. Section 1.3 Predicates and Quantifiers

Chapter 8. Linear Regression. Copyright 2010 Pearson Education, Inc.

Classical Queueing Models.

INTERMOLECULAR INTERACTIONS

3 Dimensional String Theory

Interpreting Derivatives, Local Linearity, Newton s

Online Appendices: Inventory Control in a Spare Parts Distribution System with Emergency Stocks and Pipeline Information

Discrete-event simulations

A Simplified Test for Preference Rationality of Two-Commodity Choice

Wave Hydro Dynamics Prof. V. Sundar Department of Ocean Engineering Indian Institute of Technology, Madras

The strictly 1/2-stable example

Revenue Maximization in a Cloud Federation

Better Simulation Metamodeling: The Why, What and How of Stochastic Kriging

f (x) = x 2 Chapter 2 Polynomial Functions Section 4 Polynomial and Rational Functions Shapes of Polynomials Graphs of Polynomials the form n

Estimation of DNS Source and Cache Dynamics under Interval-Censored Age Sampling

1.225 Transportation Flow Systems Quiz (December 17, 2001; Duration: 3 hours)

Traffic Demand Forecast

Design of offshore structures Prof. Dr. S. Nallayarasu Department of Ocean Engineering Indian Institute of Technology, Madras

Transient Analysis of a Series Configuration Queueing System

UCERF3 Task R2- Evaluate Magnitude-Scaling Relationships and Depth of Rupture: Proposed Solutions

Roundabout Level of Service

Chapter 8. Linear Regression. The Linear Model. Fat Versus Protein: An Example. The Linear Model (cont.) Residuals

Fundamental Characteristics of Urban Transportation Services

Min Congestion Control for High- Speed Heterogeneous Networks. JetMax: Scalable Max-Min

MCE/EEC 647/747: Robot Dynamics and Control. Lecture 8: Basic Lyapunov Stability Theory

at least 50 and preferably 100 observations should be available to build a proper model

The Mean Value Theorem

Special Relativity in a Model Universe Michael S. A. Graziano Draft Aug 2009

Systems Analysis and Control

Module 03 Lecture 14 Inferential Statistics ANOVA and TOI

Traffic signal design-ii

Transcription:

Little s Law assumptions: But I still wanna use it! The Goldilocks solution to sizing the system for non-steady-state dynamics Alex Gilgur Abstract Little s Law is well known: number of concurrent users of a resource equals the product of arrival rate and the holding time of one user. Somewhat less known is the fact that Little s Law is based on the assumption of stationarity of the underlying processes. But at The Knee, all assumptions break down because this is where the system is not stationary anymore. Without going into an existential discussion of The Knee, this paper proposes a solution that allows an estimation of concurrency that is not too low, not too high; just right for non-stationary conditions. Little s Law is well known: number of concurrent users (Q) of a resource during a period of time is equal to the product of average rate of arrival of users (X) and the average holding time of one user (R): Q = X * R (1) From this description, it follows that it doesn t matter what the duration of the time interval is, as long as the X and the R are measured in the same time interval. According to its creators ([1]): We require stationarity assumptions about the underlying stochastic processes But what if the underlying stochastic process is not stationary (Figure 1, X > 50)? For example, while the holding time (R) was nearly constant at lower workloads (X < 50), we arrive at a value of X where the response times will be increasing more rapidly than at lower workloads?

Figure 1: Illustration of Little s Law in an unstable system: a potential underestimation of concurrency. In Figure 1, processing time (R) is constant up to X = 50, but at higher X, the response times start going up. We are interested in the period of time when X was between 50 and 95 arrivals per second. The horizontal red line corresponds to applying Little s Law literally in a non-stationary system: area under the red line will correspond to the estimation of the number of concurrent sessions in this interval of arrival rates. Why is it a bad idea in non-steady-state conditions? Using Little s Law in this situation becomes a dangerous proposition, as all of a sudden, we lose the R as a valid average measure of holding time for this time interval: it will depend on the request arrival rate. In other words, on the knee, Little s Law assumption of stationarity of parameters is not valid, and technically we cannot use it anymore: the thick solid red line representing literal application of Little s Law in this scenario demonstrates that we will underestimate the number of concurrent sessions (users).

What to do? One way to solve the problem would be to draw a straight line connecting the R(X1) and the R(X2) (Figure 2) and compute the area under that line. But that will cause a severe overestimation of the number of concurrent sessions and therefore a gross oversizing of the system if our purpose is capacity planning. Figure 2: Illustration of Little s Law in an unstable system: an overestimation of concurrency. The next logical iteration would be to break the big time interval where arrival rates vary widely (from X1 to X2) into intervals small enough that Then we sum them all up for the time interval of interest: But that is equivalent to integrating R by dx:

This approach (Figure 3, Eq. 4) will size the system Not too big, not too little; just right. Figure 3: Concurrency measured as the area under the red segments in the R(X) curve Alternatively, in any system stationary or not would-be-stationary response time can be computed as the derivative of concurrency by the throughput, and vice versa. Generalizing, it is safe to say that, if we have a theoretical or empirical relationship of two parts of the equation (4), we can easily obtain the third component by integrating (if looking for Q) or differentiating (if looking for R or for X). And if we have time intervals that are too granular, and we only have the average (mean/median) R and the average (mean/median) X for these intervals?

If we have no insight into the system dynamics at a finer granularity, then there is nothing that can be done; we can only hope for the best, assume that the process was stationary within each given time interval and apply Little s Law directly. After all, if the X did not vary much within that interval, we can approximate the integration (4) by the area under the {(X1, 0), (X1, R1), (X2, R2), (X2, 0)}. In this case, using the Figure 2 approach will be preferred to Figure 1, as it will allow us to oversize the system sufficiently that it will be able to handle whatever micro-level perturbation may occur within that time interval. If concurrency and throughput are given mathematically as functions of one another or as functions of a business metric (see more about that [2]), then we can get the service time as the ratio of these two functions. In this case, at steady-state conditions, response time will asymptotically be converging to the dq/dx: Conclusions In situations where sizing the system is dictated by the concurrent traffic (e.g., determining the number of connections to a database), and if we cannot allow ourselves to oversize it (and we can never afford to undersize it), we need to come up with a Goldilocks solution. The knee is used in this paper merely as an example; the same approach can be applied to any source of instability e.g., different traffic mixes coming into the system at different times of the day provides a plethora of other examples, which are outside the scope of this paper, but to which the same principle can be applied. Care must be taken to identify the intervals of X within which the system can be assumed to be in a quasi-steady state, but even when the system is unstable, we can still use Little s law. References 1. John D.C. Little, Stephen C. Graves. Little s Law. Downloaded from http://web.mit.edu/sgraves/www/papers/little%27s%20law-published.pdf on 02/01/2012 2. Alexander Gilgur, Josep Ferrandiz, Matthew Beason. Time-Series Analysis: Forecasting + Regression: And or Or? presented at the 38 th International Computer Measurement Group (CMG12) Conference, December 2012, Las Vegas, NV.