Power Management. Outline Why manage power? Power management in CPU cores Power management system wide Ways for embedded programmers to be power conscious.

Slides:



Advertisements
Similar presentations
Homework Reading Machine Projects Labs
Advertisements

Chapter 9 Contributed by Alex Turek
Power management for Laptops. Batteries & power management Nickel Cadmium (Ni-Cd) Nickel-Metal Hydride (Ni-MH) Lithium-Ion (Li-Ion)
1 of 2 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
1 of 3 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 9: Troubleshooting Power Management and I/O Devices.
Power-aware Computing n Dramatic increases in computer power consumption: » Some processors now draw more than 100 watts » Memory power consumption is.
ATMEL AVR 8 bit RISC MICROCONTROLLERS
3-1 System peripherals & Bus Structure Memory map of the LPC2300 device is one contiguous 32-bit address range. However, the device itself is made up of.
CS 423 – Operating Systems Design Lecture 22 – Power Management Klara Nahrstedt and Raoul Rivas Spring 2013 CS Spring 2013.
2/6: CPUs & Memory CPUs –Parts of a sample CPU –Types of CPUs available ROM RAM –different kinds & uses inc. VRAM, SRAM image courtesy of How Computers.
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 Clock Generator.
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.
Last Time Performance Analysis It’s all relative
Reducing Refresh Power in Mobile Devices with Morphable ECC
Copyright © 2007 Heathkit Company, Inc. All Rights Reserved PC Fundamentals Presentation 27 – A Brief History of the Microprocessor.
The Central Processing Unit
Battery Saving States Sleep or standby Display and hard disk turn off All programs and data are still in RAM Power needed to support RAM Take a little.
Chapter 14 - Configuring Shutdown and Power Management Options.
Lev Finkelstein ISCA/Thermal Workshop 6/ Overview 1.Motivation (Kevin) 2.Thermal issues (Kevin) 3.Power modeling (David) 4.Thermal management (David)
Lecture on Central Process Unit (CPU)
Palm OS CS 450 Section 3 Jason Kelske Matthew Jennings Stephen Jou Allan Topp Graham Kerster.
Module 12: Configuring Windows XP Professional for Mobile Computing.
Evaluation of Advanced Power Management for ClassCloud based on DRBL Rider Grid Technology Division National Center for High-Performance Computing Research.
Chapter 2 content Basic organization of computer What is motherboard
Computer System Structures Storage
Unit 2 Technology Systems
Overview Motivation (Kevin) Thermal issues (Kevin)
AT91 Power Management This training module describes the Power Management options provided by the AT91 family of microcontrollers. These options address.
Popular Microcontrollers and their Selection by Lachit Dutta
Computer Components ICS 3U0.
Introduction Why low power?
Computer Organization and Machine Language Programming CPTG 245
Power Management in Embedded Systems
Computing Computer.
Government Engg College Bhuj E. C. Engg. Department
ATMEL AVR 8 bit RISC MICROCONTROLLERS
Chapter Objectives In this chapter, you will learn:
Operating System Review
Microprocessor VIVA/Interview Questions And Answers
Chapter 8: Main Memory.
Microcontrollers & GPIO
Computer Hardware – System Unit
Power Management and Sleep Modes
Refer to Chapter 5 in the reference book
Power Management and Sleep Modes
Introduction to Microcontrollers and the Board of Education
Introduction of microprocessor
Introduction to Microprocessors
Introduction to Computers
NT1110 Computer Structure and Logic
Subject Name: Microcontroller Subject Code: 10ES42
Operating System Review
Mobile and Desktop Memory Management
Getting the Most Out of Low Power MCUs
Chapter 8: Memory management
Outline Module 1 and 2 dealt with processes, scheduling and synchronization Next two modules will deal with memory and storage Processes require data to.
Today’s agenda Hardware architecture and runtime system
Overheads for Computers as Components 2nd ed.
8051 Micro Controller.
CSE 451: Operating Systems Autumn 2003 Lecture 2 Architectural Support for Operating Systems Hank Levy 596 Allen Center 1.
Interrupt handling Explain how interrupts are used to obtain processor time and how processing of interrupted jobs may later be resumed, (typical.
Introduction To Computing BBA & MBA
Time Sources and Timing
Wireless Embedded Systems
Lecture 3: Main Memory.
Introduction to Computing
CSE 451: Operating Systems Winter 2003 Lecture 2 Architectural Support for Operating Systems Hank Levy 412 Sieg Hall 1.
COMP3221: Microprocessors and Embedded Systems
Embedded System Development Lecture 12 4/4/2007
Presentation transcript:

Power Management

Outline Why manage power? Power management in CPU cores Power management system wide Ways for embedded programmers to be power conscious

Why power management? Desktops: Lower power bill, lower heat, lower fan noise Laptops, mobile systems: Above + battery life!

Power management tradeoffs Usually, power consumption is proportional to performance Low powerHigh power High performanceLow performance

Main power mgmt goals Lower I, V If you ’ re not using something, turn it off Try to meet deadlines exactly instead of being too fast

Core power I Inside the core, we are basically charging and discharging capacitances C + V core - Q = charge, C = Capacitance, V core = Voltage

Core power II Let

Voltage and frequency scaling I Intel Speedstep AMD PowerNow! Scale voltage and frequency dynamically based on need

Voltage and frequency scaling II Voltage and frequency settings for Intel Pentium M processor

Why scale V & f together? Oscillators are not stable at all voltages for a given frequency Increasing f Increasing Vcc Operation OK

Processor power modes Many CPUs/systems have several modes of operation Active, Power-save, Idle, Halt Latency vs. power tradeoff Active Power-save Idle Halt Overhead Power, Performance Latency

Active mode Processor executes instructions normally Entire CPU core active

Power-save Clock circuitry may be disconnected from unused CPU subsystems CPU not executing instructions Can usually return to active mode very quickly (several times per ms)

Idle CPU still not executing instructions Context may be stored in system memory, CPU registers and cache disabled Must restore context before resuming execution

Sleep Entire system context stored to nonvolatile memory upon entering sleep Power to main memory disabled Latency very high

PIC 16F877A SLEEP mode By executing the SLEEP instruction, the PIC goes into power down mode and draws very little current (μA vs. mA) Will wake via WDT or external interrupt

Palm OS Run, doze, sleep Never really turned off Run – Executing instructions, returns to doze when finished Doze – Main clock running, LCD on, CPU not executing instructions Sleep – Main clock off, LCD off, only user generated interrupt will wake system

Windows XP Active – computer running normally Standby – Just enough power to keep contents of RAM, CPU off Hibernate – Makes image of RAM contents on hard disk Alter policies through Control Panel -> Power Options on Windows XP

Embedded power mgmt I Use low power modes whenever you can int main(void){ while(1){ … do_stuff(); delay_ms(DELAY); … } int main(void){ while(1){ … do_stuff(); power_save(); … }

Embedded power mgmt I Idle system instead of using delays Instead of polling lines, configure system to wake up from idle upon an interrupt from that line If unable to use pin as interrupt, still idle and wake periodically to check status of pin

Embedded power mgmt II Shut down peripherals when possible int main(void){ … if (userinput==FALSE) set_lcd(LCD_BACKLIGHT_OFF); //Turn backlight off if (userpresent==FALSE) set_lcd(LCD_OFF); //Turn LCD completely off … }

Embedded power mgmt III Don ’ t allow CMOS inputs to float! GOOD Very small current BAD Not so small current

Summary Buy the right core for the job Go to low power processor states whenever possible Power peripherals only when necessary

References “ Dynamic Power Management for Embedded Systems, ” IBM and Montavista, November 2002 “ Embedded Power Management, ” “ Palm OS Power Management, ” “ AMD PowerNow! Technology, ” AMD, November 2000 “ Low Power Microcontrollers, ” NEC, April 2004 “ Microarchitecture and Performance, ” Intel, e.htm “ Inside DSP on low power, ” June 2004, “ Power Management Discussion Document, ” 3G Lab, February 2001 “ Enhanced Intel SpeedStep Technology for the Intel Pentium M Processor, ” Intel, March 2004 “ Bios and Kernel Dev. Guide for AMD Athlon 64 and AMD Opteron Processors, ” AMD, April 2004