Networked Embedded Control System - Integration of control and computing Moonju Park Dept. of Computer Science & Engineering University of Incheon 1.

Slides:



Advertisements
Similar presentations
Simulation of Feedback Scheduling Dan Henriksson, Anton Cervin and Karl-Erik Årzén Department of Automatic Control.
Advertisements

Courseware Scheduling of Distributed Real-Time Systems Jan Madsen Informatics and Mathematical Modelling Technical University of Denmark Richard Petersens.
CS 443 Advanced OS Fabián E. Bustamante, Spring 2005 Resource Containers: A new Facility for Resource Management in Server Systems G. Banga, P. Druschel,
Sensor Network Platforms and Tools
SIGMETRICS 2008: Introduction to Control Theory. Abdelzaher, Diao, Hellerstein, Lu, and Zhu. CPU Utilization Control in Distributed Real-Time Systems Chenyang.
Project 2 – solution code
CS 3013 & CS 502 Summer 2006 Scheduling1 The art and science of allocating the CPU and other resources to processes.
Integrated Control and Scheduling James Yang, Steve Sheng, Bill Li Instructor: Prof. Insup Lee.
Chapter 13 Embedded Systems
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
1 of 14 1 Analysis and Synthesis of Communication-Intensive Heterogeneous Real-Time Systems Paul Pop Computer and Information Science Dept. Linköpings.
System-Wide Energy Minimization for Real-Time Tasks: Lower Bound and Approximation Xiliang Zhong and Cheng-Zhong Xu Dept. of Electrical & Computer Engg.
Courseware Basics of Real-Time Scheduling Jan Madsen Informatics and Mathematical Modelling Technical University of Denmark Richard Petersens Plads, Building.
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.
Wk 2 – Scheduling 1 CS502 Spring 2006 Scheduling The art and science of allocating the CPU and other resources to processes.
Scheduling Algorithms for Multiprogramming in a Hard-Real-Time Environment Presented by Pete Perlegos C.L. Liu and James W. Layland.
Spring 2002Real-Time Systems (Shin) Rate Monotonic Analysis Assumptions – A1. No nonpreemptible parts in a task, and negligible preemption cost –
Chapter 1 Embedded And Real-Time System Department of Computer Science Hsu Hao Chen Professor Hsung-Pin Chang.
Real-Time Software Design Yonsei University 2 nd Semester, 2014 Sanghyun Park.
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
MM Process Management Karrie Karahalios Spring 2007 (based off slides created by Brian Bailey)
Low-Power Wireless Sensor Networks
Sogang University Advanced Computing System Chap 1. Computer Architecture Hyuk-Jun Lee, PhD Dept. of Computer Science and Engineering Sogang University.
1 of 14 1/15 Synthesis-driven Derivation of Process Graphs from Functional Blocks for Time-Triggered Embedded Systems Master thesis Student: Ghennadii.
Scheduling policies for real- time embedded systems.
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 CS 3204 – Operating Systems Lecture 20 3/3/2006 Shahrooz Feizabadi.
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
Copyright ©: Nahrstedt, Angrave, Abdelzaher1 Scheduling II: priority scheduling.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems RMS and EDF Schedulers.
Real-Time Scheduling CS 3204 – Operating Systems Lecture 13 10/3/2006 Shahrooz Feizabadi.
Multimedia Computing and Networking Jan Reduced Energy Decoding of MPEG Streams Malena Mesarina, HP Labs/UCLA CS Dept Yoshio Turner, HP Labs.
Martin Kruliš by Martin Kruliš (v1.1)1.
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.
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.
Unit - I Real Time Operating System. Content : Operating System Concepts Real-Time Tasks Real-Time Systems Types of Real-Time Tasks Real-Time Operating.
Spark on Entropy : A Reliable & Efficient Scheduler for Low-latency Parallel Jobs in Heterogeneous Cloud Huankai Chen PhD Student at University of Kent.
Networked Embedded Control System - Integration of control and computing Moonju Park Dept. of Computer Science & Engineering University of Incheon 1.
 Operating system.  Functions and components of OS.  Types of OS.  Process and a program.  Real time operating system (RTOS).
