Flexible Scheduling of Software with Logical Execution Time Constraints* Stefan Resmerita and Patricia Derler University of Salzburg, Austria *UC Berkeley,

Slides:



Advertisements
Similar presentations
COMP 110: Introduction to Programming Tyler Johnson Feb 11, 2009 MWF 11:00AM-12:15PM Sitterson 014.
Advertisements

COMP 110: Introduction to Programming Tyler Johnson Feb 25, 2009 MWF 11:00AM-12:15PM Sitterson 014.
COMP 110: Introduction to Programming Tyler Johnson Mar 16, 2009 MWF 11:00AM-12:15PM Sitterson 014.
COMP 110: Introduction to Programming Tyler Johnson Apr 13, 2009 MWF 11:00AM-12:15PM Sitterson 014.
COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014.
COMP 110: Introduction to Programming Tyler Johnson Apr 27, 2009 MWF 11:00AM-12:15PM Sitterson 014.
Covert Barcodes handle on-the-spot Brand and Document Authentication Information Management Institute Conference on Security Printing 11/18/2009 Read what.
Large Scale Integration of Senses for the Semantic Web Jorge Gracia, Mathieu dAquin, Eduardo Mena Computer Science and Systems Engineering Department (DIIS)
Wouter Noordkamp The assessment of new platforms on operational performance and manning concepts.
Simulation of Feedback Scheduling Dan Henriksson, Anton Cervin and Karl-Erik Årzén Department of Automatic Control.
Washington WASHINGTON UNIVERSITY IN ST LOUIS Real-Time: Periodic Tasks Fred Kuhns Applied Research Laboratory Computer Science Washington University.
Student Learning Center Time Management Welcome to the Time Management workshop. While we are waiting to begin, please fill out the blank weekly.
October FUEL PRICE EVALUATION Comparing different fuel costs is a complex issue requiring an in-depth knowledge of fuel properties and characteristics,
Automation Solutions for Ladle Gate Applications
November 23, 2005 Egor Bondarev, Michel Chaudron, Peter de With Scenario-based PA Method for Dynamic Component-Based Systems Egor Bondarev, Michel Chaudron,
Efficient Solutions For Water Supply Helix High-Pressure Vertical Multistage Pump.
1 Cathay Life Insurance Ltd. (Vietnam) 27/11/20091.
Combining Thread Level Speculation, Helper Threads, and Runahead Execution Polychronis Xekalakis, Nikolas Ioannou and Marcelo Cintra University of Edinburgh.
ATUG Roundtable – November 2009 NBN Architecture Reference Model.
1. (c) Alan Rowley Associates Laboratory Accreditation Dr Alan G Rowley Quality Policy based on Quality Objectives Quality Management System Communicate.
Vault 9 Project Update 9 th September 2009 Paul Pointon – Site Project Delivery Manager LLW Repository Ltd.
30 min Scratch July min intro to Scratch A Quick-and-Dirty approach Leaving lots of exploration for the future. (5 hour lesson plan available)
Agriculture: the Dog that Didn’t Bark? Tim Josling and Stefan Tangermann.
K eep I t C onfidential Prepared by: Security Architecture Collaboration Team.
1 EE5900 Advanced Embedded System For Smart Infrastructure RMS and EDF Scheduling.
CPE555A: Real-Time Embedded Systems
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.
1 Advanced Embedded Systems, BAE 5030 Presentation Topic: Rate Monotonic Analysis By Aswin Ramachandran
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Resource Reclaiming (Contd.)
CSE 522 Real-Time Scheduling (4)
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems (m, k)-firm tasks and QoS enhancement.
Event Driven Real-Time Programming CHESS Review University of California, Berkeley, USA May 10, 2004 Arkadeb Ghosal Joint work with Marco A. Sanvido, Christoph.
Integrated Design and Analysis Tools for Software-Based Control Systems Shankar Sastry (PI) Tom Henzinger Edward Lee University of California, Berkeley.
Project 2 – solution code
Investigating the Effect of Voltage- Switching on Low-Energy Task Scheduling in Hard Real-Time Systems Paper review Presented by Chung-Fu Kao.
Integrated Control and Scheduling James Yang, Steve Sheng, Bill Li Instructor: Prof. Insup Lee.
Expressing Giotto in xGiotto and related schedulability problems Class Project Presentation Concurrent Models of Computation for Embedded Software University.
EE 249, Fall Discussion: Scheduling Haibo Zeng Amit Mahajan.
Embedded Systems Exercise 3: Scheduling Real-Time Periodic and Mixed Task Sets 18. May 2005 Alexander Maxiaguine.
Scheduling Algorithms for Multiprogramming in a Hard-Real-Time Environment Presented by Pete Perlegos C.L. Liu and James W. Layland.
November 18, 2004 Embedded System Design Flow Arkadeb Ghosal Alessandro Pinto Daniele Gasperini Alberto Sangiovanni-Vincentelli
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
MicroC/OS-II Embedded Systems Design and Implementation.
Scheduling Algorithms for Multiprogramming in a Hard-Real-Time Environments.
MM Process Management Karrie Karahalios Spring 2007 (based off slides created by Brian Bailey)
Computer Science Department University of Pittsburgh 1 Evaluating a DVS Scheme for Real-Time Embedded Systems Ruibin Xu, Daniel Mossé and Rami Melhem.
Real-Time Embedded Software Synthesis 即時嵌入式軟體合成 熊博安國立中正大學資訊工程學系民國九十年十一月廿九日.
Probabilistic Preemption Control using Frequency Scaling for Sporadic Real-time Tasks Abhilash Thekkilakattil, Radu Dobrin and Sasikumar Punnekkat.
Scheduling policies for real- time embedded systems.
DESIGNING VM SCHEDULERS FOR EMBEDDED REAL-TIME APPLICATIONS Alejandro Masrur, Thomas Pfeuffer, Martin Geier, Sebastian Drössler and Samarjit Chakraborty.
Real-Time Systems Mark Stanovich. Introduction System with timing constraints (e.g., deadlines) What makes a real-time system different? – Meeting timing.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 31 – Multimedia OS (Part 1) Klara Nahrstedt Spring 2011.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
Prepare by : Ihab shahtout.  Overview  To give an overview of fixed priority schedule  Scheduling and Fixed Priority Scheduling.
Handling Mixed-Criticality in SoC- based Real-Time Embedded Systems Rodolfo Pellizzoni, Patrick Meredith, Min-Young Nam, Mu Sun, Marco Caccamo, Lui Sha.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems RMS and EDF Schedulers.
Special Class on Real-Time Systems
Introduction to Embedded Systems Rabie A. Ramadan 5.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 31 – Process Management (Part 1) Klara Nahrstedt Spring 2009.
CS333 Intro to Operating Systems Jonathan Walpole.
Undergraduate course on Real-time Systems Linköping University TDDD07 Real-time Systems Lecture 2: Scheduling II Simin Nadjm-Tehrani Real-time Systems.
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)
Networked Embedded Control System - Integration of control and computing Moonju Park Dept. of Computer Science & Engineering University of Incheon 1.
ECE 720T5 Fall 2012 Cyber-Physical Systems
EEE 6494 Embedded Systems Design
Elastic Task Model For Adaptive Rate Control
The End Of The Line For Static Cyclic Scheduling?
Presentation transcript:

