Preemptive scheduling. Disadvantages of preemptions WCET. Preemption indirect costs 19/10/2018. Cache related preemption delay

Similar documents
Synchronization Protocols. Task Allocation Bin-Packing Heuristics: First-Fit Subtasks assigned in arbitrary order To allocate a new subtask T i,j

Embedded Systems. 4. Aperiodic and Periodic Tasks

Real-Time Systems. Multiprocessor scheduling. Multiprocessor scheduling. Multiprocessor scheduling

Limited Preemptive Scheduling for Real-Time Systems: a Survey

CHAPTER 9 LINEAR MOMENTUM, IMPULSE AND COLLISIONS

Chapter 11. Supplemental Text Material. The method of steepest ascent can be derived as follows. Suppose that we have fit a firstorder

Last Time. Priority-based scheduling. Schedulable utilization Rate monotonic rule: Keep utilization below 69% Static priorities Dynamic priorities

Small signal analysis

ORDINARY DIFFERENTIAL EQUATIONS EULER S METHOD

Shuai Dong. Isaac Newton. Gottfried Leibniz

Additional File 1 - Detailed explanation of the expression level CPD

Real-Time Operating Systems M. 11. Real-Time: Periodic Task Scheduling

Critical sections. Using semaphores. Using semaphores. Using semaphores. How long is blocking time? 17/10/2016. Problems caused by mutual exclusion

Problem Free Expansion of Ideal Gas

Portioned Static-Priority Scheduling on Multiprocessors

1. The number of significant figures in the number is a. 4 b. 5 c. 6 d. 7

Two Methods to Release a New Real-time Task

Specification -- Assumptions of the Simple Classical Linear Regression Model (CLRM) 1. Introduction

Scheduling Motivation

Chapter.4 MAGNETIC CIRCUIT OF A D.C. MACHINE

Physics 111. CQ1: springs. con t. Aristocrat at a fixed angle. Wednesday, 8-9 pm in NSC 118/119 Sunday, 6:30-8 pm in CCLIR 468.

Physics 120. Exam #1. April 15, 2011

Improved Worst-Case Response-Time Calculations by Upper-Bound Conditions

Energy-Aware Fault Tolerance in Fixed-Priority Real-Time Embedded Systems*

Clock-Driven Scheduling (in-depth) Cyclic Schedules: General Structure

Chapter 8: Fast Convolution. Keshab K. Parhi

Improvements on Waring s Problem

On Schedulability Bounds of Static Priority Schedulers

Energy-Efficient Scheduling Fixed-Priority tasks with Preemption Thresholds on Variable Voltage Processors

NP-Completeness : Proofs

This appendix derives Equations (16) and (17) from Equations (12) and (13).

Computer Control: Task Synchronisation in Dynamic Priority Scheduling

Pythagorean triples. Leen Noordzij.

Not at Steady State! Yes! Only if reactions occur! Yes! Ideal Gas, change in temperature or pressure. Yes! Class 15. Is the following possible?

Handling Overload (G. Buttazzo, Hard Real-Time Systems, Ch. 9) Causes for Overload

No! Yes! Only if reactions occur! Yes! Ideal Gas, change in temperature or pressure. Survey Results. Class 15. Is the following possible?

Solution Methods for Time-indexed MIP Models for Chemical Production Scheduling

OPTIMISATION. Introduction Single Variable Unconstrained Optimisation Multivariable Unconstrained Optimisation Linear Programming

Minimizing Cache Overhead via Loaded Cache Blocks and Preemption Placement

ELG3336: Op Amp-based Active Filters

Chapter 6 The Effect of the GPS Systematic Errors on Deformation Parameters

Overhead-Aware Compositional Analysis of Real-Time Systems

Team. Outline. Statistics and Art: Sampling, Response Error, Mixed Models, Missing Data, and Inference

Embedded Systems Development

E Tail Inequalities. E.1 Markov s Inequality. Non-Lecture E: Tail Inequalities

Harmonic oscillator approximation

ONE-DIMENSIONAL COLLISIONS

STOCHASTIC BEHAVIOUR OF COMMUNICATION SUBSYSTEM OF COMMUNICATION SATELLITE

Predictable Execution Model: Concept and Implementation