Input and Output Optimization in Linux for Appropriate Resource Allocation and Management James Avery King.
Introduction Cyber physical system What’s the drivers?
Reducing the Number of Preemptions in Real-Time Systems Scheduling by CPU Frequency Scaling Abhilash Thekkilakattil, Anju S Pillai, Radu Dobrin, Sasikumar.
ECE 720T5 Fall 2012 Cyber-Physical Systems
REAL-TIME OPERATING SYSTEMS
TrueTime.
Dynamo: A Runtime Codesign Environment
Introduction to Load Balancing:
Andrea Acquaviva, Luca Benini, Bruno Riccò
EEE Embedded Systems Design Process in Operating Systems 서강대학교 전자공학과
Processes and Threads Processes and their scheduling
Wayne Wolf Dept. of EE Princeton University
EEE 6494 Embedded Systems Design
Task Scheduling for Multicore CPUs and NUMA Systems
EMBEDDED SYSTEMS
System Control based Renewable Energy Resources in Smart Grid Consumer
Chapter 8 – Processor Scheduling
Digital Processing Platform
Process Scheduling B.Ramamurthy 11/18/2018.
Pareto Optimization to enable set-based Designs of ship systems
Chapter 6: CPU Scheduling
Chapter 4: Threads.
Operating systems Process scheduling.
Introduction to Embedded Systems
Embedded Processors.
Uniprocessor scheduling
Research Topics Embedded, Real-time, Sensor Systems Frank Mueller moss
Presentation transcript:

Networked Embedded Control System - Integration of control and computing Moonju Park Dept. of Computer Science & Engineering University of Incheon 1