Flexible Scheduling of Software with Logical Execution Time Constraints* Stefan Resmerita and Patricia Derler University of Salzburg, Austria *UC Berkeley, USA

RePP: Flexible Scheduling of LET Software October 14, Introduction Scope: Embedded software aplications –Set of periodic tasks with predictable timing behavior –Preemptive scheduling –Event-triggered tasks Problem: Predictability is achieved by restricting the set of feasible schedules Aim: Relax scheduling restrictions while preserving predictability

RePP: Flexible Scheduling of LET Software October 14, The LET Programming Model Specification of logical execution times for tasks –Giotto, TDL, HTL, xGiotto, FTOS Implementation –Dedicated runtime system

RePP: Flexible Scheduling of LET Software October 14, Main Runtime Operations 1.Update outputs at LET end 2.Invoke task at LET start a)Update inputs b)Release task for execution

RePP: Flexible Scheduling of LET Software October 14, Scheduling High-level: scheduling of operations –Static schedule compiled into a „timing program“ –Platform independent Low-level: scheduling of task executions –Platform dependent –May use any policy (e.g., FPS, EDF) –Schedulability test uses WCET information What if the system is not schedulable?

RePP: Flexible Scheduling of LET Software October 14, Trade-offs Increased predictability –Separation of timing from functionality –Separation of reactivity from scheduling Platform independence –Portable timing program Performance costs –Application performance (response time) –Platform requirements (memory/time) –Processor utilization (idle time)

