Energy Aware Real Time Systems

Slides:



Advertisements
Similar presentations
Energy-Efficient Soft Real-Time CPU Scheduling for Mobile Multimedia Systems Authors: Wanghong Yuan, Klara Narhstedt Appears in SOSP 2003 Presented by:
Advertisements

Zhou Peng, Zuo Decheng, Zhou Haiying Harbin Institute of Technology 1.
ENERGY-EFFICIENT ALGORITHMS INTRODUCTION TO DETERMINISTIC ONLINE POWER-DOWN ALGORITHMS Len Matsuyama CS 695.
1 EE5900 Advanced Embedded System For Smart Infrastructure Energy Efficient Scheduling.
4. Workload directed adaptive SMP multicores
Processing Efficiency Jonah Probell Multimedia Systems Engineer Tensilica Truly Understanding Low-Power Multimedia Chip Design.
Practical Energy-aware Real-Time Systems
VADA Lab.SungKyunKwan Univ. 1 L3: Lower Power Design Overview (2) 성균관대학교 조 준 동 교수
Computer Abstractions and Technology
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.
Power Reduction Techniques For Microprocessor Systems
Chia-Yen Hsieh Laboratory for Reliable Computing Microarchitecture-Level Power Management Iyer, A. Marculescu, D., Member, IEEE IEEE Transaction on VLSI.
Low Power Design for Wireless Sensor Networks Aki Happonen.
Performance and Energy Bounds for Multimedia Applications on Dual-processor Power-aware SoC Platforms Weng-Fai WONG 黄荣辉 Dept. of Computer Science National.
Energy in sensor nets. Where does the power go Components: –Battery -> DC-DC converter –Sensors->ADC->MCU+Memory  Radio.
Objectives Overview Discovering Computers 2014: Chapter 6 See Page 248
NeSSI Wireless Sensor / Actuator Networking March 7, 2001 John Crawford VP, Business Development Crossbow Technology, Inc.
Power-aware Computing n Dramatic increases in computer power consumption: » Some processors now draw more than 100 watts » Memory power consumption is.
RF Wakeup Sensor – On-Demand Wakeup for Zero Idle Listening and Zero Sleep Delay.
Practical Energy-aware Real- Time Systems Koo 1.
1 EE 587 SoC Design & Test Partha Pande School of EECS Washington State University
Juanjo Noguera Xilinx Research Labs Dublin, Ireland Ahmed Al-Wattar Irwin O. Irwin O. Kennedy Alcatel-Lucent Dublin, Ireland.
CS 423 – Operating Systems Design Lecture 22 – Power Management Klara Nahrstedt and Raoul Rivas Spring 2013 CS Spring 2013.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems.
Minimizing Response Time Implication in DVS Scheduling for Low Power Embedded Systems Sharvari Joshi Veronica Eyo.
Multimedia & Communications ATMEL Bluetooth Background information on Bluetooth technology ATMEL implementation of Bluetooth spec.
Lecture 03: Fundamentals of Computer Design - Trends and Performance Kai Bu
Low-Power Wireless Sensor Networks
Objectives Overview Describe the various computer and mobile device cases and the contents they protect Describe multi-core processors, the components.
Your Interactive Guide to the Digital World Discovering Computers 2012 Lecture -1.
Lecture 1: Performance EEN 312: Processors: Hardware, Software, and Interfacing Department of Electrical and Computer Engineering Spring 2013, Dr. Rozier.
1 EE5900 Advanced Embedded System For Smart Infrastructure Energy Efficient Scheduling.
Sogang University Advanced Computing System Chap 1. Computer Architecture Hyuk-Jun Lee, PhD Dept. of Computer Science and Engineering Sogang University.
CSE 598/494 Class 20. Announcements Graded midterms handed out Assignment 3 coming up due Nov 14 th  After class collect the hardware platforms Phase.
C OMPUTER O RGANIZATION AND D ESIGN The Hardware/Software Interface 5 th Edition Chapter 1 Computer Abstractions and Technology Sections 1.5 – 1.11.
1 XYZ: A Motion-Enabled, Power Aware Sensor Node Platform for Distributed Sensor Network Applications Presenter: James D. Lymberopoulos, A. Savvides.
1 Distributed Energy-Efficient Scheduling for Data-Intensive Applications with Deadline Constraints on Data Grids Cong Liu and Xiao Qin Auburn University.
Power Management of Flash Memory for Portable Devices ELG 4135, Fall 2006 Faculty of Engineering, University of Ottawa November 1, 2006 Thayalan Selvam.
Thermal-aware Issues in Computers IMPACT Lab. Part A Overview of Thermal-related Technologies.
CPU Inside Maria Gabriela Yobal de Anda L#32 9B. CPU Called also the processor Performs the transformation of input into output Executes the instructions.
Hard Real-Time Scheduling for Low- Energy Using Stochastic Data and DVS Processors Flavius Gruian Department of Computer Science, Lund University Box 118.
Power and Control in Networked Sensors E. Jason Riedy and Robert Szewczyk Presenter: Fayun Luo.
A Systematic Approach to the Design of Distributed Wearable Systems Urs Anliker, Jan Beutel, Matthias Dyer, Rolf Enzler, Paul Lukowicz Computer Engineering.
Morgan Kaufmann Publishers
Critical Power Slope: Understanding the Runtime Effects of Frequency Scaling Akihiko Miyoshi †,Charles Lefurgy ‡, Eric Van Hensbergen ‡, Ram Rajamony ‡,
CS 546: Intelligent Embedded Systems Gaurav S. Sukhatme Robotic Embedded Systems Lab Center for Robotics and Embedded Systems Computer Science Department.
Computer Science and Engineering Power-Performance Considerations of Parallel Computing on Chip Multiprocessors Jian Li and Jose F. Martinez ACM Transactions.
Operating System. Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems Multiprocessor Systems Distributed Systems Clustered.
EDA (Circuits) Overview Paul Hasler. Extent of Circuits (Analog/Digital) Analog ~ 20% of IC market since 1970 Hearing aids Automotive Biomedical Digital.
CprE 458/558: Real-Time Systems (G. Manimaran)1 Energy Aware Real Time Systems - Scheduling algorithms Acknowledgement: G. Sudha Anil Kumar Real Time Computing.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Energy-aware QoS packet scheduling.
E-MOS: Efficient Energy Management Policies in Operating Systems
CS244-Introduction to Embedded Systems and Ubiquitous Computing Instructor: Eli Bozorgzadeh Computer Science Department UC Irvine Winter 2012.
Chapter 4 CPU Scheduling. 2 Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation.
CS203 – Advanced Computer Architecture
Performance COE 301 / ICS 233 Computer Organization Prof. Muhamed Mudawar College of Computer Sciences and Engineering King Fahd University of Petroleum.
Low Power Management for CC2430 Jinho Son Real-Time System Lab.
An operating system for a large-scale computer that is used by many people at once is a very complex system. It contains many millions of lines of instructions.
A DSP based on on-line UPS R.Padamaja G.Mamatha Reddy EEE EEE S.V.C.E S.V.C.E BY.
1 Free Electrons. Kernel, drivers and embedded Linux development, consulting, training and support. http//free-electrons.com TI OMAP 3530 power management.
CS203 – Advanced Computer Architecture
Temperature and Power Management
ECE354 Embedded Systems Introduction C Andras Moritz.
Morgan Kaufmann Publishers
INTRODUCTION TO MICROPROCESSORS
EE5900 Cyber-Physical Systems
Energy Efficient Scheduling in IoT Networks
The University of Adelaide, School of Computer Science
Presentation transcript:

