M/G/1 Busy Period & Power Optimization

Slides:



Advertisements
Similar presentations
Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis 1  Load-balancing problem  migrate (large) jobs from a busy server to an underloaded.
Advertisements

Anshul Gandhi (Carnegie Mellon University) Varun Gupta (CMU), Mor Harchol-Balter (CMU) Michael Kozuch (Intel, Pittsburgh)
1 IOE/MFG 543 Chapter 11: Stochastic single machine models with release dates.
Performance analysis for high speed switches Lecture 6.
Mean Delay in M/G/1 Queues with Head-of-Line Priority Service and Embedded Markov Chains Wade Trappe.
Little’s Theorem Examples Courtesy of: Dr. Abdul Waheed (previous instructor at COE)
Queuing Networks: Burke’s Theorem, Kleinrock’s Approximation, and Jackson’s Theorem Wade Trappe.
Variance Fall 2003, Math 115B. Basic Idea Tables of values and graphs of the p.m.f.’s of the finite random variables, X and Y, are given in the sheet.
Lesson 11: Solved M/G/1 Exercises
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  …
1 As we have seen in section 4 conditional probability density functions are useful to update the information about an event based on the knowledge about.
PROBABILITY AND STATISTICS FOR ENGINEERING Hossein Sameti Department of Computer Engineering Sharif University of Technology Two Functions of Two Random.
Answering Descriptive Questions in Multivariate Research When we are studying more than one variable, we are typically asking one (or more) of the following.
Networks of Queues Plan for today (lecture 6): Last time / Questions? Product form preserving blocking Interpretation traffic equations Kelly / Whittle.
Flows and Networks Plan for today (lecture 4): Last time / Questions? Output simple queue Tandem network Jackson network: definition Jackson network: equilibrium.
GI/GI/1. Interarrival times are independent and generally distributed {t_n} is an i.i.d. sequence of interarrival times t_n is distributed according to.
An Optimal Service Ordering for a World Wide Web Server A Presentation for the Fifth INFORMS Telecommunications Conference March 6, 2000 Amy Csizmar Dalal.
State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case.
Distributions of Functions of Random Variables November 18, 2015
Answering Descriptive Questions in Multivariate Research When we are studying more than one variable, we are typically asking one (or more) of the following.
Joint Moments and Joint Characteristic Functions.
Ver Chapter 5 Continuous Random Variables 1 Probability/Ch5.
Energy-Aware Scheduling on Heterogeneous Processors
Markov Chains.
M/G/1 Queue & Renewal Reward Theory
Digital and Non-Linear Control
Discrete Time Markov Chains (A Brief Overview)
Ergodicity, Balance Equations, and Time Reversibility
Burke Theorem, Reversibility, and Jackson Networks of Queues
CSE 538 Instructor: Roch Guerin
Availability Availability - A(t)
12. Principles of Parameter Estimation
Serve Assignment Policies
Week 7 2. The dynamics of games Consider the following questions:
Copyright © Cengage Learning. All rights reserved.
CTMCs & N/M/* Queues.
Linear Differential Equations
Adv. Wireless Comm. Systems - Cellular Networks -
FIRST ORDER DIFFERENTIAL EQUATIONS
M/G/1 variants and Priority Queue
Scheduling Preemptive Policies
Transform Analysis.
Scheduling Non-Preemptive Policies
Scheduling Preemptive Policies
Chapter 6 Queuing Models.
Generalized Jackson Networks (Approximate Decomposition Methods)
LESSON 64 L’HOPITAL’S RULE HL MATH - CALCULUS
7. Two Random Variables In many experiments, the observations are expressible not as a single quantity, but as a family of quantities. For example to record.
Chernoff bounds The Chernoff bound for a random variable X is
Cellular Digital Packet Data: Channel Availability
Queuing Networks Mean Value Analysis
Chapter 4. Time Response I may not have gone where I intended to go, but I think I have ended up where I needed to be. Pusan National University Intelligent.
11. Conditional Density Functions and Conditional Expected Values
Some Basic Relationships
7. Two Random Variables In many experiments, the observations are expressible not as a single quantity, but as a family of quantities. For example to record.
Statistical Mechanics and Canonical Ensemble
11. Conditional Density Functions and Conditional Expected Values
9. Two Functions of Two Random Variables
Basic Rules of Differentiation
12. Principles of Parameter Estimation
Berlin Chen Department of Computer Science & Information Engineering
Further Topics on Random Variables: 1
Berlin Chen Department of Computer Science & Information Engineering
7. Two Random Variables In many experiments, the observations are expressible not as a single quantity, but as a family of quantities. For example to record.
Processor Sharing Queues
Erlang, Hyper-exponential, and Coxian distributions
DIGITAL CONTROL SYSTEM WEEK 3 NUMERICAL APPROXIMATION
IntroductionLecture 1: Basic Ideas & Terminology
Presentation transcript:

M/G/1 Busy Period & Power Optimization

Power Optimization Problem Given an M/G/1/FCFS server with the following power consumption profile Pon when serving jobs Pidle ≤ Pon when idle waiting for work 0 when off Psetup ≈ Pon when starting up (setup time has general distribution jobs arriving according to a Poisson process of rate λ, and with a general service time distribution What is the optimal policy that maximizes performance/watt, i.e., 1/(E[Power]E[T])?

Two Sample Policies ON/OFF policy: Server is immediately turned OFF when it becomes idle (end of busy period) Zero power consumed while OFF, but SETUP time affects both response time and power consumption (power is consumed but no work is performed during setup) ON/IDLE policy: Server is never turned OFF No setup overhead, but power is consumed all the time Question: Which policy is better when? Answer depends on ρ, as well as service time and setup time distribution

M/G/1 Busy Period Analysis – (1) Busy period distribution plays a major role in the performance of both sample policies We’ll first derive the Laplace transform Bx(s) of the duration B(x) of a busy period started by an amount of work x, i.e., B(x) = x +Σ{i=1 to Ax}Bi where the Bi’s are independent busy periods (each started by an arrival) with the same distribution We then have Bx(s) = e–sxLf(Σ{i=1 to Ax}Bi) = e–sxAx(B(s)) = e–sxe–λx(1–B(s)) = e–x(s+λ–λB(s)) Unconditioning then yields the following expression B(s) = {x=0 to }Bx(s)fS(x)dx = {x=0 to } e–x(s+λ–λB(s)) fS(x)dx = S(s+λ–λB(s)) – a recursive expression from which we can derive all moments, including E[B] = E[S]/(1–ρ)

Busy Period Moments Recall that  = E[B]/(E[B]+E[I]), so that E[B](1–)=/λ  E[B]=E[S]/(1–)

Busy Period vs. Response Time Comparing E[B] to E[T], we see that E[B] = E[S]/(1–ρ) and E[T] = λE[S2]/2(1–ρ) + E[S] In other words, E[B] is not affected by variability in S, while E[T] is This because Busy periods start with no jobs in the system, i.e., they do not depend on Se In general, the ith moment of B depends on the ith moment of S, while the ith moment of T depends on the (i+1)th moment of S

More on M/G/1 Busy Period Analysis Recall the Laplace transform Bx(s) of the duration of a busy period started by an amount of work x Bx(s) = e–x(s+λ–λB(s)) Assume next that x is a r.v. with p.d.f. fW() BW(s) = {x=0 to }Bx(s)fW(x)dx = {x=0 to } e–x(s+λ–λB(s)) fW(x)dx = W(s+λ–λB(s)) Differentiating and evaluating –BW(s) at s = 0 gives E[BW] = E[W]/(1–ρ)

M/G/1 With Setup – (1) Each busy period starts with a setup time I Can we characterize E[Bsetup] and E[Tqsetup]? From our previous result E[BW] = E[W]/(1–ρ) E[Bsetup] = (E[I]+E[S])/(1–ρ) = E[B]+E[I]/(1–ρ), where ρ = λE[S] The Renewal-Reward Theorem tells us that ρsetup, the fraction of time server is busy including setup, is the fraction of time the server is busy during one cycle, which yields ρsetup = E[Bsetup]/(E[Bsetup]+1/λ) = (λE[I]+ρ)/(λE[I]+1) Next, we will approach deriving Nsetup(z) as for the M/G/1 system without setup, except for the transitions out of state 0 that need to account for the setup We will then obtain Tsetup(s) from Nsetup(z)

M/G/1 With Setup – (2) Let aj = P{j arrivals in S} – in service time a'j = P{j arrivals in S+I} – in service+setup time Then Pij = aj-i+1 for i>0 and P0j = a'j Thus πj = π0a'j + Σ{i=1 to j+1}πiaj-i+1 and Nsetup(z) = π0AS+I(z) + 1/z[Nsetup(z) – π0]AS(z) Nsetup(z) = π0[zAS(z) AI(z) – AS(z)]/[z – AS(z)] where π0 = 1–ρsetup = (1–λE[S])/(1+λE[I]) We can now obtain Tsetup(s) from Nsetup(z) as before

M/G/1 With Setup – (3) Recall that we have AS(z) = S(λ(1–z)) for any S This implies ATsetup (z) = Tsetup(λ(1–z)), an hence Nsetup(z) = Tsetup(λ(1–z)) since ATsetup (z) = Nsetup(z) From our previous result, we have Tsetup(λ(1–z)) = π0[zAS(z) AI(z) – AS(z)]/[z – AS(z)] = π0[zS(λ(1–z))I(λ(1–z))–S(λ(1–z))]/[z–S(λ(1–z))] with π0 = 1–ρsetup = (1–λE[S])/(1+λE[I]) = (1–ρ)/(1+λE[I]) Tsetup(s) = π0[(λ–s)S(s)I(s) – λS(s)]/[λ–s–λS(s)], where again s=λ(1–z) This also gives TQsetup(s) = Tsetup(s)/S(s) and therefore TQsetup(s) = π0[λ–(λ–s)I(s)]/[s –λ+λS(s)], from which we derive TQsetup(s) = TQM/G/1(s)[λ–(λ–s)I(s)]/[s(1+λE[I])] – recall TQM/G/1(s)=(1–ρ)s/[s –λ+λS(s)] Differentiating yields E[TQsetup] = λE[S2]/2(1–ρ)+(2E[I]+λE[I2])/2(1+λE[I]) If I is exponential E[I2]=2E[I]2 so that E[TQsetup] = E[TQ] + E[I]

Comparing ON/IDLE vs. ON/OFF E[Power]ON/IDLE = ρPon+(1–ρ)Pidle E[T]ON/IDLE = λE[S2]/2(1–ρ)+E[S], where ρ = λE[S] ON/OFF E[Power]ON/OFF = ρsetupPon= Pon(λE[I]+ρ)/(λE[I]+1) E[T]ON/OFF = λE[S2]/2(1–ρ)+(2E[I]+λE[I2])/2(1+λE[I])+E[S] Performance metric: 1/(E[Power]E[T]) – performance per Watt EXAMPLE Pon = 240W and Pidle = 180W E[S] = 1 and E[S2] = 20 E[I] varies from 0.125 to 8 E[I2] = 5E[I] ρ varies from 0.01 to 0.99 At low load ON/OFF is clearly much better when the setup time is low, but this quickly reverses when the setup increases At high load, both policies are equivalent as the server is busy most of the time