Lab Assignment 1 COP 4600: Operating Systems Principles Dr. Sumi Helal Professor Computer & Information Science & Engineering Department University of.

Slides:



Advertisements
Similar presentations
Modeling & Simulation. System Models and Simulation Framework for Modeling and Simulation The framework defines the entities and their Relationships that.
Advertisements

CS 241 Spring 2007 System Programming 1 Queuing Framework for Process Management Evaluation Lecture 20 Klara Nahrstedt.
Simulation of multiple server queuing systems
Queuing Systems Chapter 17.
Components and Organization of Discrete-event Simulation Model
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
Queuing and Transportation
Lecture 11 Queueing Models. 2 Queueing System  Queueing System:  A system in which items (or customers) arrive at a station, wait in a line (or queue),
Data Communication and Networks Lecture 13 Performance December 9, 2004 Joseph Conron Computer Science Department New York University
1 Queueing Theory H Plan: –Introduce basics of Queueing Theory –Define notation and terminology used –Discuss properties of queuing models –Show examples.
Simulating Single server queuing models. Consider the following sequence of activities that each customer undergoes: 1.Customer arrives 2.Customer waits.
Probability theory 2011 Outline of lecture 7 The Poisson process  Definitions  Restarted Poisson processes  Conditioning in Poisson processes  Thinning.
Queueing Models: Data Collection and Hand Simulation from Prof. Goldsman’s lecture notes.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
Introduction to Queuing Theory. 2 Queuing theory definitions  (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this.
Lecture 4 Mathematical and Statistical Models in Simulation.
Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?
Chapter 9: Queuing Models

Graduate Program in Engineering and Technology Management
Queuing Theory (Waiting Line Models)
Network Analysis A brief introduction on queues, delays, and tokens Lin Gu, Computer Networking: A Top Down Approach 6 th edition. Jim Kurose.
Introduction to Queuing Theory
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Queuing models Basic definitions, assumptions, and identities Operational laws Little’s law Queuing networks and Jackson’s theorem The importance of think.
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
CS433 Modeling and Simulation Lecture 13 Queueing Theory Dr. Anis Koubâa 03 May 2009 Al-Imam Mohammad Ibn Saud University.
WOOD 492 MODELLING FOR DECISION SUPPORT Lecture 27 Simulation.
Introduction to Operations Research
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
Structure of a Waiting Line System Queuing theory is the study of waiting lines Four characteristics of a queuing system: –The manner in which customers.
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
Entities and Objects The major components in a model are entities, entity types are implemented as Java classes The active entities have a life of their.
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
Waiting Lines and Queuing Models. Queuing Theory  The study of the behavior of waiting lines Importance to business There is a tradeoff between faster.
CS433 Modeling and Simulation Lecture 12 Queueing Theory Dr. Anis Koubâa 03 May 2008 Al-Imam Mohammad Ibn Saud University.
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
yahoo.com SUT-System Level Performance Models yahoo.com SUT-System Level Performance Models8-1 chapter11 Single Queue Systems.
SIMULATION OF A SINGLE-SERVER QUEUEING SYSTEM
Queuing Theory and Traffic Analysis Based on Slides by Richard Martin.
1 Simulation Implementation Using high-level languages.
1 CMPSCI 187 Computer Science 187 Introduction to Introduction to Programming with Data Structures Lecture 13: Queues Announcements.
CS352 - Introduction to Queuing Theory Rutgers University.
Structure of a Waiting Line System Queuing theory is the study of waiting lines Four characteristics of a queuing system: –The manner in which customers.
Dr. Anis Koubâa CS433 Modeling and Simulation
(C) J. M. Garrido1 Objects in a Simulation Model There are several objects in a simulation model The activate objects are instances of the classes that.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Delays  Deterministic Assumes “error free” type case Delay only when demand (known) exceeds capacity (known)  Stochastic Delay may occur any time Random.
CDA6530: Performance Models of Computers and Networks Chapter 8: Statistical Simulation ---- Discrete Event Simulation (DES) TexPoint fonts used in EMF.
CS 4594 Broadband Intro to Queuing Theory. Kendall Notation Kendall notation: [Kendal 1951] A/B/c/k/m/Z A = arrival probability distribution (most often.
Random Variables r Random variables define a real valued function over a sample space. r The value of a random variable is determined by the outcome of.
Queuing Models.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
QUEUING THEORY 1.  - means the number of arrivals per second   - service rate of a device  T - mean service time for each arrival   = ( ) Utilization,
1 BIS 3106: Business Process Management (BPM) Lecture Nine: Quantitative Process Analysis (2) Makerere University School of Computing and Informatics Technology.
Simulation of single server queuing systems
Managerial Decision Making Chapter 13 Queuing Models.
Queuing Theory. Model Customers arrive randomly in accordance with some arrival time distribution. One server services customers in order of arrival.
Al-Imam Mohammad Ibn Saud University
Internet Queuing Delay Introduction
Demo on Queuing Concepts
CPSC 531: System Modeling and Simulation
Internet Queuing Delay Introduction
Introduction Notation Little’s Law aka Little’s Result
Queuing models Basic definitions, assumptions, and identities
Queuing models Basic definitions, assumptions, and identities
Variability 8/24/04 Paul A. Jensen
COMP60621 Designing for Parallelism
Queueing Theory 2008.
Introduction to Probability: Solutions for Quizzes 4 and 5
Presentation transcript:

Lab Assignment 1 COP 4600: Operating Systems Principles Dr. Sumi Helal Professor Computer & Information Science & Engineering Department University of Florida, Gainesville, FL

Lecture Overview Go over Lab Assignment 1, one more time. Queuing Theory 101 Simulation 101

Assignment λ = arrival rate, follows an arrival process μ = service rate, follows a service process ρ = utilization = λ/μ λ μ Simulate a single queue/single server system, with a FIFO queuing discipline Report on the performance of the system Compare with analytic models.

Queuing Theory 101 Must already know: –Random Variables –Basics of Probability Today, we will study & learn: –Probabilistic Processes –Little Law –M/M/1 analytic models

Exponential Process Suitable for describing time between successive events (e.g., arrival, service). T is a continuous Random Number

Example Assume average time between arrival (or average inter-arrival time) is 45 sec. –Question: what is the prob. that inter-arrival time is > 60 sec.? –Answer:

Example

Poisson Process Poisson is suitable for describing arrivals or occurrence of events. Describes prob. of n arrivals in any time interval. If arrival process follows Poisson distribution, then the random variable representing inter-arrival time must follow the Exponential distribution.

Quiz To make sure you follow so far, answer the following question: –Prove that the probability that inter-arrival times are greater than the average inter- arrival time (that is > 1/λ), is 0.37, for any exponential distribution.

Definitions W = Average job wait time in the queue L = Average queue length N = Throughput (number of jobs completed per unit time)

Little’s Law: Proof: –Shaded area is identical (=9 in example) Time in System (W) Job# (N) # in System (L) Time (T)

Analytic Solutions Utilizing Little Law Utilization: L: W: Quiz to check if you understand the implication of ρ Calculate L and W for ρ=0.09 (system under-utilized) Calculate the same for ρ=0.90 (system highly utilized) Calculate the same for ρ=0.999 (system over- utilized)

Effect of ρ – A Reality that Must be considered in any Operating System Design

Simulation 101 You have two independent events At end of processing an independent event, you must re-generate it. All future events generated should be put in an event list. Simulation loop simply finds the next event that will take place sooner in the future; remove it & process it. And yes, advance the clock to that selected next event.

Simulation 101 At each new iteration in the simulation loop you check for exist criterion. You most update your counters and statistics every time: –The Clock is changed –A new job enters the system –A job exits the system –When the simulation loop exits.

Simulation 101 Generating exponentially distributed random variables: –Use inverse inverse transform sampling as follows: X is RV with standard Uniform distribution [0,1], then follows the exponential distribution with average arrival rate.