power considerations in mobile devices

34
1 Power Considerations in Mobile Devices

Upload: tea

Post on 08-Jan-2016

38 views

Category:

Documents


0 download

DESCRIPTION

Power Considerations in Mobile Devices. Discussing two Papers. Every Joule is Precious: The Case for Revisiting Operating System Design for Energy Efficiency, Vahadat et al, 2000 Software Strategies for Portable Computer Energy Management, Lorch and Smith, 1998 - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Power Considerations in Mobile Devices

1

Power Considerations in Mobile Devices

Page 2: Power Considerations in Mobile Devices

2

Discussing two Papers

Every Joule is Precious: The Case for Revisiting Operating System Design for Energy Efficiency, Vahadat et al, 2000

Software Strategies for Portable Computer Energy Management, Lorch and Smith, 1998

Both these papers are high level “position” papers discussing approaches/opportunities for energy management

Page 3: Power Considerations in Mobile Devices

3

Battery power as a managed resource

Little change in basic technology store energy using a chemical reaction

Battery capacity doubles every 10 years Energy density/size, safe handling are limiting factor

Energy densityof material

KWH/kg

Gasoline 14

Lead-Acid 0.04

Li polymer 0.15

Other: Li Ion 0.16, NiCad 0.05, NiMH 0.07

Other factors: energy/size, energy/$, recharge cycles, operating conditions, recharge time...

Page 4: Power Considerations in Mobile Devices

4

Energy Management Opportunities

Energy consumed = time * power Application: Can reduce consumption by changing

the application demands and allowing lower modes to be used

OS: The OS can reduce energy consumption by reducing the time spent in high energy consumption states

HW: Hardware can reduce energy consumption by reducing the power consumed by high energy consumption states

Page 5: Power Considerations in Mobile Devices

5

Hardware advances

Lower power CPUs disable idle units in CPU to save power

• e.g. transmeta crusoe chip

• Architecture group at BU lower clock frequency to conserve battery

• e.g. intel speedstep Lower voltage levels

Displays active matrix LCD reflective displays (uses ambient light for lighting)

Memory RAMBUS RDRAM provides various power modes

Batteries not constant source of power pulsed mode is better

Page 6: Power Considerations in Mobile Devices

6

Example -- RDRAM

Page 7: Power Considerations in Mobile Devices

7

Discussion

Is it better if my computer consumes energy at a slower rate? Rate of consumption of energy, or total energy consumed?

Balance between power and responsiveness?

Page 8: Power Considerations in Mobile Devices

8

Categories of Energy Related Software Problems (Lorch)

“Hardware features not enough – need software that takes advantage of them”

Transition: when should a component switch between modes?

Load-change: how can a component’s functionality be modified so it can be put in low-power modes more often

Adaptation: how can software permit novel, power-saving uses of components

For each component, how do we come up with such policies?

Who controls? End-to-end principle?

Page 9: Power Considerations in Mobile Devices

9

Power consumptions for various Mobile computers (Lorch)

Page 10: Power Considerations in Mobile Devices

10

Disk Characteristics

Five power modes 1. Active: seek, read, write on

2. Idle: no seek, read or write, but motor spinning platter

3. Standby: only controller is on

4. Sleep: interface is off, cache off, but can detect reset signal/new requests

5. Off

Page 11: Power Considerations in Mobile Devices

11

Battery power - disk

Problem: disk spinup,seek/flash memory erase costs

(power values

for IBM travelstar)

Predictive spin-ups Caching/prefetching

Operation EnergyConsumption

Spinup 4.7 W

Read/write 2 WIdle 0.65 W

Seek 1.8 WSleep 0.1 WStandby 0.25 W

Page 12: Power Considerations in Mobile Devices

12

Other Disks

Page 13: Power Considerations in Mobile Devices

13

Policies for Disks

Transition strategies: mostly, when to go to sleep, standby or off modes Sleep mode most common strategies

• Less power than standby

• Standby relatively new

• Transition cost is similar (spin-up dominates)

Fixed inactivity threshold 1—10 seconds works well But user delay increased (8—30 sec per hour) Stop – start behavior shortens disk lifetime

Dynamic threshold and Access prediction have also been tried

Page 14: Power Considerations in Mobile Devices

14

Load change disk policies

Can we change the disk’s workload?1.Increase disk memory cache

Up to 50% savings in power by increasing cache size (if the cache size was small)

2.Increase dirty block timeout value Also 50% gain going from 0 to 30s

3.Prefetching (in conjunction with spin down?) Similar to hoarding/disconnected operation in CODA

4.Reducing paging activity

Page 15: Power Considerations in Mobile Devices

15

Adaptation Strategies

Several discussed, for example: Use wireless network as a disk

• Disk can be on plugged in server that is fast and power hungry

• Client gets data over the network instead of paying for the disk cost

• Remember broadcast disks?

What do you think of this idea?

Discussion

Page 16: Power Considerations in Mobile Devices

16

Also, Flash RAM is used

Non-volatile memory that does not consume energy while storage

Energy consumed when reading/writing 0.15—0.47 Watt; much better than disk

Speed of reading 85ns (close to DRAM), but for writing it is 4-10 micro second per bytes (much slower than disk)

Cannot erase a byte: full segment at a time -- expensive (time, power). Also, can only erase a limited number of times before it breaks

Cost is high

Page 17: Power Considerations in Mobile Devices

