Probabilistic Preemption Control using Frequency Scaling for Sporadic Real-time Tasks Abhilash Thekkilakattil, Radu Dobrin and Sasikumar Punnekkat.

Slides:



Advertisements
Similar presentations
Washington WASHINGTON UNIVERSITY IN ST LOUIS Real-Time: Periodic Tasks Fred Kuhns Applied Research Laboratory Computer Science Washington University.
Advertisements

Reducing the Number of Preemptions in Real-Time Systems Scheduling by CPU Frequency Scaling Abhilash Thekkilakattil, Anju S Pillai, Radu Dobrin, Sasikumar.
CS 149: Operating Systems February 3 Class Meeting
Real- time Dynamic Voltage Scaling for Low- Power Embedded Operating Systems Written by P. Pillai and K.G. Shin Presented by Gaurav Saxena CSE 666 – Real.
Real Time Scheduling Terminologies define Fixed Priority Scheduler
THE UNIVERSITY of TEHRAN Mitra Nasri Sanjoy Baruah Gerhard Fohler Mehdi Kargahi October 2014.
Real-Time Scheduling CIS700 Insup Lee October 3, 2005 CIS 700.
Sporadic Server Scheduling in Linux Theory vs. Practice Mark Stanovich Theodore Baker Andy Wang.
Preemptive Behavior Analysis and Improvement of Priority Scheduling Algorithms Xiaoying Wang Northeastern University China.
Investigating the Effect of Voltage- Switching on Low-Energy Task Scheduling in Hard Real-Time Systems Paper review Presented by Chung-Fu Kao.
System-Wide Energy Minimization for Real-Time Tasks: Lower Bound and Approximation Xiliang Zhong and Cheng-Zhong Xu Dept. of Electrical & Computer Engg.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
Real-Time Operating System Chapter – 8 Embedded System: An integrated approach.
Embedded System Design Framework for Minimizing Code Size and Guaranteeing Real-Time Requirements Insik Shin, Insup Lee, & Sang Lyul Min CIS, Penn, USACSE,
VOLTAGE SCHEDULING HEURISTIC for REAL-TIME TASK GRAPHS D. Roychowdhury, I. Koren, C. M. Krishna University of Massachusetts, Amherst Y.-H. Lee Arizona.
Towards a Contract-based Fault-tolerant Scheduling Framework for Distributed Real-time Systems Abhilash Thekkilakattil, Huseyin Aysan and Sasikumar Punnekkat.
Abhilash Thekkilakattil, Radu Dobrin, Sasikumar Punnekkat Mälardalen Real-time Research Center, Mälardalen University Västerås, Sweden Preemption Control.
Minimizing Cache Overhead via Loaded Cache Blocks and Preemption Placement John Cavicchio, Corey Tessler, and Nathan Fisher Department of Computer Science.
Computer Science Department University of Pittsburgh 1 Evaluating a DVS Scheme for Real-Time Embedded Systems Ruibin Xu, Daniel Mossé and Rami Melhem.
1 EE5900 Advanced Embedded System For Smart Infrastructure Energy Efficient Scheduling.
A S CHEDULABILITY A NALYSIS FOR W EAKLY H ARD R EAL - T IME T ASKS IN P ARTITIONING S CHEDULING ON M ULTIPROCESSOR S YSTEMS Energy Reduction in Weakly.
Quantifying the Sub-optimality of Non-preemptive Real-time Scheduling Abhilash Thekkilakattil, Radu Dobrin and Sasikumar Punnekkat.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
1 Reducing Queue Lock Pessimism in Multiprocessor Schedulability Analysis Yang Chang, Robert Davis and Andy Wellings Real-time Systems Research Group University.
Scheduling policies for real- time embedded systems.
Multiprocessor Real-time Scheduling Jing Ma 马靖. Classification Partitioned Scheduling In the partitioned approach, the tasks are statically partitioned.
Real-Time Systems Mark Stanovich. Introduction System with timing constraints (e.g., deadlines) What makes a real-time system different? – Meeting timing.
Abhilash Thekkilakattil, Radu Dobrin, Sasikumar Punnekkat Mälardalen Real-time Research Center, Mälardalen University Västerås, Sweden Towards Preemption.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
The Global Limited Preemptive Earliest Deadline First Feasibility of Sporadic Real-time Tasks Abhilash Thekkilakattil, Sanjoy Baruah, Radu Dobrin and Sasikumar.
CS244-Introduction to Embedded Systems and Ubiquitous Computing Instructor: Eli Bozorgzadeh Computer Science Department UC Irvine Winter 2010.
Hard Real-Time Scheduling for Low- Energy Using Stochastic Data and DVS Processors Flavius Gruian Department of Computer Science, Lund University Box 118.
Real Time Systems Real-Time Schedulability Part I.
Resource Augmentation for Performance Guarantees in Embedded Real-time Systems Abhilash Thekkilakattil Licentiate Thesis Presentation Västerås, November.
KUKUM Real Time System 1/21 Module 2 Real Time System Scheduling Lecture 05.
Fault Tolerant Scheduling of Mixed Criticality Real-Time Tasks under Error Bursts Abhilash Thekkilakattil, Radu Dobrin and Sasikumar Punnekkat.
CS244-Introduction to Embedded Systems and Ubiquitous Computing Instructor: Eli Bozorgzadeh Computer Science Department UC Irvine Winter 2010.
Module 2 Overview of Real Time System Scheduling
1 Real-Time Scheduling. 2Today Operating System task scheduling –Traditional (non-real-time) scheduling –Real-time scheduling.
CSCI1600: Embedded and Real Time Software Lecture 24: Real Time Scheduling II Steven Reiss, Fall 2015.
Multiprocessor Fixed Priority Scheduling with Limited Preemptions Abhilash Thekkilakattil, Rob Davis, Radu Dobrin, Sasikumar Punnekkat and Marko Bertogna.
CSCI1600: Embedded and Real Time Software Lecture 23: Real Time Scheduling I Steven Reiss, Fall 2015.
Multimedia Computing and Networking Jan Reduced Energy Decoding of MPEG Streams Malena Mesarina, HP Labs/UCLA CS Dept Yoshio Turner, HP Labs.
Resource Augmentation for Fault-Tolerance Feasibility of Real-time Tasks under Error Bursts Abhilash Thekkilakattil, Radu Dobrin, Sasikumar Punnekkat and.
Undergraduate course on Real-time Systems Linköping University TDDD07 Real-time Systems Lecture 2: Scheduling II Simin Nadjm-Tehrani Real-time Systems.
Introductory Seminar on Research CIS5935 Fall 2008 Ted Baker.
Determining Optimal Processor Speeds for Periodic Real-Time Tasks with Different Power Characteristics H. Aydın, R. Melhem, D. Mossé, P.M. Alvarez University.
Unit - I Real Time Operating System. Content : Operating System Concepts Real-Time Tasks Real-Time Systems Types of Real-Time Tasks Real-Time Operating.
Chapter 4 CPU Scheduling. 2 Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation.
Distributed Process Scheduling- Real Time Scheduling Csc8320(Fall 2013)
Undergraduate course on Real-time Systems Linköping TDDD07 – Real-time Systems Lecture 1: Introduction & Scheduling I Simin Nadjm-Tehrani Real-time Systems.
Embedded System Scheduling
Reducing the Number of Preemptions in Real-Time Systems Scheduling by CPU Frequency Scaling Abhilash Thekkilakattil, Anju S Pillai, Radu Dobrin, Sasikumar.
EEE Embedded Systems Design Process in Operating Systems 서강대학교 전자공학과
Process Scheduling B.Ramamurthy 9/16/2018.
Chapter 6: CPU Scheduling
Chapter 6: CPU Scheduling
Flavius Gruian < >
Process Scheduling B.Ramamurthy 11/18/2018.
Module 5: CPU Scheduling
Chapter 6: CPU Scheduling
Limited-Preemption Scheduling of Sporadic Tasks Systems
Chapter 6: CPU Scheduling
Process Scheduling B.Ramamurthy 2/23/2019.
Processes and operating systems
Operating System , Fall 2000 EA101 W 9:00-10:00 F 9:00-11:00
Chapter 6: CPU Scheduling
Module 5: CPU Scheduling
Chapter 6: CPU Scheduling
Presentation transcript:

