Taking Non Functional Properties into account while studying - - PowerPoint PPT Presentation

taking non functional properties into account while
SMART_READER_LITE
LIVE PREVIEW

Taking Non Functional Properties into account while studying - - PowerPoint PPT Presentation

NFP Panorama Case Studies Requirements WIP Taking Non Functional Properties into account while studying embedded systems. Karine Altisen and Matthieu Moy Verimag June 11, 2008 Karine Altisen and Matthieu Moy (Verimag) Non-functional


slide-1
SLIDE 1

NFP Panorama Case Studies Requirements WIP

Taking Non Functional Properties into account while studying embedded systems.

Karine Altisen and Matthieu Moy

Verimag

June 11, 2008

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 1 / 33 >

slide-2
SLIDE 2

NFP Panorama Case Studies Requirements WIP

Outline

1

Problem : Non-Functional Properties

2

Panorama of Existing Methods

3

Case Studies

4

Requirements for Non-Functional Property Analysis

5

Work In Progress

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 2 / 33 >

slide-3
SLIDE 3

NFP Panorama Case Studies Requirements WIP

Non Functional Properties

Physical quantities

◮ ex: energy consumption, temperature, time, ...

Functional Vs Non functional

◮ simply observe the value (time, energy, ...) → non functional ◮ some functionalities depend on this value (QoS) → functional

We focus on simple observation.

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 3 / 33 >

slide-4
SLIDE 4

NFP Panorama Case Studies Requirements WIP

Relationships Between Non-Functional Properties

Time Vs Energy

◮ Time is needed to measure energy (integration of power over

time)

◮ Power-aware systems need the same information for time and

energy (energy saving state, DVS ...)

Energy Vs Temperature

◮ The more the chip consumes, the hotest it is, but ... ◮ ... the hotest the chip is, the more it consumes. Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 4 / 33 >

slide-5
SLIDE 5

NFP Panorama Case Studies Requirements WIP

Outline

1

Problem : Non-Functional Properties

2

Panorama of Existing Methods

3

Case Studies

4

Requirements for Non-Functional Property Analysis

5

Work In Progress

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 5 / 33 >

slide-6
SLIDE 6

NFP Panorama Case Studies Requirements WIP

Panorama

model method Abstract interpretation... Analytic solution Full-simulation Formal methods not applicable Results on some traces Model-checking, Detailled description Include the whole functionality State-based models Level of abstraction? Faithfulness? Exact solution for all executions Faithfulness of the model? Scheduling analysis RTC Stateless models (worst case, best case) Exhaustive solution State explosion problem

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 6 / 33 >

slide-7
SLIDE 7

NFP Panorama Case Studies Requirements WIP

Panorama

Intermediate models, mixed analytic and state-based models

◮ RTC+Timed automata ◮ Probabilistic models, e.g. ⋆ PEPA — Performance Evaluation for Process Algebra,

University of Edinburgh

⋆ Stochastic Automata Network — performance evaluation for

parallel system, Grenoble

◮ UPPAAL, Uppsala & Aalborg universities ◮ etc Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 7 / 33 >

slide-8
SLIDE 8

NFP Panorama Case Studies Requirements WIP

Outline

1

Problem : Non-Functional Properties

2

Panorama of Existing Methods

3

Case Studies

4

Requirements for Non-Functional Property Analysis

5

Work In Progress

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 8 / 33 >

slide-9
SLIDE 9

NFP Panorama Case Studies Requirements WIP

Sensor Networks and Energy Consumption

Detailed simulation of the whole network with energy estimation: GLONEMO. Based on power-state modeling:

◮ Simulates the complete behavior ◮ The behavior drives a state machine giving the energy

consumption.

See Florence’s talk...

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 9 / 33 >

slide-10
SLIDE 10

NFP Panorama Case Studies Requirements WIP

Energy Consumption in SOC

A schematic power-aware system on a chip:

HW encoder Processor clock−gating data−retention DVS ... Non−functional part Power−manager Temp. Sensor OS Hardware Application Functional part