Improving the Quality of Control of Periodic Tasks Scheduled by FP with an Asynchronous Approach

Computer Control Systems

The Schedulability Region of Two-Level Mixed-Criticality Systems based on EDF-VD

Section 15.6 Directional Derivatives and the Gradient Vector

MULTIPLE REGRESSION ANALYSIS For the Case of Two Regressors

Variable Structure Control ~ Basics

Improving the Sensitivity of Deadlines with a Specific Asynchronous Scenario for Harmonic Periodic Tasks scheduled by FP

Introduction to Interfacial Segregation. Xiaozhe Zhang 10/02/2015

Improvements on Waring s Problem

Worst-case response time analysis of real-time tasks under fixed-priority scheduling with deferred preemption

: Numerical Analysis Topic 2: Solution of Nonlinear Equations Lectures 5-11:

The Karush-Kuhn-Tucker. Nuno Vasconcelos ECE Department, UCSD

Throughput and Delay Scaling of Cognitive Radio Networks with Heterogeneous Mobile Users

Problem #1. Known: All required parameters. Schematic: Find: Depth of freezing as function of time. Strategy:

m = 4 n = 9 W 1 N 1 x 1 R D 4 s x i

College of Computer & Information Science Fall 2009 Northeastern University 20 October 2009

Lecture 2 Solution of Nonlinear Equations ( Root Finding Problems )

Modeling motion with VPython Every program that models the motion of physical objects has two main parts:

Procrastination Scheduling for Fixed-Priority Tasks with Preemption Thresholds

Valid Inequalities Based on Demand Propagation for Chemical Production Scheduling MIP Models

On Pfaff s solution of the Pfaff problem

Two-Layered Model of Blood Flow through Composite Stenosed Artery

Scattering of two identical particles in the center-of. of-mass frame. (b)

Module 5. Cables and Arches. Version 2 CE IIT, Kharagpur

Estimation of Finite Population Total under PPS Sampling in Presence of Extra Auxiliary Information

The Electric Potential Energy

Using non-preemptive regions and path modification to improve schedulability of real-time traffic over priority-based NoCs

a = f s,max /m = s g. 4. We first analyze the forces on the pig of mass m. The incline angle is.

MODELLING OF TRANSIENT HEAT TRANSPORT IN TWO-LAYERED CRYSTALLINE SOLID FILMS USING THE INTERVAL LATTICE BOLTZMANN METHOD

Non-Preemptive and Limited Preemptive Scheduling. LS 12, TU Dortmund

NUMERICAL DIFFERENTIATION

11 Tail Inequalities Markov s Inequality. Lecture 11: Tail Inequalities [Fa 13]

Stanford University CS254: Computational Complexity Notes 7 Luca Trevisan January 29, Notes for Lecture 7

Resource Sharing. CSCE 990: Real-Time Systems. Steve Goddard. Resources & Resource Access Control (Chapter 8 of Liu)

A High Throughput String Matching Architecture for Intrusion Detection and Prevention

S Mobile Communications Services and Systems

Main components of the above cycle are: 1) Boiler (steam generator) heat exchanger 2) Turbine generates work 3) Condenser heat exchanger 4) Pump

Velocity or 60 km/h. a labelled vector arrow, v 1

TOPICS MULTIPLIERLESS FILTER DESIGN ELEMENTARY SCHOOL ALGORITHM MULTIPLICATION

Physics 40 HW #4 Chapter 4 Key NEATNESS COUNTS! Solve but do not turn in the following problems from Chapter 4 Knight

Instantaneous Utilization Based Scheduling Algorithms for Real Time Systems Radhakrishna Naik 1, R.R.Manthalkar 2 Pune University 1, SGGS Nanded 2

A New Recursive Method for Solving State Equations Using Taylor Series

Numerical Investigation of Power Tunability in Two-Section QD Superluminescent Diodes

We name Functions f (x) or g(x) etc.

Two Approaches to Proving. Goldbach s Conjecture

This appendix presents the derivations and proofs omitted from the main text.

Online story scheduling in web advertising

Degrees of Freedom. Spherical (ball & socket) 3 (3 rotation) Two-Angle (universal) 2 (2 rotation)

Population element: 1 2 N. 1.1 Sampling with Replacement: Hansen-Hurwitz Estimator(HH)