17

Processor

Power = C V2f (C=capacitance, V=voltage, f=frequency)

Lower power can be obtained by: Reducing V or f (but there are limitations) Turning off portions that are not in use Resizing some portions (e.g., register file) Using less power hungry architectures Turn the CPU off…

Transition strategies: when to turn CPU off? When to change speed/voltage? When to resize components?

Page 18: Power Considerations in Mobile Devices

18

Load change approaches

Can we change the load demands of processes on the CPU? Reducing times taken by tasks Using low power instructions Reducing the number of tasks

Energy aware OS and compiler

Eliminating “busy waiting” to enable more transitioning to standby state

Page 19: Power Considerations in Mobile Devices

19

Battery power - memory

power aware memory hierarchy - e.g. Rambus

(power values for

128 Mb PC800

RDRAM)

each chip can be put into different power modes Initial page placement, power transition, page migration

Operation EnergyConsumption

Burst READ 567 mABurst WRITE 575 mAAttention 148 mAStandby 101 mA

NAP 4.2 mASelf refresh (lowpower)

0.7 mA

Page 20: Power Considerations in Mobile Devices

20

Battery power - network

Transmit, listen, idle costs

(power values for

Lucent wavelan

2 Mbps)

Power consumed when device is active Receiver does not know when sender has data to be

sent - continuous wait is expensive Transmission power often constant

Operation EnergyConsumption

Transmit 330 mAReceive 280 mADoze 9 mA

Page 21: Power Considerations in Mobile Devices

21

Display and Backlight

Major consumers of power, but.. Few energy saving features:

1. Reduce backlight intensity

2. Turn display off

3. Reduce refresh rate (reduces colors…)

Can think of transition strategies along these lines

What about load change strategies?

Page 22: Power Considerations in Mobile Devices

22

Discussion

Common theme: need external control of mode transitions

Agree with Vahadat about importance of OS support for power as a first class commodity

Page 23: Power Considerations in Mobile Devices

23

Battery power – application level

Application aware adaptation to manage high power energy states Managing the power states in a palm

Managing battery in a digital camera using image transcoding

Application level adaptation to manage energy

Client/server computation split

Page 24: Power Considerations in Mobile Devices

24

Hypothesis: OS should manage power

Typical Operating Systems are designed to hide latency (caching), fairly share resources (CPU, memory, network, etc.)

What about power? If two processes are runnable and one is expected to consume more power, which do you run?

Do you run cleanup daemon when the battery power is low?

Page 25: Power Considerations in Mobile Devices

25

OS Support

Page 26: Power Considerations in Mobile Devices

26

Discussion

Page 27: Power Considerations in Mobile Devices

27

Third paper

Quantifying the Energy Consumption of a Pocket Computer and a Java Virtual Machine Keith Farkas (DEC WRL), Jason Flinn (CMU), Godmar Back

(Univ. of Utah), Dirk Grunwald (Univ of Colo. Boulder), Jennifer Anderson (Vmware)

Energy consumed (Joules) = time * power consumed (Watts)

Page 28: Power Considerations in Mobile Devices

28

Goals

1. Energy usage characteristics of the Itsy• Itsy is a prototype PDA built at DEC (Compaq) SRC

• 200 MHz StrongARM SA-1100 microprocessor

• 320x200, 0.18mm, 15 level gray scale display

• Touchscreen, microphone, speaker, serial and irda

• 64MB RAM, 32MB flash

• 2 AAA battery

• Precursor to the iPAQ

Page 29: Power Considerations in Mobile Devices

29

Itsy

Page 30: Power Considerations in Mobile Devices

30

Itsy battery power tricks

Can change the CPU clock to 206 MHz, 133 MHz and 59 MHz)

It can scale the voltage to 1.5V and 1.23V

30 minutes in high power mode 2 hours in high power “Idle” mode 18 hours in low power (59 MHz) Idle mode

Page 31: Power Considerations in Mobile Devices

31

Comparison between Itsy and laptop

Compared Thinkpad (233 Mhz, 64 MB) and Itsy Laptops consume a lot more overall power Itsy allows more power states

• Certain subsystems have lot higher relative power costs (because other systems consume less power)

– E.g. on a laptop

» 68% - display, 20% - disk, 12% CPU and memory

• Itsy consumes less for display, but adding a backlight has a much higher relative cost

• Memory subsystem has impact on Itsy

Page 32: Power Considerations in Mobile Devices

32

JVM

Java Virtual machine

Interesting to look at Java on a PDA because it is simpler to expect apps to be downloaded to the PDA than expect them to be installed all the time

Looked at the power characteristics of: Single JVM vs multiple JVM Compressed vs Uncompressed class files Class loading vs JIT compilation Cache flushing after code generation

Page 33: Power Considerations in Mobile Devices

33

Results

Single JVM less power than multiple JVM Reliability issues

Compressed vs uncompressed class files: not much difference

Class loading vs JIT Compilation Preloading works, but have to be careful on what to preload

Cache flushing after code generation Little impact; only 16 KB I and 8KB D cache

Interpreting and JIT JIT has dramatic gain; maybe because of KAFFE for JVM

AWT polling frequency – slight difference

Page 34: Power Considerations in Mobile Devices

34

Discussion

Power consumption has to be investigated closely for each underlying architecture

There are few “generic” tricks for every hardware

What is the view point of the three different papers? How are they related to each other?