QoS loop Energy Temperature Time executes on energy saving (from user)

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 10 / 33 >

slide-11
SLIDE 11

NFP Panorama Case Studies Requirements WIP

Partnership with Docea-Power

Local start-up (one end-of-study project in common with them), Estimation of energy consumption Take ENERGY ↔ TEMPERATURE into account.

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 11 / 33 >

slide-12
SLIDE 12

NFP Panorama Case Studies Requirements WIP

Docea-Power’s Tool for Energy and Temperature Estimation

Model =

◮ a state-based model of power consumption mastered by the

power manager

◮ a temperature model based on the layout of the chip and

differential equations

Estimation of energy consumption =

◮ based on “scenarios” (obtained from functional simulation) ◮ for one scenario, give the evolution of temperature and energy

consumption

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 12 / 33 >

slide-13
SLIDE 13

NFP Panorama Case Studies Requirements WIP

Docea-Power Model

Processor DVS HW encoder clock−gating data−retention ... P=f(T) Energy Temperature model T=f(P, ...) Temperature Temp. Sensor Functionality (not modeled) a scenario =a trace of stimuli stimuli stimuli

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 13 / 33 >

slide-14
SLIDE 14

NFP Panorama Case Studies Requirements WIP

Temperature Model

Based on actual layout on the chip, Models heat transfer between pieces of the chip and heat dissipation Uses differential equations ... we can’t help much!

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 14 / 33 >

slide-15
SLIDE 15

NFP Panorama Case Studies Requirements WIP

Functionality

Functional simulation can be done independently, and provides scenarios for the tool, Can be RTL simulation or more abstract (TLM),

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 15 / 33 >

slide-16
SLIDE 16

NFP Panorama Case Studies Requirements WIP

Power model

Each component has “power states” Notion of transition not described at this level, given by:

◮ some inputs for the model that are directly power directive ◮ decisions taken by the power-manager

Power-manager does not appear explicitly:

◮ in the actual system, can be HW and/or SW, ◮ it implicitly drives HW about power decision ◮ by saying which combination of the components power states

are possible

◮ → hand-made product of automata with constraints Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 16 / 33 >

slide-17
SLIDE 17

NFP Panorama Case Studies Requirements WIP

Outline

1

Problem : Non-Functional Properties

2

Panorama of Existing Methods

3

Case Studies

4

Requirements for Non-Functional Property Analysis

5

Work In Progress

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 17 / 33 >

slide-18
SLIDE 18

NFP Panorama Case Studies Requirements WIP

State-Based Behavior is Needed

Real-life systems have states :

◮ Power-manager, systems with energy-saving states ◮ Components have distinct power consumptions depending on

activity (processor, radio of sensor node, ...)

Abstracting states

◮ would lead to very pessimistic worst case ◮ would mean not considering power-saving states! Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 18 / 33 >

slide-19
SLIDE 19

NFP Panorama Case Studies Requirements WIP

Solution that Scales Up is Required

Simulation: GLONEMO can simulate “in real time” for 1000 nodes Docea simulates reasonably slower than real-time (1/15) Model based approach: (model-checking, abstract interpretation...) State explosion problem Analytic solutions: seems to scale up more easily!

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 19 / 33 >

slide-20
SLIDE 20

NFP Panorama Case Studies Requirements WIP

Component-based Solution is Better

Systems are usually described with components e.g. decomposition into functional parts (HW, SW) can be an answer to scale up:

◮ in terms of description (code reusability) ◮ in terms of reasoning (computing the solution) Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 20 / 33 >

slide-21
SLIDE 21

NFP Panorama Case Studies Requirements WIP

Outline

1

Problem : Non-Functional Properties

2

Panorama of Existing Methods

3

Case Studies

4

Requirements for Non-Functional Property Analysis

5

Work In Progress

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 21 / 33 >

slide-22
SLIDE 22

NFP Panorama Case Studies Requirements WIP

Work In Progress

Work with Yanhong Liu A step in your direction?

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 22 / 33 >

slide-23
SLIDE 23