Probabilistic Preemption Control using Frequency Scaling for Sporadic Real-time Tasks Abhilash Thekkilakattil, Radu Dobrin and Sasikumar Punnekkat

Real-time Systems 2 web images

3 Real-time tasks Mapping of Events to Real-time Tasks web images

Sporadic Real-time Tasks 4 job1job2 Worst Case Execution Time Min. inter-arrival time (Period) Release time Relative deadline task release probability time Probabilistic task arrivals Task worst case execution time scales with processor frequency

Real-time Scheduling  Guarantee task completions before their deadline 5 Non-preemptive Scheduling Low runtime overhead  Increased blocking times Preemptive Scheduling Ability to achieve high utilization  Preemption costs high priority low priority preemption cost blocking high priority low priority

6 Common Preemption Related Costs Scheduler related cost – Overhead involved in saving and retrieving the context of the preempted task Cache related preemption delays – Overhead involved in reloading cache lines – Vary with the point of preemption – Increased bus contention Pipeline related cost – Clear the pipeline upon preemption – Refill the pipeline upon resumption

Frequency Scaling in Real-time Systems 7 CPU frequency: Task takes less time to execute at higher frequencies  changes the schedule behavior  requires higher voltages P: Power consumption C: Effective capacitance V: Applied voltage F: CPU frequency Processor power consumption: minmax CPU frequency