Energy Aware Real Time Systems Acknowledgement: G. Sudha Anil Kumar Ki-Sung Koo Anirudh Pullela Real Time Computing and Networking Laboratory Department of Electrical and Computer Engineering Iowa State University CprE 458/558: Real-Time Systems (G. Manimaran)

CprE 458/558: Real-Time Systems (G. Manimaran) Introduction Energy consumption is an important issue in embedded systems. Mobile and portable devices. Laptops, PDAs. Mobile and Intelligent systems: Digital camcorders, cellular phones, and portable medical devices. CprE 458/558: Real-Time Systems (G. Manimaran)

Introduction Embedded devices play prominent roles in a variety of applications medical sensors in human body. Signaling sensors in war fields. A typical networked embedded system consists of: Computing subsystem -- driven by an embedded processor operated by a RTOS. Communication subsystem -- consists of a radio chipset driven by a firmware. Micorprocessor, Digital Signal Processor (DSP) Radio, RF amplifiers, A-to-D & D-to-A ckts A typical Embedded System Battery Computing Subsystem (Driven by RTOS) Communication Subsystem (Driven by Firmware)

CprE 458/558: Real-Time Systems (G. Manimaran) Important Facts (1) The peak computing rate needed is much higher than the average throughput that must be sustained; High performance is needed only for a small fraction of time, while for the rest of time, a low-performance, a low-power processor would suffice. CprE 458/558: Real-Time Systems (G. Manimaran)

