Real-Time Scheduling and Resource Management
|
|
- Katherine Marsh
- 5 years ago
- Views:
Transcription
1 ARTIST2 Summer School 2008 in Europe Autrans (near Grenoble), France September 8-12, 2008 Real-Time Scheduling and Resource Management Lecturer: Giorgio Buttazzo Full Professor Scuola Superiore Sant Anna 1
2 Outline Importance of scheduling in embedded systems Review of main scheduling algorithms Schedulability analysis Taking into account shared resources Preemptive vs. Non preemptive scheduling Bounding delays and jitter Managing oveloads Design issues: integrating RT and control theory 2 2
3 Software Control Systems processor D/A actuators Environment A/D sensors Task Memory buffer 3
4 Typical task structure buffer <read data> <process data> <write data> <wait for next activation> buffer 4
5 Activation modes Periodic task (time driven) timer A task is automatically activated by the kernel at regular time intervals Task body Aperiodic task (event driven) A task is activated upon the arrival of an event (interrupt or explicit activation) event Task body 5
6 Complex control applications Hierarchical design Many periodic activities running a different rates Many event-driven routines 40 ms 15 ms 1 ms 4 ms sensor motor sensor motor 6
7 Task scheduling When more tasks are ready to execute, the order of execution is decided by the scheduler: READY queue CPU 7
8 Importance of scheduling It affects task response times It affects delay and jitter in control loops It affects execution times (preemptions destroy cache data and prefetch queues) It can be used to cope with overload conditions It can be used to optimize resource usage It can be used to save energy in processors with voltage scaling (energy-aware scheduling) 8
9 Periodic Task Scheduling We have n periodic tasks: {τ 1, τ 2 τ n } τ i (C i, T i, D i ) period relative deadline absolute deadline d i,k Ti Di Ci r i,1 = Φ i r i,k r i,k+1 t di,k Goal Execute all tasks within their deadlines Verify feasibility before runtime r i,k = Φi + (k 1) T i d i,k = r i,k + D i 9
10 Optimal Priority Assignments Rate Monotonic (RM): p i 1/T i (static) D i = T i Deadline Monotonic (DM): p i 1/D i (static) D i T i Earliest Deadline First (EDF): p i 1/d i (dynamic) d i,k = r i,k + D i 10
11 Basic results Assumptions: Independent tasks Φ i = 0 D i = T i In 1973, Liu & Layland proved that a set of n periodic tasks can be feasibly scheduled under RM if n i= 1 C T i i n ( 2 1 n 1) i under EDF if and only if 1 n i= 1 C T i 11
12 Schedulability bound for n U lub ln CPU% RM EDF n 69% 12
13 An unfeasible RM schedule U p = = τ 1 τ deadline miss 13
14 EDF vs. RM Schedule EDF τ 1 τ RM τ τ deadline miss 14
15 Schedulability region A more useful approach is to identify a region in the space of task parameters where the system is schedulable by an algorithm. par2 Infeasible task set feasible region Sensitivity analysis to determine how to change parameters par1 15
16 U Schedulability region EDF RM The U-space n i= 1 n i= 1 U i 1 U i n(2 1/ n 1) U 2 16
17 Schedulability region U 1 1 The U-space C i T i 0.83 τ τ /2 EDF U p = = 0.94 RM U 2 4/
18 The Hyperbolic Bound In 2000, Bini et al. proved that a set of n periodic tasks is schedulable with RM if: n ( U i + 1) 2 i= 1 18
19 U Schedulability region EDF RM The U-space n n i= 1 i= 1 U i 1 U i n(2 1/ n 1) U 2 19
20 Schedulability region U The U-space n n i= 1 U i 1 U i n(2 1/ n 1) EDF i= 1 n ( U i + 1) 2 RM i= 1 U
21 Handling tasks with D < T D i T i τ i r i,k C i d i,k r i,k+1 t Scheduling algorithms Deadline Monotonic: p i 1/D i (static) Earliest Deadline First: p i 1/d i (dynamic) 21
22 How to guarantee feasibility? D i T i τ i r i,k C i d i,k r i,k+1 t Fixed priority: Response Time Analysis (RTA) EDF: Processor Demand Criterion (PDC) 22
23 Response Time Analysis [Audsley, 1990] For each task τ i compute the interference due to higher priority tasks: I i = C k D k < D i Compute its response time as R i = C i + I i Verify if R i D i 23
24 Computing the interference τ k τ i 0 R i Interference of τ k on τ i in the interval [0, R i ]: I = ik R T i k C k Interference of high priority tasks on τ i : i 1 I i = k = 1 R T i k C k 24
25 Computing the response time i 1 Ri = C i + k = 1 R T i k C k Iterative solution: 0 R i = C i R s i = C i i 1 + k = 1 R ( s 1) i T k C k iterate until s R i > R ( s 1) i 25
26 Processor Demand Criterion [Baruah, Howell, Rosier 1990] For checking the existence of a feasibile schedule under EDF In any interval of time, the computation demanded by the task set must be no greater than the available time. t, t > 0, g( t, t ) ( t t )
27 Processor Demand t 1 t 2 The demand in [t 1, t 2 ] is the computation time of those jobs started at or after t 1 with deadline less than or equal to t 2 : g( t, t ) 1 2 = di t r t i 2 1 C i 27
28 Processor Demand For synchronous task sets we can only analyze intervals [0,L] τ i 0 g(0, L) = n i= 1 L D T i i + T i C i L D i T i + D i 2T i + D i 3T i + D i 28 L
29 Processor Demand Test L > 0 n i=1 L D T i i + T i C i L 29
30 Example τ 1 τ 2 g(0, L) L 2 0 L 30
31 Summarizing: RM vs. EDF RM D i = T i Suff.: polynomial LL: ΣU i n(2 1/n 1) HB: Π(U i +1) 2 Exact O(n) pseudo-polynomial RTA i D i T i pseudo-polynomial Response Time Analysis R i D i i 1 Ri = C i + k = 1 R T i k C k EDF polynomial: ΣU i 1 O(n) pseudo-polynomial Processor Demand Analysis L > 0, g(0, L) L 31
32 Handling shared resources Problems caused by mutual exclusion 32
33 Critical sections τ 1 τ 2 wait(s) globlal memory buffer wait(s) x = 3; y = 5; write int x; int y; read a = x+1; b = y+2; signal(s) c = x+y; signal(s) 33
34 Blocking on a semaphore τ 1 τ 2 p 1 > p 2 Δ τ 1 CS CS τ 2 It seems that the maximum blocking time for τ1 is equal to the length of the critical section of τ2, but 34
35 Priority Inversion priority Δ Occurs when a high priority task is blocked by a lower-priority task a for an unbounded interval of time. 35
36 Resource Access Protocols Under fixed priorities Non Preemptive Protocol (NPP) Highest Locker Priority (HLP) Priority Inheritance (PIP) [Sha-Rajkumar-Lehoczcky, 90] Priority Ceiling (PCP) [Sha-Rajkumar-Lehoczcky, 90] Under EDF Non Preemptive Protocol (NPP) Dynamic Priority Inheritance (D-PIP) [Spuri, 98] Dynamic Priority Ceiling (D-PCP) [Chen-Lin, 90] Stack Resource Policy (SRP) [Baker, 90] 36
37 Guarantee when D = T Compute the maximum blocking time for each task Inflate C i by B i Extended LL test: RM i 1 i = k 1 C T k k + C i + T i B i i ( 2 1 /i 1) EDF C C + i 1 k i i + k = 1 Tk Ti B i 1 37
38 Guarantee when D T Under DM a task set is schedulable if i R i D i i 1 Ri = Ci + B i + k = 1 R T i k C k Under EDF a task set is schedulable if U < 1 and i L B i n + k =1 L + T k T k D k C k L 38
39 Non-preemtive scheduling It is a special case of preemptive scheduling where all tasks share a single resource for their entire duration. τ 1 R τ 2 R τ 3 R The max blocking time for task τ i is given by the largest C k among the lowest priority tasks: B i = max{c k : P k < P i } 39
40 Advantages of NP scheduling It reduces runtime overhead Less context switches No semaphores are needed for critical sections It reduces stack size, since no more than one task can be in execution. It preserves program locality, improving the effectiveness of Cache memory Pipeline mechanisms Prefetch queues 40
41 Advantages of NP scheduling As a consequence, task execution times are Smaller More predictable distribution non-preemptive preemptive C min C 41
42 RM Advantages of NP scheduling In fixed priority systems can improve schedulabiilty: 2 4 U = τ τ 2 0 NP-RM deadline miss τ τ
43 Disadvantages of NP scheduling In general, NP scheduling reduces schedulability. The utilization bound under non preemptive scheduling drops to zero: τ 1 τ 2 T 1 C 1 = ε C 2 =T 1 T 2 U = ε C T 1 43
44 Trade-off solutions Tunable Preemptive Systems Compute the longest non-preemptive section that allows a feasible schedule [Baruah-Bertogna, 08]. Allow preemption only in certain points in the code. Task code pp 1 pp 2 pp 1 pp 2 pp 3 pp 3 preemption points 44
45 Handling Jitter & Delay Jitter for an event The maximum time variation in the occurrence of a particular event in two consecutive jobs. In many control applications, delay and jitter can cause instability or jerky behavior 45
46 Definitions Start time delay (Input Latency): INL i,k = s i,k r i,k τ i r i,1 s i,1 r i,2 r i,3 s i,2 s i,3 Start time Jitter (Input Jitter): Absolute: INJ abs = max (s i,k r i,k ) min (s i,k r i,k ) i k Relative: INJ rel = max (s i,k r i,k ) (s i,k-1 r i,k-1 ) i k k 46
47 Definitions Response Time (Output Latency): R i,k = f i,k r i,k τ i r i,1 f i,1 r i,2 r i,3 f i,2 f i,3 Response Time Jitter (Output Jitter): Absolute: RTJ abs = max (f i,k r i,k ) min (f i,k r i,k ) i k Relative: RTJ rel = max (f i,k r i,k ) (f i,k-1 r i,k-1 ) i k k 47
48 Definitions Input-Output Latency: IOL i,k = f i,k s i,k τ i s i,1 f i,1 s i,2 f i,2 s i,3 f i,3 Input-Output Jitter: Absolute: IOJ abs = max (f i,k s i,k ) min (f i,k s i,k ) i k Relative: IOJ rel = max (f i,k s i,k ) (f i,k-1 s i,k-1 ) i k k 48
49 Cause of delays and jitter τ τ task parameters number of tasks total load activation phases scheduling algorithm 49
50 Jitter under RM INJ RTJ IOJ τ τ τ Low priority tasks experience very high delay and jitter 50
51 Jitter under EDF INJ RTJ IOJ τ τ τ For a little increase of RTJ 1, RTJ 3 decreases a lot IOJ = 0 for all the tasks 51
52 Jitter under RM and EDF Normalized Avg. RTJ U = 0.9 N = 10 EDF RM Task number (ordered by increasing periods) 10 52
53 How to handle delay and jitter Two main methods can be used to reduce the effect of delay and jitter: 1. compensate them by proper control actions; 2. reduce them as much as possible. Even when compensation is used, reducing delay and jitter improves system performance Hence we concentrate on reduction methods 53
54 Jitter Reduction methods Three methods can be used to reduce the jitter caused by task interference: 1. Task Splitting 2. Advancing Deadlines 3. Non Preemptive Scheduling 54
55 Reducing Jitter by Task Splitting input part processing part output part The idea is to force input and output parts to execute in a time-triggered fashion, using timers: 55
56 Reducing Jitter by Task Splitting Advantages 1. Jitter is reduced at the minimum possible value; 2. If input and output parts are small, this method is effective for any task, independently of the scheduler and task parameters. 56
57 Reducing Jitter by Task Splitting Disadvantages 1. Extra effort to be implemented; 2. Jitter is reduced at the expense of delay; 3. Input and output parts create extra interference which complicates the analysis and reduces schedulability; 4. Input and output parts may compete and need to be scheduled with some policy. 57
58 Reducing Jitter by Task Splitting Interfering I/O parts τ 1 τ 2 τ 3 τ 4 58
59 Reducing Jitter by Advancing Deadlines The idea is to advance task deadlines to reduce the active window in which jobs can be executed: active window active window active window active window 59
60 Reducing Jitter by Advancing Deadlines Advantages 1. Easy to implement (no special support is required from the OS); 2. No extra interference caused by additional timer interrupts; 3. Both delay and jitter are reduced!! 60
61 Reducing Jitter by Advancing Deadlines Disadvantages 1. Not all tasks can reduce jitter to zero. A further reduction can be achieved by proper offsets, but the analysis requires exponential complexity. 2. Advancing deadlines reduces system schedulability. 61
62 Reducing Jitter by Non Preemption Disabling preemtions a task can be delayed, but once started cannot be interrupted: IOL i,k IOL i,k+1 k IOL i,k = C i IOJ i,k = 0 62
63 Reducing Jitter by Non Preemption Example with 3 tasks τ τ τ 3 63
64 Reducing Jitter by Non Preemption Advantages 1. IOJ i = 0 for all tasks; 2. IOL i = C i for all tasks, simplifying the use of delay compensation techniques; 3. Non preemptive execution also simplifies resource management (there is no need to protect critical sections). 4. Non preemptive execution allows stack sharing. 64
65 Reducing Jitter by Non Preemption Disadvantages 1. Non preemption reduces schedulability (analysis must take blocking times into account); 2. The utilization upper bound drops to zero: U 1 0 U 2 0 C 2 > T 1 C 1 0 T 2 65
66 Scheduling under overload conditions 66
67 RM under overloads U = = 1.25 τ τ τ High priority tasks execute at the proper rate Low priority tasks are completely blocked 67
68 EDF under overloads U = = 1.25 τ τ τ All tasks execute at a slower rate No task is blocked 68
69 EDF under overloads Theorem (Cervin 03) If U > 1, EDF executes tasks with an average period T i = T i U. U = 1.25 τ τ 1 T i 8 T i 10 τ 2 τ τ 2 τ
70 Exploiting control flexibility Relaxing timing constraints The idea is to reduce the load by increasing deadlines and/or periods. Each task must specify a range of values in which its period must be included. Periods are increased during overloads, and reduced when the overload is over. Many control applications allow timing flexibility 70
71 Examples: altimeter reading The smaller the altitude, the higher the acquisition rate: Low rate High rate 71
72 Obstacle avoidance The closer the obstacle, the higher the acquisition rate: us Low rate us High rate 72
73 Engine control Some tasks need to be activated at specific angles of the motor axis: the higher the speed, the higher the rate. ω 73
74 Elastic task model A periodic task τ i is characterized by: (C i, T i-min, T i-max, E i ) Tasks utilizations are treated as elastic springs The resistance of a task to a period variation is controlled by an elastic coefficient E i E i τ i r i T i0 t T i-min T i-max 74
75 Compression algorithm During overloads, utilizations must be compressed to bring the load below a desired value U d. τ 1 τ 2 τ 3 τ 4 U d U τ 1 τ 2 τ 3 τ 4 U d U 75
76 Solution for tasks U = U ( U 0 U ) i io d E E i s then: T = i C U i i 76
77 Solution with constraints Iterative solution O(n 2 ): 0 0 L d L 0 F x x F 0 L d x 77
78 Control design issues Design of control laws Traditional approach Mapping to periodic tasks Schedulability analysis No Feasible? Yes Implementation Run time monitoring Disadvantages Repetitive development process Suboptimal performance Suboptimal use of the resources Meet constraints? Yes No 78
79 Control performance Performance Performance as a function of periods T 2 T 1 79
80 T 2 Sensitivity Analysis T 1 80 Feasible region
81 RT & Control codesign Performance T 2 T 1 81
82 Codesign as optimization Generic control law System performance characterization Sampling period Delay Jitter Performance Resource constraints characterization Optimization process T 2 Task parameters T 1 82
83 Conclusions When designing complex embedded systems: 1. Split your system in components, follow a modular design, with hierarchical control levels with precise interface: sensor motor sensor motor 83
84 processor Conclusions 2. Organize software as a set of control tasks with precise timing and resource constraints: D/A actuators Environment A/D sensors
85 Conclusions 3. Estimate worst-case computation times of tasks, using specific tools and testing. 4. Select an appropriate scheduling algorithm and a suitable resource access protocol. 5. Estimate maximum blocking times due non preemptive sections or mutually exclusive resources. 6. Apply schedulability analysis to verify feasibility.
86 Conclusions 7. If possible, use sensitivity analysis and integrate real-time with control issues at early design stages. 8. Exploit system flexibility defining admissible ranges of parameters to cope with overloads. 9. Perform extensive testing and simulation at each implementation step under worst-case scenarios.
Non-Preemptive and Limited Preemptive Scheduling. LS 12, TU Dortmund
Non-Preemptive and Limited Preemptive Scheduling LS 12, TU Dortmund 09 May 2017 (LS 12, TU Dortmund) 1 / 31 Outline Non-Preemptive Scheduling A General View Exact Schedulability Test Pessimistic Schedulability
More informationNon-preemptive Fixed Priority Scheduling of Hard Real-Time Periodic Tasks
Non-preemptive Fixed Priority Scheduling of Hard Real-Time Periodic Tasks Moonju Park Ubiquitous Computing Lab., IBM Korea, Seoul, Korea mjupark@kr.ibm.com Abstract. This paper addresses the problem of
More informationEDF Scheduling. Giuseppe Lipari May 11, Scuola Superiore Sant Anna Pisa
EDF Scheduling Giuseppe Lipari http://feanor.sssup.it/~lipari Scuola Superiore Sant Anna Pisa May 11, 2008 Outline 1 Dynamic priority 2 Basic analysis 3 FP vs EDF 4 Processor demand bound analysis Generalization
More informationLecture 13. Real-Time Scheduling. Daniel Kästner AbsInt GmbH 2013
Lecture 3 Real-Time Scheduling Daniel Kästner AbsInt GmbH 203 Model-based Software Development 2 SCADE Suite Application Model in SCADE (data flow + SSM) System Model (tasks, interrupts, buses, ) SymTA/S
More informationCIS 4930/6930: Principles of Cyber-Physical Systems
CIS 4930/6930: Principles of Cyber-Physical Systems Chapter 11 Scheduling Hao Zheng Department of Computer Science and Engineering University of South Florida H. Zheng (CSE USF) CIS 4930/6930: Principles
More informationBounding the Maximum Length of Non-Preemptive Regions Under Fixed Priority Scheduling
Bounding the Maximum Length of Non-Preemptive Regions Under Fixed Priority Scheduling Gang Yao, Giorgio Buttazzo and Marko Bertogna Scuola Superiore Sant Anna, Pisa, Italy {g.yao, g.buttazzo, m.bertogna}@sssup.it
More informationEmbedded Systems Development
Embedded Systems Development Lecture 3 Real-Time Scheduling Dr. Daniel Kästner AbsInt Angewandte Informatik GmbH kaestner@absint.com Model-based Software Development Generator Lustre programs Esterel programs
More informationTask Models and Scheduling
Task Models and Scheduling Jan Reineke Saarland University June 27 th, 2013 With thanks to Jian-Jia Chen at KIT! Jan Reineke Task Models and Scheduling June 27 th, 2013 1 / 36 Task Models and Scheduling
More informationEDF Scheduling. Giuseppe Lipari CRIStAL - Université de Lille 1. October 4, 2015
EDF Scheduling Giuseppe Lipari http://www.lifl.fr/~lipari CRIStAL - Université de Lille 1 October 4, 2015 G. Lipari (CRIStAL) Earliest Deadline Scheduling October 4, 2015 1 / 61 Earliest Deadline First
More informationCSE 380 Computer Operating Systems
CSE 380 Computer Operating Systems Instructor: Insup Lee & Dianna Xu University of Pennsylvania, Fall 2003 Lecture Note 3: CPU Scheduling 1 CPU SCHEDULING q How can OS schedule the allocation of CPU cycles
More informationEmbedded Systems 15. REVIEW: Aperiodic scheduling. C i J i 0 a i s i f i d i
Embedded Systems 15-1 - REVIEW: Aperiodic scheduling C i J i 0 a i s i f i d i Given: A set of non-periodic tasks {J 1,, J n } with arrival times a i, deadlines d i, computation times C i precedence constraints
More informationReal-Time Systems. Lecture #14. Risat Pathan. Department of Computer Science and Engineering Chalmers University of Technology
Real-Time Systems Lecture #14 Risat Pathan Department of Computer Science and Engineering Chalmers University of Technology Real-Time Systems Specification Implementation Multiprocessor scheduling -- Partitioned
More informationReal-time Scheduling of Periodic Tasks (1) Advanced Operating Systems Lecture 2
Real-time Scheduling of Periodic Tasks (1) Advanced Operating Systems Lecture 2 Lecture Outline Scheduling periodic tasks The rate monotonic algorithm Definition Non-optimality Time-demand analysis...!2
More informationReal-Time Systems. Event-Driven Scheduling
Real-Time Systems Event-Driven Scheduling Hermann Härtig WS 2018/19 Outline mostly following Jane Liu, Real-Time Systems Principles Scheduling EDF and LST as dynamic scheduling methods Fixed Priority schedulers
More informationLecture Note #6: More on Task Scheduling EECS 571 Principles of Real-Time Embedded Systems Kang G. Shin EECS Department University of Michigan
Lecture Note #6: More on Task Scheduling EECS 571 Principles of Real-Time Embedded Systems Kang G. Shin EECS Department University of Michigan Note 6-1 Mars Pathfinder Timing Hiccups? When: landed on the
More informationScheduling Periodic Real-Time Tasks on Uniprocessor Systems. LS 12, TU Dortmund
Scheduling Periodic Real-Time Tasks on Uniprocessor Systems Prof. Dr. Jian-Jia Chen LS 12, TU Dortmund 08, Dec., 2015 Prof. Dr. Jian-Jia Chen (LS 12, TU Dortmund) 1 / 38 Periodic Control System Pseudo-code
More informationLecture 6. Real-Time Systems. Dynamic Priority Scheduling
Real-Time Systems Lecture 6 Dynamic Priority Scheduling Online scheduling with dynamic priorities: Earliest Deadline First scheduling CPU utilization bound Optimality and comparison with RM: Schedulability
More informationReal-time operating systems course. 6 Definitions Non real-time scheduling algorithms Real-time scheduling algorithm
Real-time operating systems course 6 Definitions Non real-time scheduling algorithms Real-time scheduling algorithm Definitions Scheduling Scheduling is the activity of selecting which process/thread should
More informationRUN-TIME EFFICIENT FEASIBILITY ANALYSIS OF UNI-PROCESSOR SYSTEMS WITH STATIC PRIORITIES
RUN-TIME EFFICIENT FEASIBILITY ANALYSIS OF UNI-PROCESSOR SYSTEMS WITH STATIC PRIORITIES Department for Embedded Systems/Real-Time Systems, University of Ulm {name.surname}@informatik.uni-ulm.de Abstract:
More informationNetworked Embedded Systems WS 2016/17
Networked Embedded Systems WS 2016/17 Lecture 2: Real-time Scheduling Marco Zimmerling Goal of Today s Lecture Introduction to scheduling of compute tasks on a single processor Tasks need to finish before
More informationNon-Work-Conserving Non-Preemptive Scheduling: Motivations, Challenges, and Potential Solutions
Non-Work-Conserving Non-Preemptive Scheduling: Motivations, Challenges, and Potential Solutions Mitra Nasri Chair of Real-time Systems, Technische Universität Kaiserslautern, Germany nasri@eit.uni-kl.de
More informationReal-Time Scheduling. Real Time Operating Systems and Middleware. Luca Abeni
Real Time Operating Systems and Middleware Luca Abeni luca.abeni@unitn.it Definitions Algorithm logical procedure used to solve a problem Program formal description of an algorithm, using a programming
More informationEmbedded Systems 14. Overview of embedded systems design
Embedded Systems 14-1 - Overview of embedded systems design - 2-1 Point of departure: Scheduling general IT systems In general IT systems, not much is known about the computational processes a priori The
More informationProcess Scheduling for RTS. RTS Scheduling Approach. Cyclic Executive Approach
Process Scheduling for RTS Dr. Hugh Melvin, Dept. of IT, NUI,G RTS Scheduling Approach RTS typically control multiple parameters concurrently Eg. Flight Control System Speed, altitude, inclination etc..
More informationCEC 450 Real-Time Systems
CEC 450 Real-Time Systems Lecture 3 Real-Time Services Part 2 (Rate Monotonic Theory - Policy and Feasibility for RT Services) September 7, 2018 Sam Siewert Quick Review Service Utility RM Policy, Feasibility,
More informationReal-Time Systems. Event-Driven Scheduling
Real-Time Systems Event-Driven Scheduling Marcus Völp, Hermann Härtig WS 2013/14 Outline mostly following Jane Liu, Real-Time Systems Principles Scheduling EDF and LST as dynamic scheduling methods Fixed
More informationEDF Feasibility and Hardware Accelerators
EDF Feasibility and Hardware Accelerators Andrew Morton University of Waterloo, Waterloo, Canada, arrmorton@uwaterloo.ca Wayne M. Loucks University of Waterloo, Waterloo, Canada, wmloucks@pads.uwaterloo.ca
More informationIN4343 Real Time Systems April 9th 2014, from 9:00 to 12:00
TECHNISCHE UNIVERSITEIT DELFT Faculteit Elektrotechniek, Wiskunde en Informatica IN4343 Real Time Systems April 9th 2014, from 9:00 to 12:00 Koen Langendoen Marco Zuniga Question: 1 2 3 4 5 Total Points:
More informationAndrew Morton University of Waterloo Canada
EDF Feasibility and Hardware Accelerators Andrew Morton University of Waterloo Canada Outline 1) Introduction and motivation 2) Review of EDF and feasibility analysis 3) Hardware accelerators and scheduling
More informationClock-driven scheduling
Clock-driven scheduling Also known as static or off-line scheduling Michal Sojka Czech Technical University in Prague, Faculty of Electrical Engineering, Department of Control Engineering November 8, 2017
More informationSchedulability and Optimization Analysis for Non-Preemptive Static Priority Scheduling Based on Task Utilization and Blocking Factors
Schedulability and Optimization Analysis for Non-Preemptive Static Priority Scheduling Based on Task Utilization and Blocking Factors Georg von der Brüggen, Jian-Jia Chen, Wen-Hung Huang Department of
More informationOn-line scheduling of periodic tasks in RT OS
On-line scheduling of periodic tasks in RT OS Even if RT OS is used, it is needed to set up the task priority. The scheduling problem is solved on two levels: fixed priority assignment by RMS dynamic scheduling
More informationReal-time Systems: Scheduling Periodic Tasks
Real-time Systems: Scheduling Periodic Tasks Advanced Operating Systems Lecture 15 This work is licensed under the Creative Commons Attribution-NoDerivatives 4.0 International License. To view a copy of
More informationReal Time Operating Systems
Real Time Operating ystems Luca Abeni luca.abeni@unitn.it Interacting Tasks Until now, only independent tasks... A job never blocks or suspends A task only blocks on job termination In real world, jobs
More informationAperiodic Task Scheduling
Aperiodic Task Scheduling Jian-Jia Chen (slides are based on Peter Marwedel) TU Dortmund, Informatik 12 Germany Springer, 2010 2017 年 11 月 29 日 These slides use Microsoft clip arts. Microsoft copyright
More informationReal-Time and Embedded Systems (M) Lecture 5
Priority-driven Scheduling of Periodic Tasks (1) Real-Time and Embedded Systems (M) Lecture 5 Lecture Outline Assumptions Fixed-priority algorithms Rate monotonic Deadline monotonic Dynamic-priority algorithms
More informationReal Time Operating Systems
Real Time Operating ystems hared Resources Luca Abeni Credits: Luigi Palopoli, Giuseppe Lipari, and Marco Di Natale cuola uperiore ant Anna Pisa -Italy Real Time Operating ystems p. 1 Interacting Tasks
More informationScheduling Algorithms for Multiprogramming in a Hard Realtime Environment
Scheduling Algorithms for Multiprogramming in a Hard Realtime Environment C. Liu and J. Layland Journal of the ACM, 20(1):46--61, January 1973. 2 Contents 1. Introduction and Background 2. The Environment
More informationSystem Model. Real-Time systems. Giuseppe Lipari. Scuola Superiore Sant Anna Pisa -Italy
Real-Time systems System Model Giuseppe Lipari Scuola Superiore Sant Anna Pisa -Italy Corso di Sistemi in tempo reale Laurea Specialistica in Ingegneria dell Informazione Università di Pisa p. 1/?? Task
More informationCEC 450 Real-Time Systems
E 450 Real-ime Systems Lecture 4 Rate Monotonic heory Part September 7, 08 Sam Siewert Quiz Results 93% Average, 75 low, 00 high Goal is to learn what you re not learning yet Motivation to keep up with
More informationResource Sharing in an Enhanced Rate-Based Execution Model
In: Proceedings of the 15th Euromicro Conference on Real-Time Systems, Porto, Portugal, July 2003, pp. 131-140. Resource Sharing in an Enhanced Rate-Based Execution Model Xin Liu Steve Goddard Department
More informationUniprocessor real-time scheduling
Uniprocessor real-time scheduling Julien Forget Université Lille 1 Ecole d Été Temps Réel - 30 Août 2017 Julien Forget (Université Lille 1) Uniprocessor real-time scheduling ETR 2017 1 / 67 Overview At
More informationProbabilistic Preemption Control using Frequency Scaling for Sporadic Real-time Tasks
Probabilistic Preemption Control using Frequency Scaling for Sporadic Real-time Tasks Abhilash Thekkilakattil, Radu Dobrin and Sasikumar Punnekkat Mälardalen Real-Time Research Center, Mälardalen University,
More informationCPU SCHEDULING RONG ZHENG
CPU SCHEDULING RONG ZHENG OVERVIEW Why scheduling? Non-preemptive vs Preemptive policies FCFS, SJF, Round robin, multilevel queues with feedback, guaranteed scheduling 2 SHORT-TERM, MID-TERM, LONG- TERM
More informationExact speedup factors and sub-optimality for non-preemptive scheduling
Real-Time Syst (2018) 54:208 246 https://doi.org/10.1007/s11241-017-9294-3 Exact speedup factors and sub-optimality for non-preemptive scheduling Robert I. Davis 1 Abhilash Thekkilakattil 2 Oliver Gettings
More informationImproved Priority Assignment for the Abort-and-Restart (AR) Model
Improved Priority Assignment for the Abort-and-Restart (AR) Model H.C. Wong and A. Burns Department of Computer Science, University of York, UK. February 1, 2013 Abstract This paper addresses the scheduling
More informationShared resources. Sistemi in tempo reale. Giuseppe Lipari. Scuola Superiore Sant Anna Pisa -Italy
istemi in tempo reale hared resources Giuseppe Lipari cuola uperiore ant Anna Pisa -Italy inher.tex istemi in tempo reale Giuseppe Lipari 7/6/2005 12:35 p. 1/21 Interacting tasks Until now, we have considered
More informationResponse Time Analysis for Tasks Scheduled under EDF within Fixed Priorities
Response Time Analysis for Tasks Scheduled under EDF within Fixed Priorities M. González Harbour and J.C. Palencia Departamento de Electrónica y Computadores Universidad de Cantabria 39-Santander, SPAIN
More informationA New Sufficient Feasibility Test for Asynchronous Real-Time Periodic Task Sets
A New Sufficient Feasibility Test for Asynchronous Real-Time Periodic Task Sets Abstract The problem of feasibility analysis for asynchronous periodic task sets (ie where tasks can have an initial offset
More informationAn Improved Schedulability Test for Uniprocessor Periodic Task Systems
An Improved Schedulability Test for Uniprocessor Periodic Task Systems UmaMaheswari C. Devi Department of Computer Science, The University of North Carolina, Chapel Hill, NC Abstract We present a sufficient
More informationReal-Time Systems. Lecture 4. Scheduling basics. Task scheduling - basic taxonomy Basic scheduling techniques Static cyclic scheduling
Real-Time Systems Lecture 4 Scheduling basics Task scheduling - basic taxonomy Basic scheduling techniques Static cyclic scheduling 1 Last lecture (3) Real-time kernels The task states States and transition
More informationAn Improved Schedulability Test for Uniprocessor. Periodic Task Systems
An Improved Schedulability Test for Uniprocessor Periodic Task Systems UmaMaheswari C. Devi Department of Computer Science, University of North Carolina, Chapel Hill, NC 27599-375 December 2002 Abstract
More informationPriority-driven Scheduling of Periodic Tasks (1) Advanced Operating Systems (M) Lecture 4
Priority-driven Scheduling of Periodic Tasks (1) Advanced Operating Systems (M) Lecture 4 Priority-driven Scheduling Assign priorities to jobs, based on their deadline or other timing constraint Make scheduling
More informationScheduling Slack Time in Fixed Priority Pre-emptive Systems
Scheduling Slack Time in Fixed Priority Pre-emptive Systems R.I.Davis Real-Time Systems Research Group, Department of Computer Science, University of York, England. ABSTRACT This report addresses the problem
More informationDeadline-driven scheduling
Deadline-driven scheduling Michal Sojka Czech Technical University in Prague, Faculty of Electrical Engineering, Department of Control Engineering November 8, 2017 Some slides are derived from lectures
More informationResource-locking durations in EDF-scheduled systems
Resource-locking durations in EDF-scheduled systems Nathan Fisher Marko Bertogna Sanjoy Baruah Abstract The duration of time for which each application locks each shared resource is critically important
More informationReal-time Scheduling of Periodic Tasks (2) Advanced Operating Systems Lecture 3
Real-time Scheduling of Periodic Tasks (2) Advanced Operating Systems Lecture 3 Lecture Outline The rate monotonic algorithm (cont d) Maximum utilisation test The deadline monotonic algorithm The earliest
More informationRate Monotonic Analysis (RMA)
Rate Monotonic Analysis (RMA) ktw@csie.ntu.edu.tw (Real-Time and Embedded System Laboratory) Major References: An Introduction to Rate Monotonic Analysis Tutorial Notes SEI MU* Distributed Real-Time System
More informationUC Santa Barbara. Operating Systems. Christopher Kruegel Department of Computer Science UC Santa Barbara
Operating Systems Christopher Kruegel Department of Computer Science http://www.cs.ucsb.edu/~chris/ Many processes to execute, but one CPU OS time-multiplexes the CPU by operating context switching Between
More informationLec. 7: Real-Time Scheduling
Lec. 7: Real-Time Scheduling Part 1: Fixed Priority Assignment Vijay Raghunathan ECE568/CS590/ECE495/CS490 Spring 2011 Reading List: RM Scheduling 2 [Balarin98] F. Balarin, L. Lavagno, P. Murthy, and A.
More informationExam Spring Embedded Systems. Prof. L. Thiele
Exam Spring 20 Embedded Systems Prof. L. Thiele NOTE: The given solution is only a proposal. For correctness, completeness, or understandability no responsibility is taken. Sommer 20 Eingebettete Systeme
More informationStatic priority scheduling
Static priority scheduling Michal Sojka Czech Technical University in Prague, Faculty of Electrical Engineering, Department of Control Engineering November 8, 2017 Some slides are derived from lectures
More informationReal-time scheduling of sporadic task systems when the number of distinct task types is small
Real-time scheduling of sporadic task systems when the number of distinct task types is small Sanjoy Baruah Nathan Fisher Abstract In some real-time application systems, there are only a few distinct kinds
More informationLoad Regulating Algorithm for Static-Priority Task Scheduling on Multiprocessors
Technical Report No. 2009-7 Load Regulating Algorithm for Static-Priority Task Scheduling on Multiprocessors RISAT MAHMUD PATHAN JAN JONSSON Department of Computer Science and Engineering CHALMERS UNIVERSITY
More informationReal-Time Systems. LS 12, TU Dortmund
Real-Time Systems Prof. Dr. Jian-Jia Chen LS 12, TU Dortmund April 24, 2014 Prof. Dr. Jian-Jia Chen (LS 12, TU Dortmund) 1 / 57 Organization Instructor: Jian-Jia Chen, jian-jia.chen@cs.uni-dortmund.de
More informationBounding the End-to-End Response Times of Tasks in a Distributed. Real-Time System Using the Direct Synchronization Protocol.
Bounding the End-to-End Response imes of asks in a Distributed Real-ime System Using the Direct Synchronization Protocol Jun Sun Jane Liu Abstract In a distributed real-time system, a task may consist
More information3. Scheduling issues. Common approaches 3. Common approaches 1. Preemption vs. non preemption. Common approaches 2. Further definitions
Common approaches 3 3. Scheduling issues Priority-driven (event-driven) scheduling This class of algorithms is greedy They never leave available processing resources unutilized An available resource may
More informationA New Task Model and Utilization Bound for Uniform Multiprocessors
A New Task Model and Utilization Bound for Uniform Multiprocessors Shelby Funk Department of Computer Science, The University of Georgia Email: shelby@cs.uga.edu Abstract This paper introduces a new model
More informationDependency Graph Approach for Multiprocessor Real-Time Synchronization. TU Dortmund, Germany
Dependency Graph Approach for Multiprocessor Real-Time Synchronization Jian-Jia Chen, Georg von der Bru ggen, Junjie Shi, and Niklas Ueter TU Dortmund, Germany 14,12,2018 at RTSS Jian-Jia Chen 1 / 21 Multiprocessor
More informationMultiprocessor Scheduling II: Global Scheduling. LS 12, TU Dortmund
Multiprocessor Scheduling II: Global Scheduling Prof. Dr. Jian-Jia Chen LS 12, TU Dortmund 28, June, 2016 Prof. Dr. Jian-Jia Chen (LS 12, TU Dortmund) 1 / 42 Global Scheduling We will only focus on identical
More informationDesign of Real-Time Software
Design of Real-Time Software Reference model Reinder J. Bril Technische Universiteit Eindhoven Department of Mathematics and Computer Science System Architecture and Networking Group P.O. Box 513, 5600
More informationScheduling. Uwe R. Zimmer & Alistair Rendell The Australian National University
6 Scheduling Uwe R. Zimmer & Alistair Rendell The Australian National University References for this chapter [Bacon98] J. Bacon Concurrent Systems 1998 (2nd Edition) Addison Wesley Longman Ltd, ISBN 0-201-17767-6
More informationSemi-Partitioned Fixed-Priority Scheduling on Multiprocessors
Semi-Partitioned Fixed-Priority Scheduling on Multiprocessors Shinpei Kato and Nobuyuki Yamasaki Department of Information and Computer Science Keio University, Yokohama, Japan {shinpei,yamasaki}@ny.ics.keio.ac.jp
More informationTime and Schedulability Analysis of Stateflow Models
Time and Schedulability Analysis of Stateflow Models Marco Di Natale Scuola Superiore S. Anna Haibo Zeng Mc Gill University Outline Context: MBD of Embedded Systems Relationship with PBD An Introduction
More informationOptimal Utilization Bounds for the Fixed-priority Scheduling of Periodic Task Systems on Identical Multiprocessors. Sanjoy K.
Optimal Utilization Bounds for the Fixed-priority Scheduling of Periodic Task Systems on Identical Multiprocessors Sanjoy K. Baruah Abstract In fixed-priority scheduling the priority of a job, once assigned,
More informationResource Sharing Protocols for Real-Time Task Graph Systems
Resource Sharing Protocols for Real-Time Task Graph Systems Nan Guan, Pontus Ekberg, Martin Stigge, Wang Yi Uppsala University, Sweden Northeastern University, China Abstract Previous works on real-time
More informationLecture: Workload Models (Advanced Topic)
Lecture: Workload Models (Advanced Topic) Real-Time Systems, HT11 Martin Stigge 28. September 2011 Martin Stigge Workload Models 28. September 2011 1 System
More informationReal-Time Workload Models with Efficient Analysis
Real-Time Workload Models with Efficient Analysis Advanced Course, 3 Lectures, September 2014 Martin Stigge Uppsala University, Sweden Fahrplan 1 DRT Tasks in the Model Hierarchy Liu and Layland and Sporadic
More informationReal-Time Scheduling
1 Real-Time Scheduling Formal Model [Some parts of this lecture are based on a real-time systems course of Colin Perkins http://csperkins.org/teaching/rtes/index.html] Real-Time Scheduling Formal Model
More informationThere are three priority driven approaches that we will look at
Priority Driven Approaches There are three priority driven approaches that we will look at Earliest-Deadline-First (EDF) Least-Slack-Time-first (LST) Latest-Release-Time-first (LRT) 1 EDF Earliest deadline
More informationSegment-Fixed Priority Scheduling for Self-Suspending Real-Time Tasks
Segment-Fixed Priority Scheduling for Self-Suspending Real-Time Tasks Junsung Kim, Björn Andersson, Dionisio de Niz, and Raj Rajkumar Carnegie Mellon University 2/31 Motion Planning on Self-driving Parallel
More informationSchedulability Analysis for the Abort-and-Restart Model
Schedulability Analysis for the Abort-and-Restart Model Hing Choi Wong Doctor of Philosophy University of York Computer Science December 2014 Abstract In real-time systems, a schedulable task-set guarantees
More informationA Theory of Rate-Based Execution. A Theory of Rate-Based Execution
Kevin Jeffay Department of Computer Science University of North Carolina at Chapel Hill jeffay@cs cs.unc.edu Steve Goddard Computer Science & Engineering University of Nebraska Ð Lincoln goddard@cse cse.unl.edu
More informationSchedulability analysis of global Deadline-Monotonic scheduling
Schedulability analysis of global Deadline-Monotonic scheduling Sanjoy Baruah Abstract The multiprocessor Deadline-Monotonic (DM) scheduling of sporadic task systems is studied. A new sufficient schedulability
More informationProcess Scheduling. Process Scheduling. CPU and I/O Bursts. CPU - I/O Burst Cycle. Variations in Bursts. Histogram of CPU Burst Times
Scheduling The objective of multiprogramming is to have some process running all the time The objective of timesharing is to have the switch between processes so frequently that users can interact with
More informationIntegrating Cache Related Preemption Delay Analysis into EDF Scheduling
Integrating Cache Related Preemption Delay Analysis into EDF Scheduling Will Lunniss 1 Sebastian Altmeyer 2 Claire Maiza 3 Robert I. Davis 1 1 Real-Time Systems Research Group, University of York, UK {wl510,
More informationSchedulability of Periodic and Sporadic Task Sets on Uniprocessor Systems
Schedulability of Periodic and Sporadic Task Sets on Uniprocessor Systems Jan Reineke Saarland University July 4, 2013 With thanks to Jian-Jia Chen! Jan Reineke July 4, 2013 1 / 58 Task Models and Scheduling
More informationCHAPTER 5 - PROCESS SCHEDULING
CHAPTER 5 - PROCESS SCHEDULING OBJECTIVES To introduce CPU scheduling, which is the basis for multiprogrammed operating systems To describe various CPU-scheduling algorithms To discuss evaluation criteria
More informationarxiv: v3 [cs.ds] 23 Sep 2016
Evaluate and Compare Two Utilization-Based Schedulability-Test Framewors for Real-Time Systems arxiv:1505.02155v3 [cs.ds] 23 Sep 2016 Jian-Jia Chen and Wen-Hung Huang Department of Informatics TU Dortmund
More informationOnline Scheduling Switch for Maintaining Data Freshness in Flexible Real-Time Systems
Online Scheduling Switch for Maintaining Data Freshness in Flexible Real-Time Systems Song Han 1 Deji Chen 2 Ming Xiong 3 Aloysius K. Mok 1 1 The University of Texas at Austin 2 Emerson Process Management
More informationAS computer hardware technology advances, both
1 Best-Harmonically-Fit Periodic Task Assignment Algorithm on Multiple Periodic Resources Chunhui Guo, Student Member, IEEE, Xiayu Hua, Student Member, IEEE, Hao Wu, Student Member, IEEE, Douglas Lautner,
More informationPredicting Time-Delays under Real-Time Scheduling for Linear Model Predictive Control
23 International Conference on Computing, Networking and Communications, Workshops Cyber Physical System Predicting Time-Delays under Real-Time Scheduling for Linear Model Predictive Control Zhenwu Shi
More informationSpare CASH: Reclaiming Holes to Minimize Aperiodic Response Times in a Firm Real-Time Environment
Spare CASH: Reclaiming Holes to Minimize Aperiodic Response Times in a Firm Real-Time Environment Deepu C. Thomas Sathish Gopalakrishnan Marco Caccamo Chang-Gun Lee Abstract Scheduling periodic tasks that
More informationScheduling Lecture 1: Scheduling on One Machine
Scheduling Lecture 1: Scheduling on One Machine Loris Marchal October 16, 2012 1 Generalities 1.1 Definition of scheduling allocation of limited resources to activities over time activities: tasks in computer
More informationCycleTandem: Energy-Saving Scheduling for Real-Time Systems with Hardware Accelerators
CycleTandem: Energy-Saving Scheduling for Real-Time Systems with Hardware Accelerators Sandeep D souza and Ragunathan (Raj) Rajkumar Carnegie Mellon University High (Energy) Cost of Accelerators Modern-day
More informationNon-preemptive Scheduling of Distance Constrained Tasks Subject to Minimizing Processor Load
Non-preemptive Scheduling of Distance Constrained Tasks Subject to Minimizing Processor Load Klaus H. Ecker Ohio University, Athens, OH, USA, ecker@ohio.edu Alexander Hasenfuss Clausthal University of
More informationControlling Preemption for Better Schedulability in Multi-Core Systems
2012 IEEE 33rd Real-Time Systems Symposium Controlling Preemption for Better Schedulability in Multi-Core Systems Jinkyu Lee and Kang G. Shin Dept. of Electrical Engineering and Computer Science, The University
More informationOnline Energy-Aware I/O Device Scheduling for Hard Real-Time Systems with Shared Resources
Online Energy-Aware I/O Device Scheduling for Hard Real-Time Systems with Shared Resources Abstract The challenge in conserving energy in embedded real-time systems is to reduce power consumption while
More informationTDDB68 Concurrent programming and operating systems. Lecture: CPU Scheduling II
TDDB68 Concurrent programming and operating systems Lecture: CPU Scheduling II Mikael Asplund, Senior Lecturer Real-time Systems Laboratory Department of Computer and Information Science Copyright Notice:
More informationFPCL and FPZL Schedulability Analysis
FP and FPZL Schedulability Analysis Robert I. Davis Real-Time Systems Research Group, Department of Computer Science, University of Yor, YO10 5DD, Yor (UK) rob.davis@cs.yor.ac.u Abstract This paper presents
More information