What? 8 We examine the use of CPU frequency scaling to control preemption behavior in sporadic real-time task systems with probabilistic task releases.

Related work 9 Need for preemption elimination recognized Ramamritham-94, Burns-95, Ramaprasad-06 RM- more preemptions than EDF Buttazzo-05 Attribute re-assignment for FPS for preemption control Dobrin-04 Preemption aware scheduling algorithms Yang-09, Woonseok -04 Preemption threshold Scheduling Lamie-97, Saksena-00, Wang-99 Context switches and cache related preemption delays Lee-98, Schneider-00, Katcher-93 DVS: energy conservation- increase in preemptions Pillai-01,Aydin-04, Bini-09, Marinoni-07 Limited preemption scheduling Baruah-05, Bertogna -10

Methodology Overview 10 Offline phase Online phase inputs

Offline Phase Derive permitted relaxation to inter-arrival times  Minimum inter-arrival times: worst case scenario Determines task set schedulability  Relax the release times of jobs: using probabilities Most probable release time after the minimum inter-arrival time has elapsed Apply this relaxation at runtime for preemption control Permits for trade-offs 11

Online Phase Online preemption control algorithm: At runtime, find the earliest probable time instant of preemption Speed-up the busy period to avoid preemption Speed-up to maximum speed if preemption cannot be avoided - To keep the simplicity of the online algorithm 12

13 Example 13 TaskComputation time Inter-arrival time A15 B37 C A B C Original Fixed Priority Schedule

Offline Phase 14 TaskComputation time Time period Relaxation to min. inter- arrival times for threshold probability =0.20 Relaxation to min. inter- arrival times for threshold probability =0.24 A1513 B3713 C (time) Task release probability

Online Phase 15 TaskComputation time Inter-arrival time Relaxation A151 B371 C A B C C=1+3+3 = 7 t=6 (since we use release time probabilities) Speed=7/6  We speed-up to max. speed: simplicity earliest possible preemption point C=3 t=1 Speed=3/1

Evaluation 16 Processor Speed Power consumption per clock cycle (mW) No. of task sets1400 No. of tasks per task set 3-15 Algorithm usedUUniFast* LCM≤ 2000 Threshold probabilities 0.20 and 0.24 * E. Bini and G. C. Buttazzo, “Measuring the performance of schedulability tests,” Real-Time Systems, (time) Task release probability

Average Number of Preemptions 17 probability=0probability=0.20probability=0.24

Average Power Consumption 18 probability=0probability=0.20probability=0.24

No. of preemptions vs Energy 19 probability=0probability=0.20probability=0.24 probability=0probability=0.20probability=0.24

Conclusions  Manipulate energy usage to control preemptive behavior in real-time schedules  Trade-offs : energy vs. number of preemption  Simplicity of the runtime algorithm: O(n) complexity  Combined offline-online method: possibility to use more complex offline methods  Effective: significant preemption reduction shown in simulations  Limitations: increased energy consumption 20

Future work  Resource augmentation for preemption control  Processor speed-up for limited preemption scheduling (floating non-preemptive region scheduling)  Bounds on the speed-up required to guarantee a required preemption behavior  Contracts for preemption control using CPU frequency scaling  Contract definition and negotiation in Component Based Real- time Systems 21

Thank you ! 22 Questions ?