Self-Construc.ve High-Rate System Energy Modeling for - - PowerPoint PPT Presentation

self construc ve high rate system energy modeling for ba
SMART_READER_LITE
LIVE PREVIEW

Self-Construc.ve High-Rate System Energy Modeling for - - PowerPoint PPT Presentation

Self-Construc.ve High-Rate System Energy Modeling for Ba=ery-Powered Mobile Systems Mian Dong and Lin Zhong Rice University System Energy Model y ( t ) = f (


slide-1
SLIDE 1

Self-­‑Construc.ve ¡High-­‑Rate ¡System ¡Energy ¡Modeling ¡ for ¡Ba=ery-­‑Powered ¡Mobile ¡Systems ¡ Mian ¡Dong ¡and ¡Lin ¡Zhong ¡

¡

¡

Rice ¡University ¡

slide-2
SLIDE 2

System Energy Model

Response ¡y(t): ¡ ¡ Energy ¡consumed ¡ by ¡the ¡system ¡in ¡t

y(t) = f(x1(t), x2(t),…, xp(t))

Predictors ¡xi(t): ¡ ¡ System ¡status ¡ variables ¡in ¡t

slide-3
SLIDE 3

Rate (1/t)

0.01Hz ¡ 1Hz ¡ 100Hz ¡

slide-4
SLIDE 4

A High-Rate Energy Model

is ¡needed ¡to ¡provide ¡an ¡energy ¡reading ¡ at ¡each ¡OS ¡scheduling ¡interval ¡

10ms ¡

slide-5
SLIDE 5

Target System Data Acquisition Equipment Host PC

31,415,926

y(t1) ¡ x1(t1) x2(t1) … xp(t1) ¡ x1(t2) x2(t2) … xp(t2) ¡ x1(tn) x2(tn) … xp(tn) ¡ y(t2) ¡ y(tn) ¡ t=t1=t2=…=tn ¡

X(t) Y(t)

Regression

Model Construction

slide-6
SLIDE 6

Target System Data Acquisition Equipment Host PC

31,415,926

t=t1=t2=…=tn ¡

y(t) = β0+β1x1(t)+…+ βpxp(t) β = argminβ(║Y(t)−[1 X(t)]β║2) ^ ¡

Linear ¡Model: ¡

Model Construction

slide-7
SLIDE 7

Target System Data Acquisition Equipment Host PC

31,415,926

t=t1=t2=…=tn ¡

y(ti) − y(ti) err(ti) = y(ti) ¡ ^ ¡ ^ ¡ ^ ¡ ^ ¡ ^ ¡ y(t) = β0+β1x1(t)+…+ βpxp(t)

Linear ¡Model: ¡

Model Construction

Mean ¡Absolute ¡ ¡ Root-­‑Mean-­‑Square ¡

slide-8
SLIDE 8

What are the limitations?

slide-9
SLIDE 9

External Devices

for ¡energy ¡measurement ¡

¡

slide-10
SLIDE 10

Deep Knowledge

for ¡predictor ¡collec.on ¡

¡ www.nokia.com ¡

slide-11
SLIDE 11

Exclusive Model

for a specific platform

¡

slide-12
SLIDE 12

Fixed Model for ¡all ¡

instances ¡of ¡the ¡same ¡plaKorm ¡

slide-13
SLIDE 13

Hardware & Usage

suggest ¡“personalized” ¡models ¡ be ¡constructed ¡for ¡a ¡mobile ¡system ¡ ¡ Dependencies ¡of ¡ system ¡energy ¡models ¡on ¡

slide-14
SLIDE 14

Self-Constructive ¡

System ¡Energy ¡Modeling ¡

slide-15
SLIDE 15

External Devices Deep Knowledge Exclusive Model Fixed Model Battery Interface Statistical Learning

Personalized Model

slide-16
SLIDE 16

Battery

Interface

slide-17
SLIDE 17

State-­‑of-­‑the-­‑art ¡ba=ery ¡Interfaces ¡are ¡

Low-rate/Inaccurate

N85 ¡ T61 ¡ N900 ¡ Max ¡Rate ¡ 4Hz ¡ 0.5Hz ¡ 0.1Hz ¡ Accuracy ¡ 67% ¡ 82% ¡ 58% ¡

Accuracy ¡= ¡100% ¡– ¡Root_Mean_Square(Instant_Rela.ve_Error) ¡

slide-18
SLIDE 18

Errors ¡in ¡ba=ery ¡interface ¡readings ¡ are ¡Non-Gaussian

slide-19
SLIDE 19

High-­‑Rate/Accurate ¡ ¡ System ¡Energy ¡Model ¡ ¡ Low-­‑Rate/Inaccurate ¡ ¡ Ba=ery ¡Interface ¡ ¡

Statistical Learning

slide-20
SLIDE 20

0% ¡ 10% ¡ 20% ¡ 30% ¡ 40% ¡ 50% ¡ 0.01 ¡ 0.1 ¡ 1 ¡ 10 ¡

RMS ¡of ¡RelaCve ¡Error ¡ Rate ¡(Hz) ¡

N900 ¡ T61 ¡ N85 ¡

Averaged ¡ba=ery ¡interface ¡readings ¡

have ¡

Higher Accuracy

but ¡

Even Lower Rate

slide-21
SLIDE 21

y x

Time ¡

y(t) y(T) x(t) x(T)

Time ¡ High-­‑rate ¡data ¡points ¡ Low-­‑rate ¡data ¡points ¡

High-­‑rate ¡data ¡points ¡ Low-­‑rate ¡data ¡points ¡

Linear ¡models ¡are ¡

¡

Independent on Time

slide-22
SLIDE 22
  • 1. Model Molding

0.01Hz ¡ 1Hz ¡ 100Hz ¡ Y(tH) Y(tL) Y(tVL) X(tH) X(tVL) β ¡ ^ ¡ ^ ¡ β ¡ ^ ¡

slide-23
SLIDE 23

0% ¡ 10% ¡ 20% ¡ 30% ¡ 0.01 ¡ 0.1 ¡ 1 ¡ 10 ¡ 100 ¡

RMS ¡of ¡RelaCve ¡Error ¡ Rate ¡(Hz) ¡

Ba=ery ¡ ¡ Interface ¡

slide-24
SLIDE 24

0% ¡ 10% ¡ 20% ¡ 30% ¡ 0.01 ¡ 0.1 ¡ 1 ¡ 10 ¡ 100 ¡

RMS ¡of ¡RelaCve ¡Error ¡ Rate ¡(Hz) ¡

Model ¡Molding ¡improves ¡rate

Ba=ery ¡ ¡ Interface ¡ Molded ¡ Model ¡

slide-25
SLIDE 25
  • 2. Predictor Transformation

x1(t), x2(t),…, xp(t) z1(t), z2(t),…, zL(t)

Principle ¡ ¡ Component ¡ ¡ Analysis ¡

L L ≤ p p

slide-26
SLIDE 26

0% ¡ 10% ¡ 20% ¡ 30% ¡ 0.01 ¡ 0.1 ¡ 1 ¡ 10 ¡ 100 ¡

RMS ¡of ¡RelaCve ¡Error ¡ Rate ¡(Hz) ¡

PCA ¡improves ¡accuracy

Ba=ery ¡ ¡ Interface ¡ Molded ¡ Model ¡ Molded ¡ Model ¡+ ¡ PCA ¡

slide-27
SLIDE 27

x y yj rj y=f(x)

Training data points

dj xj Δxj

  • 3. Total-Least-Square
slide-28
SLIDE 28

0% ¡ 10% ¡ 20% ¡ 30% ¡ 0.01 ¡ 0.1 ¡ 1 ¡ 10 ¡ 100 ¡

RMS ¡of ¡RelaCve ¡Error ¡ Rate ¡(Hz) ¡

TLS ¡improves ¡accuracy ¡at ¡high ¡rate ¡

Ba=ery ¡ ¡ Interface ¡ Molded ¡ Model ¡ Molded ¡ Model ¡+ ¡ PCA ¡ Molded ¡ Model ¡+ ¡ PCA ¡+ ¡TLS ¡

slide-29
SLIDE 29

Data ¡Collector

Sesame

Model ¡Constructor

Predictor ¡ transformation

Model

Model ¡Manager Operating ¡ System Bat ¡I/F STATS

Energy ¡ ¡readings ¡ Stats ¡readings ¡ Predictors Responses

Model ¡molding

Application ¡ specific ¡ predictors

slide-30
SLIDE 30

Implementa.on ¡

N900 ¡ T61 ¡

slide-31
SLIDE 31

Sesame ¡is ¡able ¡to ¡ ¡generate ¡energy ¡ models ¡with ¡a ¡rate ¡up ¡to ¡100Hz T61 ¡ N900 ¡ 1Hz ¡ 95% ¡ 86% ¡ 100Hz ¡ 88% ¡ 82% ¡

Accuracy ¡= ¡100% ¡– ¡Root_Mean_Square(Instant_Rela.ve_Error) ¡

slide-32
SLIDE 32

Field ¡Study ¡

Day ¡1-­‑5: ¡ ¡ ¡Model ¡Construc.on ¡ Day ¡6: ¡ ¡ ¡ ¡Model ¡Evalua.on ¡

slide-33
SLIDE 33

Models ¡were ¡generated ¡within ¡15 ¡hours ¡

0% ¡ 10% ¡ 20% ¡ 30% ¡ 7 ¡ 9 ¡ 11 ¡ 13 ¡ 15 ¡

Error ¡ Time ¡(hour) ¡

User ¡1 ¡ User ¡2 ¡ User ¡3 ¡ User ¡4 ¡ 0% ¡ 10% ¡ 20% ¡ 30% ¡ 1 ¡ 2 ¡ 3 ¡ 4 ¡

Error ¡ Laptop ¡User ¡

Sesame@1Hz ¡ Sesame@100Hz ¡

slide-34
SLIDE 34

Sesame ¡is ¡close ¡to ¡State-­‑of-­‑the-­‑Art ¡

without any external assistance

0% ¡ 5% ¡ 10% ¡ 15% ¡ 0.01 ¡ 0.1 ¡ 1 ¡ 10 ¡ 100 ¡ 1000 ¡

Average ¡Absolute ¡RelaCve ¡ Error ¡ Rate ¡(Hz) ¡

Sesame ¡ PowerTutor ¡ PowerBooter ¡ FSM ¡ (Eurosys’11) ¡ (CODES+ISSS’10) ¡ (CODES+ISSS’10) ¡

slide-35
SLIDE 35

¡ ¡ ¡

  • 1. Sophisticated Statistical Methods
  • 2. Capability to Adapt Models

Sesame ¡is ¡able ¡to ¡construct ¡models ¡

  • f ¡high ¡accuracy ¡because ¡of ¡
slide-36
SLIDE 36

¡ ¡ ¡ Virtual Power Meter

Sesame ¡is ¡a ¡high-­‑rate/accurate ¡

slide-37
SLIDE 37

¡ ¡ ¡ Energy Optimization & Management

and ¡creates ¡new ¡opportuni.es ¡in ¡

slide-38
SLIDE 38

y(t) = β0+β1x1(t)+…+ βpxp(t)

Software Optimization

“Knob” ¡ provided ¡by ¡ ¡ target ¡soiware ¡

slide-39
SLIDE 39

y(t) = β0+β1x1(t)+…+ βpxp(t)

Energy Accounting

n Processes

slide-40
SLIDE 40

y(t) = β0+β1x1(t)+…+ βpxp(t)

Energy Accounting

x1(t) = x1,1(t)+…+ x1,n(t) xp(t) = xp,1(t)+…+ xp,n(t)

slide-41
SLIDE 41

yj(t) = β1x1,j(t)+…+ βpxp,j(t)

Energy Contribution by Process j

slide-42
SLIDE 42

¡ ¡ ¡

Servers and Workstations

Sesame ¡can ¡be ¡also ¡used ¡for ¡

slide-43
SLIDE 43

Conclusions ¡

  • Self-­‑Modeling ¡is ¡necessary ¡to ¡adapt ¡to ¡the ¡

changes ¡in ¡hardware ¡and ¡usage ¡

  • Sta.s.cal ¡methods ¡help ¡to ¡construct ¡high-­‑

rate ¡/accurate ¡models ¡from ¡low-­‑rate/ inaccurate ¡ba=ery ¡interfaces ¡

  • Sesame ¡creates ¡new ¡opportuni.es ¡in ¡system ¡

energy ¡op.miza.on ¡and ¡management ¡

slide-44
SLIDE 44
slide-45
SLIDE 45

Sesame ¡is ¡close ¡to ¡op.mal ¡

0% ¡ 5% ¡ 10% ¡ 15% ¡ 20% ¡ 0.01 ¡ 0.1 ¡ 1 ¡ 10 ¡ 100 ¡

RMS ¡of ¡RelaCve ¡Error ¡ Rate ¡(Hz) ¡

Bat ¡I/F ¡ Sesame ¡ External ¡

T61 ¡

slide-46
SLIDE 46

0 ¡ 1 ¡ 2 ¡ 3 ¡ 4 ¡ 5 ¡

T61 ¡(original) ¡ T61 ¡(pca) ¡ T61 ¡(pca+syscall) ¡ N900 ¡(original) ¡ N900 ¡(pca) ¡ N900(pca+syscall) ¡

Latency ¡(ms) ¡

response ¡collec.on ¡ predictor ¡collec.on ¡ model ¡calcula.on ¡

Why ¡user ¡experience ¡is ¡good? ¡

slide-47
SLIDE 47

15 ¡ 20 ¡ 25 ¡ 30 ¡ 35 ¡ 40 ¡ 0% ¡ 20% ¡ 40% ¡ 60% ¡ 80% ¡ 100% ¡

System ¡Power ¡(W) ¡ CPU ¡UClizaCon ¡

Player ¡ Developer ¡ Calibrater ¡

30%

¡

Models ¡built ¡with ¡different ¡apps ¡ es.mate ¡differently ¡by ¡

slide-48
SLIDE 48

Why ¡High ¡rate ¡is ¡hard? ¡

slide-49
SLIDE 49

What ¡is ¡the ¡limita.on ¡of ¡linearity ¡

  • USENIX ¡paper ¡
slide-50
SLIDE 50

Why ¡Sesame ¡is ¡be=er ¡for ¡laptop ¡than ¡ smartphone? ¡