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.

Slides:



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

Real Time Scheduling.
EE5900 Advanced Embedded System For Smart Infrastructure
Introduction to Embedded Systems Resource Management - III Lecture 19.
1 EE5900 Advanced Embedded System For Smart Infrastructure RMS and EDF Scheduling.
Courseware Scheduling of Distributed Real-Time Systems Jan Madsen Informatics and Mathematical Modelling Technical University of Denmark Richard Petersens.
Task Allocation and Scheduling n Problem: How to assign tasks to processors and to schedule them in such a way that deadlines are met n Our initial focus:
Module 2 Priority Driven Scheduling of Periodic Task
EE 249, Fall Discussion: Scheduling Haibo Zeng Amit Mahajan.
Chapter 5: CPU Scheduling
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.
Technische Universität Dortmund Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund, Informatik 12 Germany 2007/12/14.
Operating System Concepts and Techniques Lecture 5 Scheduling-1 M. Naghibzadeh Reference M. Naghibzadeh, Operating System Concepts and Techniques, First.
More Scheduling cs550 Operating Systems David Monismith.
Task Scheduling By Dr. Amin Danial Asham.
Dynamic Slack Reclamation with Procrastination Scheduling in Real- Time Embedded Systems Paper by Ravindra R. Jejurikar and Rajesh Gupta Presentation by.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 6: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms.
Probabilistic Preemption Control using Frequency Scaling for Sporadic Real-time Tasks 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.
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 Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
Real-Time Scheduling CS 3204 – Operating Systems Lecture 20 3/3/2006 Shahrooz Feizabadi.
5 May CmpE 516 Fault Tolerant Scheduling in Multiprocessor Systems Betül Demiröz.
6. Application mapping 6.1 Problem definition
Real Time Systems Real-Time Schedulability Part I.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems RMS and EDF Schedulers.
Module 2 Overview of Real Time System Scheduling
Real-Time Scheduling CS 3204 – Operating Systems Lecture 13 10/3/2006 Shahrooz Feizabadi.
CSCI1600: Embedded and Real Time Software Lecture 24: Real Time Scheduling II Steven Reiss, Fall 2015.
Introduction to Embedded Systems Rabie A. Ramadan 5.
CSCI1600: Embedded and Real Time Software Lecture 23: Real Time Scheduling I Steven Reiss, Fall 2015.
Dynamic Priority Driven Scheduling of Periodic Task
CS333 Intro to Operating Systems Jonathan Walpole.
For a good summary, visit:
Operating System Concepts and Techniques Lecture 6 Scheduling-2* M. Naghibzadeh Reference M. Naghibzadeh, Operating System Concepts and Techniques, First.
Undergraduate course on Real-time Systems Linköping University TDDD07 Real-time Systems Lecture 2: Scheduling II Simin Nadjm-Tehrani Real-time Systems.
Unit - I Real Time Operating System. Content : Operating System Concepts Real-Time Tasks Real-Time Systems Types of Real-Time Tasks Real-Time Operating.
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 32 – Multimedia OS Klara Nahrstedt Spring 2010.
Lecture 6: Real-Time Scheduling
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.
Real-Time Operating Systems RTOS For Embedded systems.
Embedded System Scheduling
REAL-TIME OPERATING SYSTEMS
EEE Embedded Systems Design Process in Operating Systems 서강대학교 전자공학과
Wayne Wolf Dept. of EE Princeton University
Unit OS9: Real-Time and Embedded Systems
Chapter 8 – Processor Scheduling
Imprecise Computation September 7, 2006
Lecture 24: Process Scheduling Examples and for Real-time Systems
Chapter 6: CPU Scheduling
Process Scheduling B.Ramamurthy 11/18/2018.
Department of Computer Science & Engineering
Dynamic Voltage Scaling
CSCI1600: Embedded and Real Time Software
Chapter 5: CPU Scheduling
Chapter 6: CPU Scheduling
Process Scheduling B.Ramamurthy 2/23/2019.
CSCI1600: Embedded and Real Time Software
Processes and operating systems
Operating System , Fall 2000 EA101 W 9:00-10:00 F 9:00-11:00
Chapter 6: CPU Scheduling
Real-Time Process Scheduling Concepts, Design and Implementations
Chapter 6: CPU Scheduling
The End Of The Line For Static Cyclic Scheduling?
Chapter 6: CPU Scheduling
Real-Time Process Scheduling Concepts, Design and Implementations
Presentation transcript:

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 Hard Real Time Systems Singh Y, Popli M, Shukla Jaypee University of Information Technology 1st Int’l Conf. on Recent Advances in Information Technology | RAIT-2012 |- IEEE Ismail H, Jawawi D N A Universiti Teknologi Malaysia th Malaysian Software Engineering Conference (MySEC)- IEEE Presented By, Guru Sharan Aditya Kanawade

INTRODUCTION Real time systems are classified into three categories: 1. Hard Real Time Systems No deadline must be missed 2. Soft Real Time Systems Few deadline misses are acceptable 3. Weakly Hard Real Time Systems Few deadline misses are accepted --> Evenly spaced QoS is compromised Represented by (m,k) model --> m out of k tasks meet deadline 1/32

B ASIC M ODEL OF R EAL T IME S YSTEMS 2/32

EXAMPLESEXAMPLES

SCHEDULING TYPES Clock Driven Scheduling Task scheduling decisions are made at clock interrupt points Off line schedulers --> predetermines which task will run and when Very little run time overhead Cannot handle aperiodic and sporadic tasks since exact occurrences of such tasks cannot be predicted 4/32