NFP Panorama Case Studies Requirements WIP

Work with Yanhong Liu

Models the energy in a sensor node Using probabilistic models Attempts to model the MAC radio protocol using PEPA

Performance Evaluation for Process Algebra, University of Edinburgh

Experiments of probabilistic model-checking with PRISM (University of Oxford)

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 23 / 33 >

slide-24
SLIDE 24

NFP Panorama Case Studies Requirements WIP

Work with Yanhong Liu

Using UPPAAL models Models as timed automata:

◮ processing elements ◮ linked by FIFO queues (with explicit states) ◮ + a power manager

As it is, doesn’t scale up changing data-granularity may help, but then connecting components is harder.

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 24 / 33 >

slide-25
SLIDE 25

NFP Panorama Case Studies Requirements WIP

A step in your direction?

A Small Multimedia Example

bus

HW1 HW2 SW1 SW2

CPU+DVS HW RAM

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 25 / 33 >

slide-26
SLIDE 26

NFP Panorama Case Studies Requirements WIP

A step in your direction?

A Small Multimedia Example

bus

HW1 HW2 SW1 SW2

CPU+DVS HW RAM

SW1 SW2

inputs

  • uputs

HW1 HW2 CPU+DVS bus + RAM

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 25 / 33 >

slide-27
SLIDE 27

NFP Panorama Case Studies Requirements WIP

A Small Multimedia Example

Scenario description: inputs (images to decode) — Proc with DVS: SW1 — bus+RAM — HW1 –pipeline– HW1 — bus+RAM — Proc: SW2 — outputs + Power Manager:

◮ for each element (SW, HW): several levels of power

consumption (implies different execution times)

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 26 / 33 >

slide-28
SLIDE 28

NFP Panorama Case Studies Requirements WIP

A Small Multimedia Example

Scenario description: inputs (images to decode) — Proc with DVS: SW1 — bus+RAM — HW1 –pipeline– HW1 — bus+RAM — Proc: SW2 — outputs + Power Manager:

◮ for each element (SW, HW): several levels of power

consumption (implies different execution times)

Can MPA-RTC help? meeting our requirements:

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 26 / 33 >

slide-29
SLIDE 29

NFP Panorama Case Studies Requirements WIP

A Small Multimedia Example

Scenario description: inputs (images to decode) — Proc with DVS: SW1 — bus+RAM — HW1 –pipeline– HW1 — bus+RAM — Proc: SW2 — outputs + Power Manager:

◮ for each element (SW, HW): several levels of power

consumption (implies different execution times)

Can MPA-RTC help? meeting our requirements:

1

it scales up,

2

it seems to fit our notion of component-based model,

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 26 / 33 >

slide-30
SLIDE 30

NFP Panorama Case Studies Requirements WIP

A Small Multimedia Example

Scenario description: inputs (images to decode) — Proc with DVS: SW1 — bus+RAM — HW1 –pipeline– HW1 — bus+RAM — Proc: SW2 — outputs + Power Manager:

◮ for each element (SW, HW): several levels of power

consumption (implies different execution times)

Can MPA-RTC help? meeting our requirements:

1

it scales up,

2

it seems to fit our notion of component-based model,

3

what is the problem exactly? How to model energy?

4

state-based model?

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 26 / 33 >

slide-31
SLIDE 31

NFP Panorama Case Studies Requirements WIP

A component-based model

An attempt with MPA-RTC, but no energy, no states

CPU+DVS β β1 = cst β2 = cst α α′

bus

SW1 SW2

inputs

  • uputs

HW1 HW2 β processor resource (fixed priority sched.)

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 27 / 33 >

slide-32
SLIDE 32

NFP Panorama Case Studies Requirements WIP

Modeling energy?

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 28 / 33 >

slide-33
SLIDE 33

NFP Panorama Case Studies Requirements WIP

Modeling energy?

CPU+DVS β β1 = cst β2 = cst α α′

bus

SW1 SW2

inputs

  • uputs

HW1 HW2 β processor resource (fixed priority sched.)

