CS 423 – Operating Systems Design Lecture 22 – Power Management Klara Nahrstedt and Raoul Rivas Spring 2013 CS 423 - Spring 2013.

Slides:



Advertisements
Similar presentations
16-1 ©2006 Raj JainCSE574sWashington University in St. Louis Energy Management in Ad Hoc Wireless Networks Raj Jain Washington University in Saint Louis.
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.
Chapter 9 Contributed by Alex Turek
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
3G v.s WIFI Radio Energy with YouTube downloads. Energy in Mobile Phone Data Transfers In 3G, there are three states –Idle –DCH (Dedicated Channel), do.
CONTROLLING ENERGY DEMANDS IN MOBILE COMPUTING PRESENTED BY: SHIVANI NAYAR PURVA HUILGOL.
Power management for Laptops. Batteries & power management Nickel Cadmium (Ni-Cd) Nickel-Metal Hydride (Ni-MH) Lithium-Ion (Li-Ion)
Introduction to Smartphone Energy Management. Issue 1/2 Rapid expansion of wireless services, mobile data and wireless LANs Greatest limitation: finite.
Mehdi Amirijoo1 Dynamic power management n Introduction n Implementation, levels of operation n Modeling n Power and performance issues regarding.
Topic 3: Sensor Networks and RFIDs Part 2 Instructor: Randall Berry Northwestern University MITP 491: Selected Topics.
Energy in sensor nets. Where does the power go Components: –Battery -> DC-DC converter –CPU + Memory + Flash –Sensors + ADC –DAC + Audio speakers –Display.
Keeping Hot Chips Cool Thermal Management for Green Computing Yang Ge Professor Qinru Qiu.
S. Reda EN160 SP’08 Design and Implementation of VLSI Systems (EN1600) Lecture 14: Power Dissipation Prof. Sherief Reda Division of Engineering, Brown.
Soft Timers: Efficient Microsecond Software Timer Support For Network Processing Mohit Aron and Peter Druschel Rice University Presented by Reinette Grobler.
Energy in sensor nets. Where does the power go Components: –Battery -> DC-DC converter –Sensors->ADC->MCU+Memory  Radio.
Software Strategies for Portable Computer Energy Management IEEE Personal Communications 1998 Presented by Hsu Hao Chen.
System-Wide Energy Minimization for Real-Time Tasks: Lower Bound and Approximation Xiliang Zhong and Cheng-Zhong Xu Dept. of Electrical & Computer Engg.
CSE477 L26 System Power.1Irwin&Vijay, PSU, 2002 Low Power Design in Microarchitectures and Memories [Adapted from Mary Jane Irwin (
S. Reda EN160 SP’07 Design and Implementation of VLSI Systems (EN0160) Lecture 13: Power Dissipation Prof. Sherief Reda Division of Engineering, Brown.
Power-aware Computing n Dramatic increases in computer power consumption: » Some processors now draw more than 100 watts » Memory power consumption is.
1/18/2008CSCI 315 Operating Systems Design1 Computer System Structures Notice: The slides for this lecture have been largely based on those accompanying.
Low Power Design of Integrated Systems Assoc. Prof. Dimitrios Soudris
Energy Model for Multiprocess Applications Texas Tech University.
1 EE 587 SoC Design & Test Partha Pande School of EECS Washington State University
1 Copyright © 2012, Elsevier Inc. All rights reserved. Chapter 1 Fundamentals of Quantitative Design and Analysis Computer Architecture A Quantitative.
Authors: Mateusz Jarus, Ewa Kowalczuk, Michał Madziar, Ariel Oleksiak, Andrzej Pałejko, Michał Witkowski Poznań Supercomputing and Networking Center GICOMP.
6.893: Advanced VLSI Computer Architecture, September 28, 2000, Lecture 4, Slide 1. © Krste Asanovic Krste Asanovic
- 1 -  P. Marwedel, Univ. Dortmund, Informatik 12, 2003 Universität Dortmund Embedded Systems Power/Energy Aware Embedded Systems Dynamic Voltage Scheduling.
Folklore Confirmed: Compiling for Speed = Compiling for Energy Tomofumi Yuki INRIA, Rennes Sanjay Rajopadhye Colorado State University 1.
17 Sep 2002Embedded Seminar2 Outline The Big Picture Who’s got the Power? What’s in the bag of tricks?
Low Power Techniques in Processor Design
Lecture 03: Fundamentals of Computer Design - Trends and Performance Kai Bu
Low-Power Wireless Sensor Networks
Integrating Fine-Grained Application Adaptation with Global Adaptation for Saving Energy Vibhore Vardhan, Daniel G. Sachs, Wanghong Yuan, Albert F. Harris,
1 Overview 1.Motivation (Kevin) 1.5 hrs 2.Thermal issues (Kevin) 3.Power modeling (David) Thermal management (David) hrs 5.Optimal DTM (Lev).5 hrs.
Energy-Efficient Soft Real-Time CPU Scheduling for Mobile Multimedia Systems Wanghong Yuan, Klara Nahrstedt Department of Computer Science University of.
The 4 functions of a computer are 1.Input 2.Output 3.Storage 4.Processing.
Low Power Design for Real-Time Systems Low power (energy) consumption is a key design for embedded systems Battery’s life during operation Reliability.
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.
Green Computing Power Management Standards Maziar Goudarzi.
MS108 Computer System I Lecture 2 Metrics Prof. Xiaoyao Liang 2014/2/28 1.
Energy Savings with DVFS Reduction in CPU power Extra system power.
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.
Towards Dynamic Green-Sizing for Database Servers Mustafa Korkmaz, Alexey Karyakin, Martin Karsten, Kenneth Salem University of Waterloo.
Basics of Energy & Power Dissipation
Lev Finkelstein ISCA/Thermal Workshop 6/ Overview 1.Motivation (Kevin) 2.Thermal issues (Kevin) 3.Power modeling (David) 4.Thermal management (David)
CS 546: Intelligent Embedded Systems Gaurav S. Sukhatme Robotic Embedded Systems Lab Center for Robotics and Embedded Systems Computer Science Department.
Adaptive Sleep Scheduling for Energy-efficient Movement-predicted Wireless Communication David K. Y. Yau Purdue University Department of Computer Science.
Processor Memory Processor-memory bus I/O Device Bus Adapter I/O Device I/O Device Bus Adapter I/O Device I/O Device Expansion bus I/O Bus.
Determining Optimal Processor Speeds for Periodic Real-Time Tasks with Different Power Characteristics H. Aydın, R. Melhem, D. Mossé, P.M. Alvarez University.
Chapter 11 System Performance Enhancement. Basic Operation of a Computer l Program is loaded into memory l Instruction is fetched from memory l Operands.
1 of 14 Lab 2: Design-Space Exploration with MPARM.
CS203 – Advanced Computer Architecture
Evaluation of Advanced Power Management for ClassCloud based on DRBL Rider Grid Technology Division National Center for High-Performance Computing Research.
Power Management. Outline Why manage power? Power management in CPU cores Power management system wide Ways for embedded programmers to be power conscious.
Overview Motivation (Kevin) Thermal issues (Kevin)
CS203 – Advanced Computer Architecture
Chapter Objectives In this chapter, you will learn:
Green cloud computing 2 Cs 595 Lecture 15.
Outline Every Joule is Previous: The Case for Revisiting Operating System Design for Energy Efficiency 19-Sep-18 Ubiquitous Computing.
CSE 591: Energy-Efficient Computing Lecture 9 SLEEP: processor
Practical and OS-Driven Power Management
2.C Memory GCSE Computing Langley Park School for Boys.
Outline - Energy Management
CSCI {4,6}900: Ubiquitous Computing
Presentation transcript:

CS 423 – Operating Systems Design Lecture 22 – Power Management Klara Nahrstedt and Raoul Rivas Spring 2013 CS Spring 2013

Overview Administrative announcements ◦ MP3 still going Summary ◦ ACPI ◦ CPU Management  DVS, Sleep States ◦ Wireless Management ◦ Hard-Drive Management ◦ Software Approaches

Importance of Power Management Mobile Devices are ubiquitous ◦ Laptops, iPads, Smartphones ◦ Battery is the limiting factor of these devices Power Management is driven by ◦ More functionality ◦ More processing ◦ Longer battery lifetime ◦ Smaller factor devices (weight and size) Battery capacity is improving at much slower rate CS Spring 2013

Mobile Computing Improvement CS Spring 2013

Approaches to Reduce Energy Consumption Turn off parts of the computer when are not in use (mostly IO devices such as display) ◦ Reduced responsiveness/performance ◦ Which hardware/software component takes most energy? Software Approaches ◦ Reduced responsiveness/performance CS Spring 2013

Idle Power Consumption Breakdown

ACPI Advanced Control Power Interface ◦ Open Standard for device configuration and power management ◦ By Intel, Microsoft, Toshiba – 1996 ◦ Interface between OS and Hardware Defines Power States ◦ Global System (G and S States) ◦ Device (D-State), Processor (C-State) Defines Performance States (P-States) ◦ Device, Processor CS Spring 2013

ACPI States CS Spring 2013 Suspend to RAM Suspend to Disk Device Power States Global States CPU Performance States CPU Power States

CPU Power States Used when CPU is idle for some time Power State Approaches ◦ Stop Core and Bus Clock ◦ Clear Caches ◦ Reduce Processor’s Voltage Deeper States incur higher transition latency ◦ Performance reduction ◦ Effective only when sleeping for long time Loss of Functionality ◦ Unable to handle interrupts ◦ Cold Cache after wake up CS Spring 2013

CPU Performance States Used when the CPU is not fully idle Implemented using Dynamic Voltage Scaling ◦ Reduce CPU’s Voltage and Frequency  AMD Cool’n Quiet, Intel SpeedStep ◦ Manufacturers try to minimize transition latency Performance is degraded ◦ Assumption is that CPU Bandwidth is larger than currently required ◦ OS implements Adaptive Schemes  Adjust based on short term statistical CPU utilization CS Spring 2013

CPU Power Consumption Dynamic Power: Power consumed by charging and discharging the capacitance at each gate ◦ A: % of gates switching each clock ◦ C: Total capacitance of all gates (Store Energy) ◦ V: Voltage ◦ f: Frequency Dynamic Power Short Circuit Power Leakage Power

CPU Power Consumption Short Circuit Power: Flow of energy between the supply voltage and ground while the CMOS gates switch ◦ A: % of gates switching each clock ◦ I short : Current ◦ t: Time ◦ V: Voltage ◦ f: Frequency Dynamic Power Short Circuit Power Leakage Power

CPU Power Consumption Leakage Power: Energy lost by powering the die ◦ I leak : Current ◦ V: Voltage Dynamic Power Short Circuit Power Leakage Power Dynamic Power is the dominating term in this equation Due to Hardware constraints if we reduce Voltage we must also reduce operating Frequency

Dynamic Voltage Scaling Example Power (W) vs. Core Voltage (V) for Intel Pentium-M 1.6 Ghz. Source: Intel Corp.

Hard-Drive Power Management Spin-down platters ◦ Higher Latency (Spin Up Time) ◦ Increased Wake-Up Energy Consumption  Friction, Inertia Slow-down platter rotation ◦ Green Hard Drives ◦ Lower Transfer Rate ◦ Higher Seek Time CS Spring 2013

Wireless Power Management Radio Listening is expensive Can we turn off the antenna to save power? ◦ Notify the Access Point ◦ Turn off client antenna ◦ AP buffers packets and periodically notify clients on who has packets ◦ Client Polls the Access Point for stored Packets CS Spring 2013

Software Aproaches Power Aware-Scheduling ◦ Linux Power-aware Scheduler  Do not distribute the load across cores.  Aggregate all tasks in one core so other cores can sleep ◦ GraceOS  Power-aware Real-time Scheduler  University of Illinois Research Project Imprecise Computing ◦ Reduce the precision of your computation so CPU sleeps more CS Spring 2013

Software Aproaches Group Timers ◦ Aggregate multiple timers into one  One interrupt for many timers  Longer sleep time Tickless Kernel ◦ Do not use periodic timer to measure time ◦ Update time when other event/interrupt occurs CS Spring 2013 Group Timer Standard Timer

Grace OS Power aware scheduler for Multimedia ◦ Minimize Power Consumption ◦ Trade-off between Quality and Power Realtime Scheduler ◦ Earliest Deadline First policy Dynamic Voltage Scaling ◦ Reduce CPU Speed as much as possible without missing any deadlines Online Application Profiler ◦ Adapt the CPU Reservation to the actual utilization of the application CS Spring 2013

Grace OS Architecture CS Spring 2013

Summary Power management is important ◦ Battery, Cooling Costs, Environment Power savings come at cost ◦ Reduced Performance ◦ Higher Latency Basic Principles ◦ Amdhal’s Law ◦ Power off idle systems ◦ Slow down underutilized systems