Imprecise Computation September 7, 2006

Slides:



Advertisements
Similar presentations
Feedback Control Real-Time Scheduling: Framework, Modeling, and Algorithms Chenyang Lu, John A. Stankovic, Gang Tao, Sang H. Son Presented by Josh Carl.
Advertisements

Real Time Scheduling.
Overload Scheduling in Real-Time Systems
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Fault-Tolerant Scheduling Techniques.
REAL TIME SYSTEMS – SCHEDULING ISSUES
Real Time Scheduling Terminologies define Fixed Priority Scheduler
THE UNIVERSITY of TEHRAN Mitra Nasri Sanjoy Baruah Gerhard Fohler Mehdi Kargahi October 2014.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems (m, k)-firm tasks and QoS enhancement.
Real-Time Scheduling CIS700 Insup Lee October 3, 2005 CIS 700.
Module 2 Priority Driven Scheduling of Periodic Task
Periodic Task Scheduling
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Imprecise Computations.
CprE 458/558: Real-Time Systems
Misconceptions About Real-time Computing : A Serious Problem for Next-generation Systems J. A. Stankovic, Misconceptions about Real-Time Computing: A Serious.
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.
Distributed Real-Time systems 1 By: Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Computer Networks.
MM Process Management Karrie Karahalios Spring 2007 (based off slides created by Brian Bailey)
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.
Real-Time Systems Hierarchical Real-Time Systems for Imprecise Computation Model The 5th EuroSys Doctoral Workshop (EuroDW 2011) Guy Martin.
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.
Scheduling Periodic Real-Time Tasks with Heterogeneous Reward Requirements I-Hong Hou and P.R. Kumar 1.
BFair: An Optimal Scheduler for Periodic Real-Time Tasks
Real Time Scheduling Telvis Calhoun CSc Outline Introduction Real-Time Scheduling Overview Tasks, Jobs and Schedules Rate/Deadline Monotonic Deferrable.
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.
Scheduling Periodic Real-Time Tasks with Heterogeneous Reward Requirements I-Hong Hou and P.R. Kumar 1 Presenter: Qixin Wang.
Survey of Real Time Databases Telvis Calhoun CSc 6710.
Hard Real-Time Scheduling for Low- Energy Using Stochastic Data and DVS Processors Flavius Gruian Department of Computer Science, Lund University Box 118.
5 May CmpE 516 Fault Tolerant Scheduling in Multiprocessor Systems Betül Demiröz.
Real Time Systems Real-Time Schedulability Part I.
What Shape is Your Real-Time System? Lonnie R. Welch Intelligent, Real-Time, Secure Systems Lab. School of EECS Ohio University Michael.
RTOS task scheduling models
CSE 522 Real-Time Scheduling (2)
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.
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
Introduction to Real-Time Systems
For a good summary, visit:
Determining Optimal Processor Speeds for Periodic Real-Time Tasks with Different Power Characteristics H. Aydın, R. Melhem, D. Mossé, P.M. Alvarez University.
Lecture 6: Real-Time Scheduling
Distributed Process Scheduling- Real Time Scheduling Csc8320(Fall 2013)
Real-Time Operating Systems RTOS For Embedded systems.
Embedded System Scheduling
Scheduling with Constraint Programming
EMERALDS Landon Cox March 22, 2017.
Scheduling and Resource Access Protocols: Basic Aspects
Unit OS9: Real-Time and Embedded Systems
Ying Zhang&Krishnendu Chakrabarty Presenter Kasım Sert
Lecture 24: Process Scheduling Examples and for Real-time Systems
CprE 458/558: Real-Time Systems
Process Scheduling B.Ramamurthy 11/18/2018.
Department of Computer Science & Engineering
Realtime Scheduling Algorithms
Elastic Task Model For Adaptive Rate Control
CSCI1600: Embedded and Real Time Software
Networked Real-Time Systems: Routing and Scheduling
Overview of AIGA platform
Process Scheduling B.Ramamurthy 2/23/2019.
CSCI1600: Embedded and Real Time Software
Processes and operating systems
CHAPTER 3 A Reference Model of Real-Time Systems
Ch 4. Periodic Task Scheduling
Leonie Ahrendts, Sophie Quinton, Thomas Boroske, Rolf Ernst
Real-Time Scheduling David Ferry CSCI 3500 – Operating Systems
Presentation transcript:

Imprecise Computation September 7, 2006 JWS Liu, KJ Lin, WK Shih, AC. S. Yu, JY Chung, and W. Zhao, Algorithms for scheduling imprecise computations, IEEE Copmuter, pages 58-68, 1991.