CprE 458/558: Real-Time Systems (G. Manimaran) Workload Profile Peak Computing Rate is needed Work load Average rate would suffice Time CprE 458/558: Real-Time Systems (G. Manimaran)

CprE 458/558: Real-Time Systems (G. Manimaran) Important Facts (2) Processors are based on CMOS logic -- Static power + Dynamic power Dynamic power (due to switching activity) P α V2 . f V α f V: voltage; P: power; E: Energy E = P * Tcc Tcc = CC/f Ei = K .cci . f2 Where Tcc : execution time; CCi : # clock cycles of task Ti. f : frequency at which Ti is run. CprE 458/558: Real-Time Systems (G. Manimaran)

Variable Voltage Processors Modern processors operate at multiple frequency levels. Qualcomm Snapdragon Family (Powering numerous Android devices) Apple A7 processor (Powering all iPhone 5S) Intel Haswell Processors (all latest laptops) Higher the frequency level higher the energy consumption CprE 458/558: Real-Time Systems (G. Manimaran)

Case study (iPhone 5S) iPhone 5’s power management system Computation System (operated by RTOS) Computation System (operated by Firmware) Multiprocessor (A6) Memories RF Modem Power amplifier Power management ICs Battery 3.8V - 5.45Wh 1440mAh DC/DC down converter LDO (Low Drop Out) Why we need these? Internal elements needs various types of voltages. -. DC/DC converter provides large capacity power. -. LDO provides small capacity power. CprE 458/558: Real-Time Systems (G. Manimaran)

Case study (smart phones) Practical multi-core processors Contemporary multi-core processors have more than 2 cores at about 1 GHz. Device Chip maker Processor name Frequency # cores iPhone 5 Apple A6 1.02GHz 2 Galaxy S III Samsung Exynos 4412 1.44GHz 4 Motorola RAZR Ti OMAP 4430 1.2GHz HTC one S Qualcomm MSM8260A Asus transformer NVIDIA Tegra 3 1.3GHz New iPad A5X 1 GHz CprE 458/558: Real-Time Systems (G. Manimaran)

Case study (smart phones) Multimedia parts (ARM core, power regulators, LCD, camera, etc.) are the major part of power consumption when a wireless embedded system does not work for communication. RX power amplifier, RF module will also critical when the system work for wireless communication.

Energy-aware Real-Time Systems There will be three main types of power management techniques. DVFS (Dynamic Voltage & Frequency Scaling) DMS (Dynamic Modulation Scaling) Network Coding

Dynamic Voltage Scaling (DVS) DVS scales the operating voltage of the processor along with the frequency. Since energy is proportional to f2 , DVS can potentially provide significant energy savings through frequency and voltage scaling. CprE 458/558: Real-Time Systems (G. Manimaran)

CprE 458/558: Real-Time Systems (G. Manimaran) Simple DVS-Scheme DVS Next task Task queue Over loaded f = F system Under loaded f = F/2 CprE 458/558: Real-Time Systems (G. Manimaran)

CprE 458/558: Real-Time Systems (G. Manimaran) DVS-example Consider a task with a computation time 20 units. Energy of Ti without DVS: E1 = K * 20 * F2. Energy of Ti with DVS: E2 = K * 20 * (F/2)2. Clearly, E2 = (E1)/4 Time taken = t1 (say) Time taken = t2 = 2 * t1 Therefore, if we reduce the frequency we save energy but, we spend more time in performing the same computation CprE 458/558: Real-Time Systems (G. Manimaran)

