Optimization of Proactive Services with Uncertain Predictions

Total Page:16

File Type:pdf, Size:1020Kb

Optimization of Proactive Services with Uncertain Predictions Optimization of Proactive Services with Uncertain Predictions A Dissertation Presented by Ran Liu to The Department of Electrical and Computer Engineering in partial fulfillment of the requirements for the degree of Doctor of Philosophy in Electrical and Computer Engineering Northeastern University Boston, Massachusetts October 2020 Contents List of Figures iv List of Tables vi List of Acronyms vii Acknowledgments viii Abstract of the Dissertation ix 1 Introduction 1 1.1 Background . 1 1.2 Proactive Caching and Proactive Computing Technologies . 3 1.2.1 Proactive Caching . 3 1.2.2 Proactive Computing . 7 1.3 Related Work . 9 2 Proactive Caching under Uncertain Predictions 12 2.1 Introduction . 12 2.2 System Model . 14 2.2.1 Network Model . 14 2.2.2 Service Model . 16 2.2.3 Problem Formulation . 19 2.3 Relation between Reactive Scheme and Proactive Schemes . 21 2.4 Threshold-based Proactive Strategy and Markov Chain . 26 2.4.1 Threshold-Based Proactive Strategies . 26 φ 2.4.2 Markov Chain of System under ΨP ..................... 26 2.5 Delay Comparison between UNIFORM and EDF strategies . 37 2.6 Numerical Evaluation . 39 2.6.1 Infinite Prediction Window Scenarios . 40 2.6.2 Finite Prediction Window Scenarios . 43 2.7 Summary . 46 i 3 Delay-Optimal Proactive Strategy under Uncertain Predictions 48 3.1 Introduction . 48 3.2 System Model . 50 3.2.1 Network Model . 50 3.3 System Model . 52 3.3.1 Server Model . 52 3.3.2 Service Model . 54 3.3.3 Problem Formulation . 57 3.4 Relation between Reactive Scheme and Proactive Schemes . 60 3.5 Fixed-Probability (FIXP) Strategy in the Genie-Aided Proactive System . 64 3.5.1 Markov Process of the Genie-Aided System under FIXP(φ) . 65 3.5.2 Recurrence Analysis of the Embedded Markov Chain . 69 3.5.3 Relationship between FIXP(φ) and the two Properties . 73 3.5.4 Delay Analysis of FIXP(φ) Strategies under the Genie-Aided System . 74 3.6 Fixed-Probability (FIXP) Strategy in Realistic Proactive System . 75 3.6.1 The Stochastic Process in the Realistic Proactive System under FIXP(φ) . 75 3.6.2 Analysis on the Approximated Time-invariant Markov Chain . 80 3.6.3 Analysis on the Embedded Chain of the Realistic Proactive System . 82 3.6.4 FIXP Strategies and the Two Properties in Realistic Proactive System . 83 3.6.5 Delay of FIXP strategies in the Realistic Proactive System . 84 3.7 Numerical Evaluation . 84 3.8 Summary . 88 4 SANDIE: SDN-Assisted NDN for Data-Intensive Experiments 90 4.1 Introduction . 92 4.1.1 Large-Scaled Data-Intensive Applications . 92 4.1.2 Named-Data Networking (NDN) Architecture . 94 4.1.3 VIP: Optimized NDN Caching, Forwarding, and Congestion Control . 96 4.2 Data Analysis: LHC network and CMS Workflow . 97 4.2.1 US CMS Network and Workflow . 97 4.2.2 Analysis on CMS Data and Workflow . 101 4.3 Experimental Evaluations . 110 4.3.1 Simulations of the VIP Framework in the Internet2 Topology . 111 4.3.2 Simulations of the VIP Framework with Off-site CMS Workflow . 114 4.4 Modification of VIP Algorithms for SANDIE . 116 4.4.1 Modified Virtual Interest Packet . 117 4.4.2 Modifications on VIP Caching Strategy . 118 4.5 SANDIE Testbed and Implementations . 123 4.5.1 SANDIE Testbed Configuration . 123 4.5.2 Implementation of VIP Framework in Existing NDN Forwarders . 125 4.5.3 Demonstration at SuperComputing 19’ . 129 4.5.4 An Overview of the Latest Progress on the SANDIE Project . 130 4.6 Summary . 131 Bibliography 133 ii A Appendix of Chapter 2 144 A.1 Proof of Proposition 1 . 144 A.2 Proof of Theorem 1 . 145 A.3 Proof of Corollary 1 . 148 A.4 Proof of Proposition 2 . 150 A.5 Proof of Proposition 3 . 152 A.6 Proof of Proposition 4 . 155 A.7 Proof of Lemma 1 . 159 A.8 Proof of Theorem 3 . 162 A.9 Proof of Theorem 4 . 164 A.10 Proof of Corollary 3 . 179 A.11 Proof of Corollary 4 . 180 A.12 Proof of Corollary 5 . 182 B Appendix of Chapter 3 185 B.1 Relationship between the Genie-Aided system and Realistic Proactive system . 185 B.2 Proof of Theorem 5 . 186 B.3 Proof of Corollary 6 . 190 B.4 Proof of Lemma 2 . 191 B.5 Proof of Proposition 8 . 191 B.6 Verification of Theorem 5 under FIXP strategies in Genie-Aided system . 193 B.7 Proof of Proposition 7 . 195 B.8 Proof of Theorem 7 . 198 B.9 Proof of Theorem 8 . 200 B.10 Proof of Proposition 10 . 205 B.11 Verification of Theorem 5 under FIXP strategies in Realistic Proactive system . 206 B.12 Proof of Theorem 10 . 208 iii List of Figures 2.1 Network Model . 15 2.2 Arrival Processes . 15 2.3 Comparison between the Reactive Scheme and the Proactive Scheme . 19 φ s 2.4 Example: Transitions in the proactive system with ΨP , with φ = 2 . 28 2.5 Comparisons among threshold-based methods: λp = 6 . 41 2.6 Comparisons among threshold-based methods: λp = 9:6 . 41 2.7 Comparisons among EDF,UNIFORM and Reactive Schemes: λp = 6 . 42 2.8 Comparisons among EDF,UNIFORM and Reactive Schemes: λp = 9:6 . 42 2.9 Queue Size Evolution Comparisons among Reactive Scheme, EDF strategy and UNIFORM strategy: λp = 6 ............................. 43 2.10 Queue Size Evolution Comparisons among Reactive Scheme, EDF strategy and UNIFORM strategy: λp = 9:6 ............................ 43 2.11 Theoretical Delay Comparison between UNIFORM Strategy and Reactive Scheme 43 2.12 Comparisons among EDF,UNIFORM and Modified-UNIFORM: λp = 6 . 44 2.13 Comparisons among EDF,UNIFORM and Modified-UNIFORM: λp = 9:6 . 44 3.1 Server Model . 52 3.2 Arrival Processes . 52 3.3 Comparisons between reactive and proactive systems . 61 3.4 Embedded Markov Chain of the Markov Process under FIXP Strategies in the Genie-Aided System . 69 3.5 Corresponding 1D Markov Chain Xk ....................... 72 3.6 The transitions of the Realistic Proactivef g System. The corresponding time-invariant transition rates are shown in brackets. 79 3.7 Limiting Fraction of Proactive Services of FIXP Strategies: λp = 6 . 86 3.8 Limiting Fraction of Proactive Services of FIXP Strategies: λp = 9:6 . 86 3.9 Average Delay of FIXP Strategies: λp = 6 ...................... 87 3.10 Average Delay of FIXP Strategies: λp = 9:6 ..................... 87 4.1 On-Site Jobs and Off-Site Jobs in CMS Network . 99 4.2 Distribution of Datablock Size in CMS Workflow of US sites . 103 4.3 Distribution of Datablock Size in CMS Workflow of Caltech Site . 104 iv 4.4 Percentage of Requests Covered by Popular Datablocks: US Sites . 105 4.5 Percentage of Requests Covered by Popular Datablocks: Caltech Site . 106 4.6 Request Counts: Total vs. Popular Datablocks at US Tier-2 Sites . 106 4.7 Zipf Distribution Approximations for Popularity Distributions at US Tier-2 Sites . 107 4.8 File-level Popularity of an Example Datablock . 108 4.9 The Early Internet2 Topology . 111 4.10 Internet2 CMS Topology for Simulation Study . 112 4.11 Delay Performance of VIP Framework in Internet2 Topology . 113 4.12 Average Connection Speed from MIT CMS Site . 115 4.13 Delay Performance of Off-site Workflow in CMS Network . 116 4.14 Modified VIP Caching Structure . 122 4.15 VLAN Configurations of SANDIE Testbed . 125 A.1 Comparison of System 1 and System 2 in the Proof of Proposition 4 . 156 A.2 Comparison of the Proactive System and the Virtual System in the Proof of Proposi- tion 4.
Recommended publications
  • This Item Is the Archived Peer-Reviewed Author-Version Of
    This item is the archived peer-reviewed author-version of: Analyzing queues with customer differentiation using matrix analytic methods Reference: van Velthoven Jeroen.- Analyzing queues with customer differentiation using matrix analytic methods Antwerpen, Universiteit Antwerpen. Faculteit Wetenschappen. Departement Wiskunde & Informatica, 2008, 179 p. Handle: http://hdl.handle.net/10067/1109350151162165141 Institutional repository IRUA Faculteit Wetenschappen Departement Wiskunde & Informatica Analyzing Queues with Customer Differentiation using Matrix Analytic Methods Een analyse van wachtrijsystemen met differentiatie in klanten gebruikmakend van matrix analytische methodes Proefschrift voorgelegd tot het behalen van de graad van doctor in de Wetenschappen aan de Universiteit Antwerpen, te verdedigen door Jeroen VAN VELTHOVEN Promotor: Prof. dr. Benny Van Houdt Copromotor: Prof. dr. Chris Blondia Antwerpen, 2008 Contents Preface xi Acknowledgements xiii Notations and Acronyms xv Summary and Organization xvii I Introduction1 1 Queueing Theory and Markov Chains3 1.1 Markov Chains...................................4 1.2 Queueing Theory..................................6 1.2.1 Arrival Process...............................6 1.2.2 Scheduling Discipline............................7 1.2.3 Service Process...............................8 1.2.4 Some Basic Queueing Systems......................9 1.2.5 Customer Differentiation..........................9 2 Matrix Analytic Methods 11 2.1 Structured Processes................................ 12 2.1.1 M/G/1 and GI/M/1 Type Markov Chains................ 12 2.1.2 Quasi-Birth-Death Markov Chains.................... 12 2.1.3 Tree-Like Processes............................. 14 2.2 The D-MAP/PH/1 Queue............................. 16 2.2.1 The Discrete-Time Markovian Arrival Process.............. 16 2.2.2 Phase-Type Service Time......................... 17 2.2.3 Modeling the D-MAP/PH/1 Queue................... 18 II Steady State Analysis 19 3 Impatient Customers 21 3.1 Related Work...................................
    [Show full text]
  • CPU Scheduling
    Chapter 5: CPU Scheduling Operating System Concepts – 10th Edition Silberschatz, Galvin and Gagne ©2018 Chapter 5: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Thread Scheduling Multi-Processor Scheduling Real-Time CPU Scheduling Operating Systems Examples Algorithm Evaluation Operating System Concepts – 10th Edition 5.2 Silberschatz, Galvin and Gagne ©2018 Objectives Describe various CPU scheduling algorithms Assess CPU scheduling algorithms based on scheduling criteria Explain the issues related to multiprocessor and multicore scheduling Describe various real-time scheduling algorithms Describe the scheduling algorithms used in the Windows, Linux, and Solaris operating systems Apply modeling and simulations to evaluate CPU scheduling algorithms Operating System Concepts – 10th Edition 5.3 Silberschatz, Galvin and Gagne ©2018 Basic Concepts Maximum CPU utilization obtained with multiprogramming CPU–I/O Burst Cycle – Process execution consists of a cycle of CPU execution and I/O wait CPU burst followed by I/O burst CPU burst distribution is of main concern Operating System Concepts – 10th Edition 5.4 Silberschatz, Galvin and Gagne ©2018 Histogram of CPU-burst Times Large number of short bursts Small number of longer bursts Operating System Concepts – 10th Edition 5.5 Silberschatz, Galvin and Gagne ©2018 CPU Scheduler The CPU scheduler selects from among the processes in ready queue, and allocates the a CPU core to one of them Queue may be ordered in various ways CPU scheduling decisions may take place when a
    [Show full text]
  • COS 318: Operating Systems CPU Scheduling
    COS 318: Operating Systems CPU Scheduling Jaswinder Pal Singh Computer Science Department Princeton University (http://www.cs.princeton.edu/courses/cos318/) Today’s Topics u CPU scheduling basics u CPU scheduling algorithms 2 When to Schedule? u Process/thread creation u Process/thread exit u Process thread blocks (on I/O, synchronization) u Interrupt (I/O, clock) 3 Preemptive and Non-Preemptive Scheduling Terminate Exited (call scheduler) Scheduler dispatch Running Block for resource (call scheduler) Yield, Interrupt (call scheduler) Ready Blocked Create Resource free, I/O completion interrupt (move to ready queue) 4 Scheduling Criteria u Assumptions l One process per user and one thread per process l Processes are independent u Goals for batch and interactive systems l Provide fairness l Everyone makes some progress; no one starves l Maximize CPU utilization • Not including idle process l Maximize throughput • Operations/second (min overhead, max resource utilization) l Minimize turnaround time • Batch jobs: time to execute (from submission to completion) l Shorten response time • Interactive jobs: time response (e.g. typing on a keyboard) l Proportionality • Meets user’s expectations Scheduling Criteria u Questions: l What are the goals for PCs versus servers? l Average response time vs. throughput l Average response time vs. fairness Problem Cases u Completely blind about job types l Little overlap between CPU and I/O u Optimization involves favoring jobs of type “A” over “B” l Lots of A’s? B’s starve u Interactive process trapped
    [Show full text]
  • CPU Scheduling
    CPU Scheduling CSE 2431: Introduction to Operating Systems Instructor: Adam C. Champion, Ph.D. Reading: Chapter 5, [OSC] (except Sections 5.7.2, 5.8) 1 Contents • Why Scheduling? • Basic Concepts of Scheduling • Scheduling Criteria • A Basic Scheduling Algorithm (FCFS) • Scheduling Algorithms (SJF, RR, etc.) • Thread Scheduling 2 Why Scheduling? • Deciding which process/thread should occupy the resource (CPU, disk, etc.) (CPU (horsepower)) I want to ride it Whose turn is it? Process 1 Process 2 Process 3 3 Contents • Why Scheduling? • Basic Concepts of Scheduling • Scheduling Criteria • A Basic Scheduling Algorithm (FCFS) • Scheduling Algorithms (SJF, RR, etc.) • Thread Scheduling 4 When to Schedule? 5 Contents • Why Scheduling? • Basic Concepts of Scheduling • Scheduling Criteria • Basic Scheduling Algorithm (FCFS) • Scheduling Algorithms (SJF, RR, etc.) • Thread Scheduling 6 Scheduling Objectives • Fairness (nobody cries) • Priority (ladies first) • Efficiency (make best use of equipment) • Encourage good behavior (good boy/girl) • Support heavy loads (degrade gracefully) • Adapt to different environments (interactive, real-time, multimedia) 7 Performance Criteria • Fairness: No starvation • Efficiency: keep resources as busy as possible • Throughput: # of processes completed in unit time • Turnaround time (also called elapsed time): Amount of time to complete a certainprocess from its beginning • Waiting Time: Amount of time process has been waiting in ready queue • Response Time: Amount of time from when a request was first submitted until first response is produced. • Policy Enforcement: Enforcing that stated policy is carried out • Proportionality: Meet users' expectations 8 • Meeting Deadlines: Avoid losing data Different Systems, Different Foci • For all – Fairness, policy enforcement, resource balance • Batch Systems – Max throughput, min turnaround time, max CPU utilization • Interactive Systems – Min Response time, best proportionality • Real-Time Systems – predictability, meeting deadlines 9 Preemptive vs.
    [Show full text]
  • Diagnosing, Predicting and Managing Application Performance in Virtualised Multi-Tenant Clouds
    Imperial College London Department of Computing Diagnosing, Predicting and Managing Application Performance in Virtualised Multi-Tenant Clouds Xi Chen Submitted in part fulfilment of the requirements for the degree of Doctor of Philosophy in Computing of Imperial College London and the Diploma of Imperial College London July 2016 Abstract As the computing industry enters the cloud era, multicore architectures and virtualisation technologies are replacing traditional IT infrastructures for several reasons including reduced infrastructure costs, lower energy consumption and ease of management. Cloud-based software systems are expected to deliver reliable performance under dynamic workloads while efficiently allocating resources. However, with the increasing diversity and sophistication of the environ- ment, managing performance of applications in such environments becomes difficult. The primary goal of this thesis is to gain insight into performance issues of applications run- ning in clouds. This is achieved by a number of innovations with respect to the monitoring, modelling and managing of virtualised computing systems: (i) Monitoring { we develop a mon- itoring and resource control platform that, unlike early cloud benchmarking systems, enables service level objectives (SLOs) to be expressed graphically as Performance Trees; these source both live and historical data. (ii) Modelling { we develop stochastic models based on Queue- ing Networks and Markov chains for predicting the performance of applications in multicore virtualised computing systems. The key feature of our techniques is their ability to charac- terise performance bottlenecks effectively by modelling both the hypervisor and the hardware. (iii) Managing { through the integration of our benchmarking and modelling techniques with a novel interference-aware prediction model, adaptive on-line reconfiguration and resource control in virtualised environments become lightweight target-specific operations that do not require sophisticated pre-training or micro-benchmarking.
    [Show full text]
  • Chapter 5: CPU Scheduling
    Chapter 5: CPU Scheduling Operating System Concepts – 10th Edition Silberschatz, Galvin and Gagne ©2018, revised by S. Weiss 2020 Chapter 5: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Thread Scheduling Multi-Processor Scheduling Real-Time CPU Scheduling Operating Systems Examples Algorithm Evaluation Operating System Concepts – 10th Edition 5.2 Silberschatz, Galvin and Gagne ©2018, revised by S. Weiss 2020 Objectives Understand difference between different types of scheduling Describe various CPU scheduling algorithms Assess CPU scheduling algorithms based on scheduling criteria Explain the issues related to multiprocessor and multicore scheduling Describe various real-time scheduling algorithms Describe the scheduling algorithms used in the Linux operating system Operating System Concepts – 10th Edition 5.3 Silberschatz, Galvin and Gagne ©2018, revised by S. Weiss 2020 Medium Term Scheduling The medium term scheduler controls the degree of multi- programming. It admits processes into memory to compete for the CPU Also called a swapper when it is used to control the process mix by removing and restoring processes Goal of medium term scheduler is to keep a good mix of processes in memory so that the CPU is always kept busy. Operating System Concepts – 10th Edition 5.4 Silberschatz, Galvin and Gagne ©2018, revised by S. Weiss 2020 Basic Problem Objective of multi-programming is to have some process running at all times, to maximize CPU utilization. Need to keep many programs in memory Process executes on CPU until it executes some instruction for which it has to wait (e.g. I/O) Process is removed from CPU and another must be chosen to run This is purpose of CPU scheduler: which process should run? Operating System Concepts – 10th Edition 5.5 Silberschatz, Galvin and Gagne ©2018, revised by S.
    [Show full text]
  • Lecture 5: September 18 5.1 Scheduling
    CMPSCI 377 Operating Systems Fall 2013 Lecture 5: September 18 Lecturer: Prashant Shenoy Scribe: Armand Halbert 5.1 Scheduling 5.1.1 Types of Schedulers Operating systems often utilize two types of schedulers: a long-term scheduler (also known as an admission scheduler or high-level) and a short-term scheduler (also known as a dispatcher). The names suggest the relative frequency with which these functions are performed. In this class when we talk about scheduling, we generally mean short-term scheduling. We also make some simplifying assumptions when talking about scheduling algorithms: one process per user, one thread per process, and that processes are independent of one another. The algorithms we will look at were developed in the 1970s when these assumptions were more realistic. A research problem today is how to relax these assumptions. In general a scheduler will want to favour I/O bound jobs over CPU bound jobs. An I/O bound job is one that does little actual computation and spends most of it's time waiting for I/O. A CPU bound job is the opposite of I/O bound: CPU bound jobs rarely do I/O and will hardly ever give up their time on the CPU before the scheduler forces them off the CPU. Wanting to maximize the use of the hardware leads to an overlap of I/O and computation (because I/O devices can be busy while other jobs are using the CPU). 5.1.1.1 Long-term Scheduler The long-term, or admission, scheduler decides which jobs or processes are to be admitted to the ready queue and how many processes should be admitted into the ready queue.
    [Show full text]
  • Operating System
    OPERATING SYSTEM For COMPUTER SCIENCE OPERATING SYSTEM . SYLLABUS Processes, threads, interprocess communication, concurrency and synchronization. Deadlock. CPU scheduling. Memory management and virtual memory. File systems. ANALYSIS OF GATE PAPERS Exam Year 1 Mark Ques. 2 Mark Ques. Total 2003 2 5 12 2004 3 4 11 2005 - 2 4 2006 1 8 17 2007 2 6 14 2008 2 5 12 2009 2 5 12 2010 3 2 7 2011 4 2 8 2012 1 4 9 2013 2 4 10 2014 Set-1 2 3 8 2014 Set-2 1 3 7 2014 Set-3 1 3 7 2015 Set-1 2 4 10 2015 Set-2 2 3 8 2015 Set-3 2 2 6 2016 Set-1 1 4 9 2016 Set-2 1 3 7 2017 Set-1 2 2 6 2017 Set-2 2 2 6 2018 4 6 10 © Copyright Reserved by Gateflix.in No part of this material should be copied or reproduced without permission CONTENTS Topics Page No 1. PROCESS AND DEADLOCK 1.1 Process Concept 1 1.2 Process States 1 1.3 Degree of Multiprogramming 1 1.4 Process Control Block 1 1.5 Threads 1 1.6 CPU Scheduling 2 1.7 Scheduling Algorithms 3 1.8 Deadlock 8 1.9 Three Types of Problems 12 1.10 Procedure Consumer Problem 12 1.11 Printer And Spooler Problem 13 1.12 Solution to IPC/ Synchronization 13 1.13 Solution to Producer Consumer Problem using Semaphores 15 1.14 Solution to Reader & Writer Problem 15 Gate Questions 17 2. MEMORY MANAGEMENT 2.1 Introduction 53 2.2 Single Partition Allocation 55 2.3 External & Internal Fragmentation 56 2.4 Segmentation 58 2.5 Fragmentation 59 2.6 Virtual Memory 59 2.7 Page Replacement 60 2.8 Demand Paging 61 2.9 Page-Replacement 61 2.10 Counting Algorithms 63 2.11 Allocation of Frames 63 2.12 Thrashing 64 3.
    [Show full text]
  • A New Dynamic Round Robin and SRTN Algorithm with Variable Original Time Slice and Intelligent Time Slice for Soft Real Time Systems
    International Journal of Computer Applications (0975 – 8887) Volume 16– No.1, February 2011 A New Dynamic Round Robin and SRTN Algorithm with Variable Original Time Slice and Intelligent Time Slice for Soft Real Time Systems H.S. Behera Simpi Patel Bijayalakshmi Panda Sr. Lecturer Student Student Veer Surendra Sai University Of Veer Surendra Sai University Of Veer Surendra Sai University Of Technology, Burla Technology, Burla Technology, Burla Sambalpur, India Sambalpur, India Sambalpur, India ABSTRACT some critical tasks might be delayed due to some system- The main objective of the paper is to improve the Round oriented processes that are bulky and time-consuming and not Robin (RR) algorithm using dynamic ITS by coalescing it preemptive.Adaptive real-time system adjusts the internal with Shortest Remaining Time Next (SRTN) algorithm thus strategies by giving response to the changes that are carried reducing the average waiting time, average turnaround time out in the environment. and the number of context switches. The original time slice has been calculated for each process based on its burst 1.1 Preliminaries time.This is mostly suited for soft real time systems where A program in execution is called a process. The processes, meeting of deadlines is desirable to increase its performance. waiting to be assigned to a processor are put in a queue called The advantage is that processes that are closer to their ready queue. CPU Utilization is the capacity to keep the CPU remaining completion time will get more chances to execute busy as much as possible as long as there are jobs to process.
    [Show full text]
  • CPU Scheduling
    CPU Scheduling CSE 2431: Introduction to Operating Systems Reading: Chapter 6, [OSC] (except Sections 6.7.2–6.8) 1 Contents • Why Scheduling? • Basic Concepts of Scheduling • Scheduling Criteria • A Basic Scheduling Algorithm (FCFS) • Scheduling Algorithms (SJF, RR, etc.) • Thread Scheduling 2 Why Scheduling? • Deciding which process/thread should occupy the resource (CPU, disk, etc.) (CPU (horsepower)) I want to ride it Whose turn is it? Process 1 Process 2 Process 3 3 Contents • Why Scheduling? • Basic Concepts of Scheduling • Scheduling Criteria • A Basic Scheduling Algorithm (FCFS) • Scheduling Algorithms (SJF, RR, etc.) • Thread Scheduling 4 When to Schedule? 5 Contents • Why Scheduling? • Basic Concepts of Scheduling • Scheduling Criteria • Basic Scheduling Algorithm (FCFS) • Scheduling Algorithms (SJF, RR, etc.) • Thread Scheduling 6 Scheduling Objectives • Fairness (nobody cries) • Priority (ladies first) • Efficiency (make best use of equipment) • Encourage good behavior (good boy/girl) • Support heavy loads (degrade gracefully) • Adapt to different environments (interactive, real- time, multimedia) 7 Performance Criteria • Fairness: No starvation • Efficiency keep resources as busy as possible • Throughput: # of processes completed in unit time • Turnaround Time (also called elapsed time): Amount of time to complete a particular process from its beginning • Waiting Time: Amount of time process has been waiting in ready queue • Response Time: Amount of time from when a request was first submitted until first response is produced. • Policy Enforcement: Enforcing that stated policy is carried out • Proportionality: Meet users' expectations • Meeting Deadlines: Avoid losing data 8 Different Systems, Different Foci • For all – Fairness, policy enforcement, resource balance • Batch Systems – Max throughput, min turnaround time, max CPU utilization • Interactive Systems – Min Response time, best proportionality • Real-Time Systems – predictability, meeting deadlines 9 Preemptive vs.
    [Show full text]