Priority Driven Scheduling Scheduling based on priority of task Higher priority task pre-empts running lower priority task It is classified into 2 approaches: 1. Static Approach 2. Dynamic Approach 5/32

STATIC APPROACH Priorities are assigned to tasks once for all and every job of a task will have same priority A. Rate Monotonic Algorithm ( RM ) Assigns static priorities based on task periods The task with the shortest period gets the highest priority, and the task with the longest period gets the lowest static priority 6/32

B. Deadline Monotonic Algorithm Assigns static priorities based on deadline The task with relatively shorter deadline will have higher priority 7/32

DYNAMIC APPROACH Priorities of tasks may change from request to request Earliest Deadline First ( EDF ) Earlier the deadline --> higher will be the priority During scheduling --> task having the shortest deadline is scheduled 8/32

POWER SAVING TECHNIQUES Dynamic Voltage Scaling ( DVS ) Speed of frequency dependent components is decreased if it is operating at lower voltage When speed is reduced, response time of task increases Thus leading to missing of few deadlines Longer execution times increase energy leakage due to leakage current 9/32

Dynamic Power Down ( DPD ) Switching to sleep state from idle state to reduce energy consumption If energy required for switching to sleep state is less than or equal to the energy consumption in idle time --> switching to sleep state is preferred 10/32

PARTITIONING TECHNIQUES Used in case of selection of m jobs from a window of k consecutive jobs for execution 1. Deeply Red Pattern It aligns the optional jobs together so that a component has a better opportunity to switch into sleep state to save energy DISADVANTAGE - Larger size busy intervals and hence need more energy to be feasible 11/32

2. Evenly Distributed Pattern (Even Pattern) First job released is mandatory Distribution of mandatory and optional jobs is even 3. Reverse Evenly Distributed Pattern First job released is optional Distribution of mandatory and optional jobs is alternating 12/32

4. Hybrid Pattern Different type of patterns for different tasks Irrespective of whether the task is mandatory or optional it can be assigned with Red or Even pattern 5. Mixed Pattern Combination of Hybrid pattern and Reverse Evenly Distributed Pattern 13/32

RATE MONOTONIC VS INVERSE RATE MONOTONIC Energy and deadline are counter productive Rate Monotonic – Shorter is the period, higher is the priority Inverse Rate Monotonic – Higher is the period, higher is the priority of the task set Task set ---> Group of small tasks ---> Each task set consists of execution time, period, deadline, no. of jobs, no. of consecutive jobs; specific to it 14/32

E XAMPLE OF I NVERSE RM ALGORITHM Higher is the period --> Higher is the Priority Consider the example A = { T1, T2, T3 } where T1=(3,10, 10, 1, 4) T2=(4, 16, 16, 1, 1) T3=(10, 40, 40, 1, 1) 15/32

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

17/32

SCHEDULING TYPES BASED ON PRIORITY Static Priority Scheduling Easy to implement Processes are assigned a fixed priority Less overhead compared to dynamic schemes Can handle overloads in a better way 19/32

Distance Based Priority Scheduling Classical Approach followed Applies to both Uniprocessor and multiprocessor systems Guaranteed QoS Promising performance in overload conditions 20/32

OFFLINE SCHEDULING Each task is divided into 2 sets – mandatory and optional Mandatory tasks – scheduled according to pre- defined priorities Optional tasks – Assigned with lowest priority Runtime overhead caused by migration of tasks can be avoided 21/32

BIN PACKING ALGORITHM Each task/group of tasks has its own dedicated processor Partitioning Approach – Divides tasks into partitions A schedulability test is performed Then decided whether the task allocation in the processor is required 22/32

R-BOUND-MP-NFRNS METHOD Sorting tasks in ascending order of periods where the first task needed to be considered is the task with shortest period Schedulability Test - Each uniprocessor uses the above equation The next-fit-bin-packing algorithm is used to assign each task The task is assigned to processor 1, incase of failure to assign a task to processor ‘p’ 23/32

CASE STUDY AUTONOMOUS MOBILE ROBOT ( AMR ) SYSTEM Consists of Hard tasks and Soft tasks Task set – Includes various robot operations Robot traverses in a structured environment Robot software controls the movement of robot while avoiding obstacles in its environment 24/32

TASK SET OF AMR CASE STUDY 25/32

HYPERPERIOD ANALYSIS 26/32

E XPERIMENTAL RESULTS 27/32

DRAWBACKS 1. The first paper discusses more about Scheduling aspects of Weakly hard real time systems rather than energy reduction aspects 2. The partitioning techniques described are not clear and do not provide the basis for their selection 3. The experimental results are based on certain assumptions which are not strongly supported in the context of energy reduction 28/32

1. The second paper does not provide proper background necessary to understand the algorithms mentioned in the paper 2. It generalizes few techniques to both uniprocessor and multi-processor systems but does not explain them in the individual contexts 3. Lacks clear experimental results and does not indicate the parameters used for determining the results 29/32

FUTURE WORK Testing the proposed Inverse Rate Monotonic Algorithm in multi-processor environment Developing a standard scheduling approach for multi-processor systems Increasing the predictability of tasks for weakly hard real-time systems 30/32

CONCLUSION Both the papers introduce new concepts related to weakly hard real time systems Various scheduling techniques and the need for them in weakly hard real time systems has been explained New scheduling schemes and its analysis along with a case study gives good support for its usage in multi-processor systems 31/32

Q UESTIONS ? 32/32