Embedded System Design Framework for Minimizing Code Size and Guaranteeing Real-Time Requirements Insik Shin, Insup Lee, & Sang Lyul Min CIS, Penn, USACSE,

Slides:



Advertisements
Similar presentations
QoS-based Management of Multiple Shared Resources in Dynamic Real-Time Systems Klaus Ecker, Frank Drews School of EECS, Ohio University, Athens, OH {ecker,
Advertisements

Pinwheel Scheduling for Power-Aware Real-Time Systems Gaurav Chitroda Komal Kasat Nalini Kumar.
Energy-efficient Task Scheduling in Heterogeneous Environment 2013/10/25.
Compiler-Based Register Name Adjustment for Low-Power Embedded Processors Discussion by Garo Bournoutian.
1 An Adaptive GA for Multi Objective Flexible Manufacturing Systems A. Younes, H. Ghenniwa, S. Areibi uoguelph.ca.
Explicit Preemption Placement for Real- Time Conditional Code via Graph Grammars and Dynamic Programming Bo Peng, Nathan Fisher, and Marko Bertogna Department.
REAL-TIME COMMUNICATION ANALYSIS FOR NOCS WITH WORMHOLE SWITCHING Presented by Sina Gholamian, 1 09/11/2011.
THE UNIVERSITY of TEHRAN Mitra Nasri Sanjoy Baruah Gerhard Fohler Mehdi Kargahi October 2014.
An introduction to: The uRT51 Microprocessor and Real-Time Programming Suite.
ISE480 Sequencing and Scheduling Izmir University of Economics ISE Fall Semestre.
CSE 460 Hybrid Optimization In this section we will look at hybrid search methods That combine stochastic search with systematic search Problem Classes.
Real-Time Scheduling CIS700 Insup Lee October 3, 2005 CIS 700.
Fair Real-time Traffic Scheduling over A Wireless Local Area Network Maria Adamou, Sanjeev Khanna, Insup Lee, Insik Shin, and Shiyu Zhou Dept. of Computer.
Resource Management for Real-Time Environments Instructor: Dr. Subra Ganesan Presented by: Pooja Mehta Date: 10/16/06.
Time Slicing in Mobile TV Broadcast Networks with Arbitrary Channel Bit Rates Cheng-Hsin Hsu Joint work with Dr. Mohamed Hefeeda April 23, 2009 Simon Fraser.
Towards Feasibility Region Calculus: An End-to-end Schedulability Analysis of Real- Time Multistage Execution William Hawkins and Tarek Abdelzaher Presented.
Conditional scheduling with varying deadlines Ben Horowitz
April 16, 2009 Center for Hybrid and Embedded Software Systems PtidyOS: An Operating System based on the PTIDES Programming.
26 April A Compositional Framework for Real-Time Guarantees Insik Shin and Insup Lee Real-time Systems Group Systems Design Research Lab Dept. of.
Delay-Aware Period Assignment in Control Systems Anton CervinLund University Sweden Enrico BiniScuola Superiore Sant’Anna, Pisa, Italy Real-Time Systems.
Reliability-Aware Frame Packing for the Static Segment of FlexRay Bogdan Tanasa, Unmesh Bordoloi, Petru Eles, Zebo Peng Linkoping University, Sweden 1.
Solution methods for NP-hard Discrete Optimization Problems.
Deterministic Scheduling
Instruction Set Architecture (ISA) for Low Power Hillary Grimes III Department of Electrical and Computer Engineering Auburn University.
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.
Spring 2002Real-Time Systems (Shin) Rate Monotonic Analysis Assumptions – A1. No nonpreemptible parts in a task, and negligible preemption cost –
Distributed Scheduling. What is Distributed Scheduling? Scheduling: –A resource allocation problem –Often very complex set of constraints –Tied directly.
Embedded System Design Framework for Minimizing Code Size and Guaranteeing Real-Time Requirements Insik Shin, Insup Lee, & Sang Lyul Min CIS, Penn, USACSE,
1 Real time signal processing SYSC5603 (ELG6163) Digital Signal Processing Microprocessors, Software and Applications Miodrag Bolic.
October 3, 2005CIS 7001 Compositional Real-Time Scheduling Framework Insik Shin.
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.
Minimizing Cache Overhead via Loaded Cache Blocks and Preemption Placement John Cavicchio, Corey Tessler, and Nathan Fisher Department of Computer Science.
ICCAD 2003 Algorithm for Achieving Minimum Energy Consumption in CMOS Circuits Using Multiple Supply and Threshold Voltages at the Module Level Yuvraj.
The Design of an EDF- Scheduled Resource-Sharing Open Environment Nathan Fisher Wayne State University Marko Bertogna Scuola Superiore Santa’Anna of Pisa.
Baoxian Zhao Hakan Aydin Dakai Zhu Computer Science Department Computer Science Department George Mason University University of Texas at San Antonio DAC.
Computer Science Department University of Pittsburgh 1 Evaluating a DVS Scheme for Real-Time Embedded Systems Ruibin Xu, Daniel Mossé and Rami Melhem.
Low Power Design for Real-Time Systems Low power (energy) consumption is a key design for embedded systems Battery’s life during operation Reliability.
Probabilistic Preemption Control using Frequency Scaling for Sporadic Real-time Tasks Abhilash Thekkilakattil, Radu Dobrin and Sasikumar Punnekkat.
Efficient Admission Control for Enforcing Arbitrary Real-Time Demand-Curve Interfaces Farhana Dewan and Nathan Fisher RTSS, December 6 th, 2012 Sponsors:
1 Reducing Queue Lock Pessimism in Multiprocessor Schedulability Analysis Yang Chang, Robert Davis and Andy Wellings Real-time Systems Research Group University.
DESIGNING VM SCHEDULERS FOR EMBEDDED REAL-TIME APPLICATIONS Alejandro Masrur, Thomas Pfeuffer, Martin Geier, Sebastian Drössler and Samarjit Chakraborty.
1 Exploring Custom Instruction Synthesis for Application-Specific Instruction Set Processors with Multiple Design Objectives Lin, Hai Fei, Yunsi ACM/IEEE.
Company name KUAS HPDS A Realistic Variable Voltage Scheduling Model for Real-Time Applications ICCAD Proceedings of the 2002 IEEE/ACM international conference.
Real Time Scheduling Telvis Calhoun CSc Outline Introduction Real-Time Scheduling Overview Tasks, Jobs and Schedules Rate/Deadline Monotonic Deferrable.
The Global Limited Preemptive Earliest Deadline First Feasibility of Sporadic Real-time Tasks Abhilash Thekkilakattil, Sanjoy Baruah, Radu Dobrin and Sasikumar.
1 Short Term Scheduling. 2  Planning horizon is short  Multiple unique jobs (tasks) with varying processing times and due dates  Multiple unique jobs.
Resource Mapping and Scheduling for Heterogeneous Network Processor Systems Liang Yang, Tushar Gohad, Pavel Ghosh, Devesh Sinha, Arunabha Sen and Andrea.
The 32nd IEEE Real-Time Systems Symposium Meeting End-to-End Deadlines through Distributed Local Deadline Assignment Shengyan Hong, Thidapat Chantem, X.
Solving the Maximum Cardinality Bin Packing Problem with a Weight Annealing-Based Algorithm Kok-Hua Loh University of Maryland Bruce Golden University.
1 Scheduling Processes with Release Times, Deadlines, Precedence and Exclusion Relations J. Xu and D. L. Parnas IEEE Transactions on Software Engineering,
1 Iterative Integer Programming Formulation for Robust Resource Allocation in Dynamic Real-Time Systems Sethavidh Gertphol and Viktor K. Prasanna University.
DTM and Reliability High temperature greatly degrades reliability
Special Class on Real-Time Systems
Real-Time Scheduling II: Compositional Scheduling Framework Insik Shin Dept. of Computer Science KAIST.
Common Approaches to Real-Time Scheduling Clock-driven (time-driven) schedulers Priority-driven schedulers Examples of priority driven schedulers Effective.
Multiprocessor Fixed Priority Scheduling with Limited Preemptions Abhilash Thekkilakattil, Rob Davis, Radu Dobrin, Sasikumar Punnekkat and Marko Bertogna.
Multimedia Computing and Networking Jan Reduced Energy Decoding of MPEG Streams Malena Mesarina, HP Labs/UCLA CS Dept Yoshio Turner, HP Labs.
Optimal Superblock Scheduling Using Enumeration Ghassan Shobaki, CS Dept. Kent Wilken, ECE Dept. University of California, Davis
Research on Embedded Hypervisor Scheduler Techniques 2014/10/02 1.
Workload Clustering for Increasing Energy Savings on Embedded MPSoCs S. H. K. Narayanan, O. Ozturk, M. Kandemir, M. Karakoy.
Multi-Objective Optimization for Topology Control in Hybrid FSO/RF Networks Jaime Llorca December 8, 2004.
A stochastic scheduling algorithm for precedence constrained tasks on Grid Future Generation Computer Systems (2011) Xiaoyong Tang, Kenli Li, Guiping Liao,
Determining Optimal Processor Speeds for Periodic Real-Time Tasks with Different Power Characteristics H. Aydın, R. Melhem, D. Mossé, P.M. Alvarez University.
Optimization of Time-Partitions for Mixed-Criticality Real-Time Distributed Embedded Systems Domițian Tămaș-Selicean and Paul Pop Technical University.
Embedded System Scheduling
Marilyn Wolf1 With contributions from:
Scheduling with Constraint Programming
Solution methods for NP-hard Discrete Optimization Problems
Presentation transcript:

Embedded System Design Framework for Minimizing Code Size and Guaranteeing Real-Time Requirements Insik Shin, Insup Lee, & Sang Lyul Min CIS, Penn, USACSE, SNU, KOREA The 23rd IEEE International Real-Time Systems Symposium December 3-5 Austin, TX. (USA)

2 Outline  Design problem in real-time embedded systems motivation problem statement  Solution – design framework overview problem formulation heuristic solutions and evaluations  Conclusion

3 Code Size Reduction in Embedded Systems  Code size is a critical design factor For many embedded systems, code size reduction can affect their design and manufacturing cost.  Code size reduction technique at ISA level a subset of normal 32-bit instructions can be compressed into a 16-bit format as in ARM Thumb and MIPS 16. code size can be reduced by 30%, while the number of instructions can increase by 40%.

4 Code Size vs Execution Time Tradeoff  Code size (s) / execution time (e) tradeoff Program 32 bit a program unit (function or basic block) can be compiled into 16 or 32 bit instructions. 16 bit s e then, we can obtain a list of possible (s, e) pairs for each program 32 bit program unit

5 Tradeoff Function  Discrete tradeoff function for each task  i with the list of possible (s, e) pairs for each program (task), we can define a discrete tradeoff function s = f i (e) for each task. s e

6 Tradeoff Function  Linear approximated tradeoff function we can safely approximate the discrete tradeoff function with a linear tradeoff function. s e

7  Given the code size vs. execution time tradeoff of each task in a real-time embedded system, Challenging Problem Task Tradeoff Task 1Task 2Task n … Real-time embedded system a natural problem is minimizing the total code size of the system while guaranteeing all the temporal requirements imposed on the system.

8  Much work on the real-time system design framework guaranteeing the system temporal requirements.  Traditional design frameworks are for minimizing the system utilization, while our problem aims at minimizing the system code size.  Instead of solving the problem from the scratch, we chose to extend a traditional real-time design framework considering code size minimization. Our Approach

9 Period Calibration Method (PCM)  A popular design framework that transforms real-time system requirements into real-time task scheduling parameters while guaranteeing the system timing requirements minimizing the system utilization  R. Gerber et al. “Guaranteeing End-to-End Timing Constraints by Calibrating Intermediate Processes”, RTSS ’94.

10 Period Calibration Method (PCM) X1 X2 Y1 11 22 d1 33 d2 44 Task Precedence End-to-End Timing Requirements System Requirements Task Parameters Period, Offset, Deadline, Fixed Priority System Requirements Task Parameters Guaranteeing the system end-to-end timing requirements Minimizing the utilization Task Execution Time PCM

11 Design Framework Overview of Our Approach System Requirements Task Tradeoff Task 1Task 2Task n … Task Precedence End-to-End Timing Requirements Task Parameters Period, Offset, Deadline, Execution Time, Code Size System Requirements & Task Tradeoff Task Parameters Guaranteeing the system end-to-end timing requirements Minimizing the total code size

12 Design Framework Overview Design Framework System Requirements Task Tradeoff Task Execution Time PCM Period, Offset, Deadline Execution Time, Code Size Optimization Framework Feasibility Analysis Feasibility Constraint Task Parameters

13 t2t2 t1t1  Feasibility Analysis for all time intervals [t1,t2], the amount of execution to be done within the interval is no greater than the interval length, Design Framework : Feasibility Analysis this feasibility analysis is NP-hard [Baruah ’90].  Task model asynchronous periodic tasks with pre-period deadlines under EDF scheduling 11 22 3

14 t2t2 t1t1  “Synchronous” time interval starts at the release time of a job and ends at the deadline of a job. Design Framework : Feasibility Analysis 11 22 3 for all possible time intervals for all synchronous time intervals Feasibility Analysis

15  Optimization problem objective: minimizing constraint: feasibility for all synchronous time intervals [t1, t2] Design Framework : Optimization Framework We want to determine task execution time to minimize the total code size while guaranteeing feasibility. it is a form of a LP problem with linear tradeoff regardless of feasibility analysis complexity, it is NP-hard with discrete tradeoff

16  Heuristics for solving the optimization problem Highest Best Reduction-Ratio First (HBRF)  favors a task that reduces its code size the most with the same amount of execution time increase Longest Period First (LPF)  favors a task with the longest period Highest Best Weighted-Reduction-Ratio First (HBWF)  combines HBRF and LPF  Complexity HBRF & HBWF – O(n·h), LPF – O(n) n: # of tasks, h: # of tradeoff values  Performance evaluation through simulation Design Framework : Optimization Framework

17  Simulation parameters period : 10, 20, 25, 50, or 100 ms offset & deadline : randomly chosen according to period 5 pairs of code size/execution time tradeoff are randomly chosen according to offset, deadline, and period 4, 6, 8, 10, and 12 tasks (more than 100 times each)  Simulation measure - closeness to OPT “RA” = the reduced amount of total code size closeness to OPT = Simulation RA by optimal solution RA by heuristic solution

18 Performance of algorithms with 8 tasks Closeness to OPT (%)

19 Performance of BEST with various task numbers Closeness to OPT (%)

20 Conclusion  Design framework taking advantage of the code size vs. execution time tradeoff  Future work To develop an integrated approach and to evaluate the complexity and effectiveness. To extend this framework so as to utilize tradeoffs among code size, execution time, and energy consumption.