Introduction  Challenges in embedded systems design Time to market puts pressure on design time The increased complexity (# of components/lines of code, hetereogeneity, distributed/networked) demands increased system design productivity Quality of new predictable, dependable designs has to improve. Moving from feasible to optimal systems requires new radical design processes and tools.  Control system constitutes an important subclass of embedded computing systems.

Environmental change: Networked Embedded Systems Embedded systems are becoming increasingly networked Controller-area-networks (CAN) bus in automobiles Services in large buildings are now run across networks e.g. heating, lighting, security

4 Controller Plant Node ActuatingSensing Node ActuatingSensing Network Control view of NECS

 Due to economic considerations, in spite of the fast development of the computing hardware, embedded systems are resource constrained Limitations on: speed, memory size, communication bandwidth, etc. Use of additional resource (CPU, RAM) is not economically justified. Cost favors general-purpose computing components over specially designed hardware and software.  Quality of control (QoC) not only depends on the control theoretic methods but also efficient management of resources. The key to manage resources is “scheduling” resources. Conventional design of control systems does not consider resource scheduling. Resulting in “implementation-aware control systems.” 5 Control systems in computing system’s perspective

 Computing systems (H/W & S/W) are inherently control systems. Computing systems are designed with assumptions, so there are uncertainties in resource utilization that affect the performance. Programs’ execution time Users’ requests Input data Etc. Regarding complex computing systems as controlled dynamics with defined error terms. Use of feedback control method to computing systems can increase the flexibility. Virtually any of computing applications can be considered. 6 Computing systems in control system’s perspective

 Given a set of processes to be controlled and a computer with limited computational resource, design a set of controllers and schedule them as real-time tasks such that the overall control performance is optimized. K-E. Årzén & A. Cervin. Control and embedded computing: survey of research directions. Uni-processor case.  Alternative view Design and schedule a set of controllers such that the least expensive implementation platform can be used while still meeting the performance specifications. 7 Co-Design of Control and Scheduling

Control of computing systems  Conventional approach Generation of static schedule – Problem High complexity – longer design time Longer response time Hard to use in general-purpose computers Use of periodic task model – Problem Low utilization due to polling Complexity in programming due to resource scheduling

Applying control theory to scheduling  Feedback controlled scheduling system e.g. PID control

Feedback Controlled EDF Problem: Only applicable to control relative delay

 Web-based applications Web Application Server or HTTP server provides services upon requests from network Users expect real-time response from server 11 Applying control theory to computing systems - Example

Control of dynamic computing system  Implementation: Apache server on Linux (AMD-based PC), HTTP 1.1 From “Schedulability Analysis and Utilization Bounds for Highly Scalable Real-Time Services” by T.F. Abdelzaher and C. Lu, presented at RTAS 2001 Utilization bound for non-periodic tasks:

 A set of digital control loops  Each controller is realized as a separate period task The primary goal of co-design approaches becomes optimizing QoC (Quality of Control) under CPU resource constraints Optimize sampling period, input-output latency subject to performance specification and schedulability. 13 Implementation-aware control - effects of computing system - maximize Quality of control - subject to Schedulability

 Sampling frequency affects the system performance High frequency  high control performance, but high network utilization  Less number of controllers  high cost Low frequency  low network utilization and low cost, but low control performance  The upper bound of sampling period Sampling period guaranteeing the stability of the system Stability constraint  The lower bound of sampling period Scheduling period from schedulability constraint 14 Effects of sampling period

 Main parts of control loop Data collection Control algorithm computation Output transmission  Timing constraints Sampling period I/O latency (control delay) Though sampling frequency at sensor node is fixed, sampling period at controller may have jitter depending on implementations Scheduling theory can be used to analyze the time variations and delays in control loops. 15 Control loop timing

 Three control tasks T1=12ms, T2=8ms, T3=5ms Control loop t=current time LOOP A/D conversion ControlAlgorithmExecution D/A conversion t=t+h WaitUntil(t) END Priorities are given rate-monotonic. Execution time is 2ms. 16 Example

Implementation awareness 17 Preemptive scheduling T2 T3 T1 Non-preemptive scheduling T2 T3 T1 I/O latency Sampling period I/O latency Sampling period

 Preemptive scheduling Responsiveness Favor high priority tasks (generally) Higher utilization  Non-preemptive scheduling Introduce blocking time (generally) Lower utilization Shorter I/O latency  Control applications’ preference  It is hard to say which one is better 18 Preemptive vs. non-preemptive

Application of computing to control

 Competing shared network Network bandwidth = m i /h i m i = Tc + Tca + Tsc H i = Transmission period of each control system Tc : Computation time Tca : Controller to actuator transmission time Tsc : Sensor to controller transmission time 20 Networked Control Systems

Preemptiveness revisited (short execution time, long network delay) 21 Preemptive scheduling Non-preemptive scheduling TscTcTca TscTcTca (Network is non-preemptive) TscTcTca TscTcTca Error in previous works

Preemptiveness revisited (long execution time) 22 Preemptive scheduling Non-preemptive scheduling TscTcTca TscTcTca (Network is non-preemptive) TscTc Tca TscTcTca Higher priority I/O latency

 Develop compensation method for jitter Building up control functions for irregular sampling interval Offline calculation + online control 23 Control approach - compensation w/o compensation With compensation

 Use of relative deadline different from period  Drawbacks Analysis is complex. There can be utilization loss. 24 Scheduling approach Jitter is reduced

 Utilization can be (virtually) arbitrarily small Example: 25 Use of non-preemptive scheduling T 2  ∞

 Dual priority scheme Two fixed priorities are assigned to a task. Priority Threshold: run-time priority Only tasks with priority higher than the threshold of the currently running tasks can preempt.  It can achieve higher utilization than premptive and non-preemptive scheduling  Threshold calculation requires complex calculation – done offline (design time) 26 Thread-X package

Quantum-based fixed priority scheduling  Combination of priority-based and quantum-based scheduling Enhances utilization Adopts non-preemptiveness in preemptive scheduling Can be easily implemented on general- purpose computers

Quantum-based scheduling vs. Thread-X Achieves higher utilization than Thread-X  Shorter period can be employed

 Energy-limited variable voltage microprocessor on which N independent control tasks run concurrently. 29 Reducing power consumption

 System Model Nominal execution time C i, sampling period h i is normalized processor speed  Energy Model  Dynamic voltage scaling can be employed to reduce the power consumption. By lowering the voltage, the processor can run slowly. 30 Voltage scaling

 Sampling period = 50ms, Computation time = 10ms 31 Idea of DVS 50ms10ms 50ms

 Find a balanced engineering solution for a control system. Shorter sampling period  Higher control performance, Higher power consumption Longer sampling period  Poorer control performance, Lower power consumption  Work in progress currently 32 Low-power control

 Integration of control and scheduling is an emerging field of research. Application of control theory to computing systems. Design of implementation-aware control systems.  Future research directions Control perspective Event-driven control Dynamic models of computing systems Modeling of embedded control systems Computing perspective Event-driven control Providing temporal determinism of control tasks Supporting tools development Practical implementation 33 Conclusion and Future works