Design By Emulation (Indirect Method)

SE Story Shear Frame. Final Project. 2 Story Bending Beam. m 2. u 2. m 1. u 1. m 3. u 3 L 3. Given: L 1 L 2. EI ω 1 ω 2 Solve for m 2.

Transcription:

19/1/18 Preemptve cedulng Mot o wor on cedulng a been ocued on ully preemptve ytem, becaue tey allow ger reponvene: Preemptve Non Preemptve Dadvantage o preempton However, eac preempton a a cot: ontext wtc cot: tme taen by te ceduler to upend te runnng ta, wtc te context, and dpatc te new ncomng ta. RPD: 1 ace related preempton delay delay ntroduced by g prorty ta tat evct cace lne contanng data ued n te uture: wrte B ace AB wrte A read A cace t read A cace m Extra tme needed or readng A, tu ncreang te WE o. WE a executng alone (or non preemptvely) on a ngle PU: a experencng preempton by ger prorty ta: Preempton ndrect cot Ppelne cot: tme to lu te ppelne wen a ta nterrupted and to rell t wen ta reumed. Bu cot: tme pent watng or te bu due to addtonal conlct wt I/O devce, caued by extra accee to te RAM or te extra cace me. WE NP NP = + RPD RPD context Bu wtc Ppelne 1

19/1/18 Preempton ndrect cot Preempton cot Addtonal preempton: te extra executon tme alo ncreae te number o preempton: WE may ncreae up to 5% n te preence o preempton (le ecency): Non Preemptve +5% Preemptve WE WE WE become alo more varable (le predctablty): A a conequence, WE etmaton or preemptve ta are ger le predctable (gly varable) WE dtrbuton Inluence on WE non-preemptve preemptve Advantage o NP cedulng It reduce context-wtc overead: mang WE maller and more predctable. It mple te acce to ared reource: No emapore are needed or crtcal ecton It reduce tac ze: a can are te ame tac, nce no more tan one ta can be n executon mn It allow acevng zero I/O Jtter: nng_tme tart_tme = (contant) Advantage o NP cedulng Dadvantage o NP cedulng In xed prorty ytem can mprove cedulablty: 4 U.97 5 7 RM 1 5 1 15 5 5 In general, NP cedulng reduce cedulablty ntroducng blocng delay n g prorty ta: NP-RM 1 7 14 5 1 15 5 1 deadlne m 8 5 5 deadlne m deadlne m 7 14 1 8 5

19/1/18 Dadvantage o NP cedulng Non preemptve anomale e utlzaton bound under non preemptve cedulng drop to zero: 1 1 1 1 = double peed deadlne m = 1 1 U = + 1 Non-preemptve analy Analy o non-preemptve ytem more complex, becaue te larget repone tme may not occur n te rt ob ater te crtcal ntant. Non-preemptve analy Hence, te analy o mut be carred out or multple ob, untl all ta wt prorty P are completed. 1 6 1 18 4 1 6 1 18 4 1 1 Sel-pung penomenon Hg prorty ob actvated durng non-preemptve executon o lower prorty ta are pued aead and ntroduce ger delay n ubequent ob o te ame ta. NOE Analy can reduce to te rt ob o eac ta and only 1. te ta et eable under preemptve cedulng;. All deadlne are le tan or equal to perod. Repone tme analy (or preemptvely eable ta et wt D ) B I r = max{ r } B max{ } P P p() et o ta wt prorty ger tan P lp() et o ta wt prorty lower tan P Wort-cae Occuped tme: due to blocng B rom lp() ta and ntererence I rom p() ta. B I NOE: (or preemptvely eable ta et wt D ) r Hence x + 1 mut be ued ntead o x Repone tme analy = max{ r } R te end o I cannot concde wt te actvaton o a ger prorty ta, becaue t would ncreae I. B 1 1 = + 1