Energy-Time Tradeoffs 60 40 20 Energy Savings 10 Time CprE 458/558: Real-Time Systems (G. Manimaran)

Case study (simple power scheduling) A brief flow chart of power scheduling Computation System (off-line operation) Communication System (on-line operation) Power-on Start-up Three types of call modes Communication off / on High power mode Idle mode High freq. & low vtg. Medium power mode Low power mode Sleep mode Active mode Low freq. & low vtg. High freq. & high vtg. *For DVS, there are low & high frequency clocks . DC converter and LDO provide various types of voltages. *Low /medium/high power mode is decided by antenna condition. CprE 458/558: Real-Time Systems (G. Manimaran)

Case study (DVS, Dynamic Voltage Scaling) An example of DVS for processor’ core. voltage Time High CPU Semi-low CPU Low CPU Sleep mode High frequency Semi-low frequency Low frequency Active mode Idle mode *There are various DVS scenarios for power saving in order to save average power consumption. Core voltage of processors is supplied by system applications. CprE 458/558: Real-Time Systems (G. Manimaran)

Power Consumption of DVFS Implemented in Android-based device, Google Nexus S

Nexus S Processor Specs Running Android 4.1.2 Jelly Bean OS. ARM Cortex A8 Hummingbird Processor Supports dynamic frequency scaling from 100Mhz to 1Ghz Supports voltage scaling from 800mV to 1500mV Supported frequencies along with their predefined voltage of operation are as follows – 100Mhz -> 950mV 200Mhz -> 950mV 400Mhz -> 1050mV 800Mhz -> 1200mV 1000Mhz -> 1250mV

Implementation of DVFS Android-based kernels were used to implement task schedulers and CPU governors that are the 2 important factors that contribute to deciding the performance and power consumption in an Android-based device. Before moving ahead, it is important to know the different configurations of CPU governors and task schedulers with respect to the Android Operating System.

Implementation of DVFS Implemented using Linux kernels which support multiple CPU governors and schedulers. CPU governor -> Decides how to scale the frequency of the processor based on the workload. Scheduler -> Gives tasks access to resources at the time of execution

CPU Governors There are numerous CPU governors that can be included in kernels. Ondemand Conservative Performance Interactive Powersave Min-Max

Schedulers The different linux-based schedulers that are frequently implemented in Android are – Complete Fair Scheduler (CFS) Brain F*** Scheduler (BFS) No-Op Scheduler Deadline Scheduler

Compiling the Kernel Environment -> Ubuntu Linux 12.04. It involved forking off kernel code from github.com and running pre-defined steps to complete the compilation. Schedulers and CPU governors can be added and removed as required at the time of compilation.

Tool for changing various parameters NSTools and setCPU, both applications available on the Google Play Store, can be used to change various parameters on the phone -> CPU’s maximum and minimum frequency, governor and scheduler. Manipulating with the voltage of operation can be done by “echo”ing values directly to the following file – /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table Similar echoing of values can be done to change the maximum and minimum operating frequencies of the CPU as well.

Tool for changing various parameters CprE 458/558: Real-Time Systems (G. Manimaran)

Questions?

CprE 458/558: Real-Time Systems (G. Manimaran) References Power reduction techniques for microprocessor systems Vasanth Venkatachalam, Michael Franz , ACM Computing Surveys (CSUR),   Volume 37 Issue 3 , Sept. 2005. Power management for energy-aware communication systems, ACM Transactions on Embedded Computing Systems (TECS), Volume 2 ,  Issue 3  (August 2003) , Pages: 431 - 447   [1] Real-Time Dynamic voltage scaling for Low-Power Embedded Operating Systems, P. Pillai and K. G. Shin, in ACM SOSP, pages 89-201, 2001. [2] Intra-task Voltage Scheduling on DVS-Enabled Hard Real-Time Systems, D. Shin and J. kim, IEEE Design and Test of Computers, March 2001. [3] Enhanced fixed-priority scheduling with (m,k)-firm guarantee, G. Quan and X. ( Sharon ) Hu IEEE Real-Time Systems Symposium, pp 79-88, 2000. CprE 458/558: Real-Time Systems (G. Manimaran)