RePP: Flexible Scheduling of LET Software October 14, This Work Provides a methodology for obtaining more flexible high-level schedules Keep predictability Increase processor utilization Cost: Portability is reduced –Provide tool support

RePP: Flexible Scheduling of LET Software October 14, Enlarging Scheduling Margins Use more information about –Execution times of tasks –Predictability of inputs –Low-level scheduling

RePP: Flexible Scheduling of LET Software October 14, Common Task Structures Shared memory Internal dispatching Offsets Example (Two tasks) –Periods: 4 and 8 –Offsets: 2 and PowerOn8ms_A8ms_B16ms4ms

RePP: Flexible Scheduling of LET Software October 14, Case 1: Reading from Sensors Internal port p is connected to a sensor The variable p is updated at t Ls (T) δ(T,p): minimun execution time of T up to accessing p Task T can be started at time t r = t Ls (T) – δ(T,p)

RePP: Flexible Scheduling of LET Software October 14, Case 2: Reading from LET-Based Tasks Ports p 1 and p 2 are updated from tasks T 1 and T 2, respectively, at the end of their LETs t r =max{t Le (T 1 ) – δ(T,p 1 ), t Le (T 2 ) – δ(T,p 2 )}

RePP: Flexible Scheduling of LET Software October 14, Modified Operational Requirements (O1) Update task outputs at LET end (O2) Update inputs connected to sensors at LET start (O3) Update input ports connected to LET tasks at the end of the source task‘s LET (O4) Release task T at time t r  t Ls (T) such that No input port connected to a sensor is accessed before t Ls (T) Every port that is accessed before t Ls (T) has a constant value between the moment of the access and t Ls (T)

RePP: Flexible Scheduling of LET Software October 14, Computation of Early Release Times Formally: (1)

RePP: Flexible Scheduling of LET Software October 14, Main Result

RePP: Flexible Scheduling of LET Software October 14, Schedulability Assumption: The system with classical release times is schedulable. Question: Is the system with release margins schedulable? Answer: Depends on the underlying scheduling algorithm

RePP: Flexible Scheduling of LET Software October 14, Scheduling with Earliest Deadline First

RePP: Flexible Scheduling of LET Software October 14, Fixed-Priority Scheduling Counter-example (T 1 has higher priority): Conservative solution: use only the minimum margin Classical case: No missed deadline Early release of T 1 leads to a missed deadline for T 2

RePP: Flexible Scheduling of LET Software October 14, Our Approach: Dual-Priority Scheduling Assign a dual priority to each LET-based task –All dual priorities are lower than all nominal ones A task is scheduled by FPS: –With nominal priority inside its LET –With dual priority outside its LET Effect: a task is executed outside its LET only if the CPU would be otherwise idle! DP scheduling is as predictable as FPS

RePP: Flexible Scheduling of LET Software October 14, Mixing Events in DPS can be used in systems containing also event- triggered tasks Event-triggered tasks are always scheduled with nominal priorities Theorem 3: If event triggered tasks have lower priorities than LET-based tasks, then their response times remain the same or decrease when using release margins with DPS instead of classical release times with FPS.

RePP: Flexible Scheduling of LET Software October 14, Application Example Inverted pendulum:

RePP: Flexible Scheduling of LET Software October 14, Evaluation of DPS

RePP: Flexible Scheduling of LET Software October 14, Conclusions Approach for relaxed scheduling contraints Usage of execution time information beyond just WCET Employ timing predictability offered by LET to improve scheduling of the application Static scheduling, fully automatic Further work: dynamic scheduling, evaluation

Thank you!