19/1/18 Repone tme analy rade-o oluton (or preemptvely eable ta et wt D ) () ( ) B B 1 1 1 1 ( 1) 1 e ollowng oluton can be adopted to balance between te two extreme approace: Preempton reold Allow preempton only to ta wt g mportance Deerred Preempton Allow preempton only ater a gven tme nterval Stop wen ( ) ( 1) Fxed Preempton Pont Allow preempton only at gven pont n te ta code R = + 19 Preempton reold (P) Eac ta a two prorte: P nomnal prorty: ued to enqueue te ta n te ready queue and to preempt treold prorty: ued or ta executon ( P ) Fully preemptve 1 Uneable ta et 5 deadlne m 4 6 8 1 1 14 16 18 treold nomnal A ta can be preempted by only P > Fully non preemptve 1 deadlne m 5 4 6 8 1 1 14 16 18 But eable wt P Repone tme analy (P) P 1 1 5 1 can preempt cannot preempt 1 cannot preempt NOE: e ame eable cedule obtaned by plttng n two non preemptve cunc: q 1 =,q = P can only be preempted by ta : P > P B ( 1) : P P : P can only be preempted by ta : P > 1 1 4

19/1/18 Deerred Preempton Interetng problem Eac ta can deer preempton up to q Gven a preemptvely eable ta et, nd te longet non-preemptve nterval Q or eac ta tat tll preerve cedulablty. Under EDF Barua - ERS 5 q Under Fx. Pr. Gang-Buttazzo, RSA 9 q B max{ q } P P Oten, g prorty ta ave Q =, meanng tat tey can execute ully non preemptvely. Blocng tolerance o compute Q, we need to nd te maxmum blocng tme tat can be tolerated by a ta, called blocng tolerance ( ): 1 B U lub ( ) U 1 lub( ) U A mple bound or Q e longet non preemptve nterval Q related wt te maxmum blocng tme tat can be tolerated by ger prorty ta. It mut be were Hence: B B max{ q } P P P P max{ q } A mple bound or Q A mple bound or Q = 1 = max{ q } P P max {q, q, q 4 } 1 max {q, q 4 } = 1 Q 1 = Q = mn{q -1, -1 } = q 4 = 1 q 1 = = q mn{ 1, } q 4 mn{ 1,, } 5

19/1/18 Ung Q Expermental Reult Once Q computed, t can be ued a ollow: Partton eac ta nto a et o NP regon no larger tan Q nertng utable preempton pont. Incapulate crtcal ecton nto NP regon, avodng complex concurrency control protocol. Avg. # o preempton x 1 4 1 1 8 6 n = 16 Fully preemptve 7% preempton pont crtcal ecton 4 Ung Q Q Q.1...4.5.6.7.8.9 U Fxed Preempton Pont (FPP) Eac ta dvded n m cun: q,1... q,m It can only be preempted between cun Example Let: 1 be ully non preemptve: q 11 = 1 = contng o NP cun: q 1 =1,q =, =4 be ully non preemptve: q 1 = = 1 6 1 18 4 9 18 7 B max{ q P P max } Note tat: e wort cae repone tme o doe not occur n te rt ntance. e ntererence on larger tan B + 1. Repone me Analy (FPP) Repone me Analy (FPP) Mut be carry out up to te buy perod o eac ta. 1 6 1 18 4 1 6 1 18 4 9 18 7 9 18 7 Buy perod o Level- buy perod It te nterval n wc te proceor buy executng ta wt prorty ger tan or equal to P, ncludng blocng tme. Buy perod o Level- buy perod It can be computed a te ortet nterval tat ate: L Intal value can be: B L : P P () L B : P P up to ob N : N L 6

19/1/18 Repone me Analy (FPP) B ( 1) q R ( 1) [1, N ] R max R (-1) q q 1 NOE: : P P N () L ( 1) q Repone me Analy (FPP) or (=1 to n) { N L / () = 1 do { B ( 1) ( 1) q q R ( 1) ++ } wle ( N ) } return(feasible) (R > R ) ten R = R q 1 : P P (R >D ) ten return(unfeasible) Specal cae Fully non preemptve cedulng q B max{ } Deerred Preempton q P P B max{ Q } P P Fnal remar Preempton reold are eay to pecy, but t dcult to predct te number o preempton and were tey occur large preempton overead Deerred Preempton allow boundng te number o preempton but t dcult to predct were tey occur. Note tat te analy aume Fxed Preempton Pont allow more control on preempton and can be elected on purpoe (e.g., to mnmze overead, tac ze, and reduce WE). A large nal cun n reduce te ntererence rom pta (ence R ), but create more blocng to p-ta. q 7