+

energy consumed

Problem (e.g.) = what are the upper and lower bound on power consumption within a given time interval ∆?

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 28 / 33 >

slide-34
SLIDE 34

NFP Panorama Case Studies Requirements WIP

Modeling energy?

CPU+DVS β β1 = cst β2 = cst α α′

bus

SW1 SW2

inputs

  • uputs

HW1 HW2 β processor resource (fixed priority sched.)

+

energy consumed

Problem (e.g.) = what are the upper and lower bound on power consumption within a given time interval ∆? Problem (e.g.) = what about the average?

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 28 / 33 >

slide-35
SLIDE 35

NFP Panorama Case Studies Requirements WIP

What about states?

The HW component case:

HW αHW α′

HW

β β′

available resource depends on state moving from a state to another depends on the PM: it is an input of the component

slide-36
SLIDE 36

NFP Panorama Case Studies Requirements WIP

What about states?

The HW component case:

e1 e2 e3

HW αHW α′

HW

β β′

available resource depends on state moving from a state to another depends on the PM: it is an input of the component

slide-37
SLIDE 37

NFP Panorama Case Studies Requirements WIP

What about states?

The HW component case:

β3 β1 β2

e1 e2 e3

HW αHW α′

HW

β β′

available resource depends on state moving from a state to another depends on the PM: it is an input of the component

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 29 / 33 >

slide-38
SLIDE 38

NFP Panorama Case Studies Requirements WIP

Can Event-based Workload Variability help?

This is an open question!

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 30 / 33 >

slide-39
SLIDE 39

NFP Panorama Case Studies Requirements WIP

Can Event-based Workload Variability help?

This is an open question! Event-based workload variability = typed events instead of having an arrival curve for one kind of event the workload variability automaton a model for the resource demand of each typed of events the event sequence automata a model of the environment that sends the inputs

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 30 / 33 >

slide-40
SLIDE 40

NFP Panorama Case Studies Requirements WIP

Can Event-based Workload Variability help?

This is an open question!

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 31 / 33 >

slide-41
SLIDE 41

NFP Panorama Case Studies Requirements WIP

Can Event-based Workload Variability help?

This is an open question!

i1 i2 i3 HW

Inputs are typed, depending on power states:

  • ne type per power state

− → their resource demand is computed depending on the state

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 31 / 33 >

slide-42
SLIDE 42

NFP Panorama Case Studies Requirements WIP

Can Event-based Workload Variability help?

i1 i2 i3 HW i2[...] i2[...] i3[...] i3[...] i1[...] i1[...]

e1 e2 e3

Inputs are typed, depending on power states.

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 32 / 33 >

slide-43
SLIDE 43

NFP Panorama Case Studies Requirements WIP

Can Event-based Workload Variability help?

i1 i2 i3 HW i2[...] i2[...] i3[...] i3[...] i1[...] i1[...]

e1 e2 e3

Inputs are typed, depending on power states. Need for a model of the resource demand of the inputs: (the workload variability automaton) − → the states of the HW component + transition from the power manager: express the resource demand of each input, depending on their type (ie their state consumption)

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 32 / 33 >

slide-44
SLIDE 44

NFP Panorama Case Studies Requirements WIP

Can Event-based Workload Variability help?

i1 i2 i3 HW i2[...] i2[...] i3[...] i3[...] i1[...] i1[...]

e1 e2 e3

Inputs are typed, depending on power states. Need for a model of the arrivals.

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 33 / 33 >

slide-45
SLIDE 45

NFP Panorama Case Studies Requirements WIP

Can Event-based Workload Variability help?

i1 i2 i3 HW i2[...] i2[...] i3[...] i3[...] i1[...] i1[...]

e1 e2 e3

Inputs are typed, depending on power states. Need for a model of the arrivals. Need for a model of the environment: (the event sequence automata) how the inputs are sent? (express by a regexp)

Karine Altisen and Matthieu Moy (Verimag) Non-functional properties June 11, 2008 < 33 / 33 >