Problem: Possibility of Timing Failure Use WCET for hard real-time tasks Meet all deadlines Hard RT systems can be overloaded or disrupted by the environment Too many targets too track at the same time Faulty sensors in a cruise control system Deriving WCET is not trivial What about context switch time ignored in schedulability analysis? Leave some margin in your schedule Take an iterative approach Measurement: No guarantee on accuracy Analysis: Need to consider architectural details, clock spped, cache, instruction pipelining, multithreading, etc.

Problem: Possibility of Timing Failure Use average case execution time for soft real-time tasks Usually, i.e., in normal cases, meet deadlines Under transient overload, e.g., due to abnormal sensor values that take more time for processing, deadlines can be missed

Imprecise Computation Model Avoid timing faults during transient overloads Prefer timely, imprecise results to late, precise results A task consists of a mandatory and an optional part The mandatory part must complete before the task deadline The optional part improves the quality Can be skipped under overload Tradeoff between quality and timeliness

Examples Radar tracking: Get estimated target locations in a timely fashion than accurate location info too late Video streaming: Transmit a low quality image in time rather than missing the deadline, e.g., to meet the 30 frames/s requirement Control loop: Produce an approximate result by a control law as long as the controlled system, e.g., cruise control system, remain stable

Imprecise Computation Model A task produces a precise result if both the mandatory and optional parts are executed A task produces an imprecise, i.e., approximate, result if only the mandatory part is executed Monotone: Quality monotonically increases as a task executes longer 0/1: Either fully execute the optional part or not at all

Imprecise Task Model Task Ti(mi, oi, di) mi: exec time of mandatory part oi: exec time of optional part di: deadline of Ti mi = 0 for all task Ti in traditional soft real-time systems oi = 0 for all task Ti in traditional hard real-time systems

Error Function Monotone task model 0/1 task model Error ei = fi(oi – ci) where ci is the completed optional part of Ti 0/1 task model ci = oi or ci = 0 for task Ti

Imprecise Scheduling Problems Minimize total error Total error E = ∑i=1, N wiei where wi > 0 is the weight Find a schedule that is optimal in that it is feasible and minimizes the total error Refer to F algorithm in the paper Minimize max error Find a feasible schedule minimizing the max error rather total error Minimize #discarded optional tasks Minimize #tardy tasks

Error Charasteristics of Periodic Tasks Cumulative Error Tracking & control applications Total error can be infinite Take average over π, i.e., multiple of all the periods Non-cumulative Error Audio & video Efficient huerisitic: Execute optional parts only after executing all ready mandatory tasks Assign high priority to mandatory tasks Apply RMS to find a feasible schedule for mandatory tasks

(m, k) Firm Deadline Model [1] Moncef Hamdaoui, Parameswaran Ramanathan, “A Dynamic Priority Assignment Technique for Streams with (m,k)-Firm Deadlines,” IEEE Transactions on Computers, Vol. 44, Issue 12, Dec. 1995. [2] P. Ramanathan, “Overload Management in real-time control applications using (m,k)-firm guarantee”, IEEE Transactions on Parallel and Distributed System, Vol. 10, Issue 6, June 1999.

(m, k) Firm Deadlines For a task Ti, meet at least mi deadlines out of ki consecutive jobs, i.e., task (Ti) instances Example Associate a video stream with (2,3) firm deadlines Transmit at least 2 out of 3 consecutive video frames within the deadline The other two frames can be dropped under overload → Different from imprecise computation

(m, k) Firm Real-Time Task Model Ti = (Ci, Pi, mi, ki) Ci: Computation time Pi: Period Maximum allowable loss rate = (ki-mi)/ki Dynamic Failure Fewer than mi jobs in the window of ki consecutive jobs of Ti meet the deadline

Task Ti’s instance Ti,a released at aPi cannot be dropped if: a = ami/ki ki/mi where a = 0, 1, 2, ... Example: (mi, ki) = (2, 3) Instances 0 and 1 of Ti cannot be dropped according to the equation above

Distance Based Priority (DBP) Scheme [1] Assign the highest priority to the task that is closest to a dynamic failure System Model

MK-RMS Utilization Bound [2] Sufficient (but not necessary) A task set consisted of N periodic (m,k) tasks is schedulable if: Ut = ∑i=1, N (Ci/Pi)(mi/ki) ≤ n(21/n – 1) Algorithm: Follow RMS Under overload, skip task instances if no dynamic failure will occur

Any Question? We will cover “Elastic Task Model” next time (and some power-aware RT scheduling if time permits)