of Deadline Misses Authors: Paolo Pazzaglia , Luigi Pannocchi, - - PowerPoint PPT Presentation

of deadline misses
SMART_READER_LITE
LIVE PREVIEW

of Deadline Misses Authors: Paolo Pazzaglia , Luigi Pannocchi, - - PowerPoint PPT Presentation

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses Authors: Paolo Pazzaglia , Luigi Pannocchi, Alessandro Biondi, Marco Di Natale Scuola Superiore Sant Anna, Pisa paolo.pazzaglia@santannapisa.it Barcelona,


slide-1
SLIDE 1

Beyond the Weakly Hard Model: Measuring the Performance Cost

  • f Deadline Misses

Authors: Paolo Pazzaglia, Luigi Pannocchi, Alessandro Biondi, Marco Di Natale

Scuola Superiore Sant’Anna, Pisa

paolo.pazzaglia@santannapisa.it

Barcelona, ECRTS, July 6th, 2018

slide-2
SLIDE 2

Introduction

2

  • P. Pazzaglia
  • Embedded systems with control tasks may face overload

conditions (e.g. automotive)

  • Common (practical) approach: running at a high rate and

allowing some deadline miss is an acceptable compromise How to study performance evolution under overload conditions?

  • Weakly Hard real-time systems: allowing a limited number of

deadline misses – (m,k): at most m deadlines are missed every k activations

  • (m,k) constraints can be extracted with TWCA

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

slide-3
SLIDE 3

3

  • (m,k) constraint is not enough descriptive…
  • (m,k) constraint leads to a binary model (either pass or fail)

– Easy to define stability guarantees – No information about performance of different patterns – Difficult to extract an ordering between constraints

  • No relation with the system state:

– Deadline misses may have different effects (transients vs steady state)

  • P. Pazzaglia

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

Weakly hard model limitations

slide-4
SLIDE 4

Weakly hard model limitations

4

  • P. Pazzaglia

Assumption: When a deadline is missed, the control output is not updated 𝑈 = 50 𝑛𝑡; 𝐸 = 0.7 ∗ 𝑈

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

Changing the pattern of H/M deadlines may lead to different performance values!

slide-5
SLIDE 5

5

  • Goal: Developing a new model for studying:

– How the performance change with different patterns of missed deadlines that satisfy a given (m,k) constraint – Worst guaranteed performance – Different policy at deadline miss (continue or kill?)

  • Merging real-time analysis with control system dynamics and

performance analysis

  • P. Pazzaglia

A new model for performance analysis

H/M pattern Control updates Performance

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

slide-6
SLIDE 6

6

  • Linear Time Invariant plant, MIMO
  • Periodic control of period 𝑈𝑗 and deadline 𝐸𝑗 ≤ 𝑈𝑗
  • State-feedback control: 𝑣 𝑙 = 𝐿 𝑠 𝑙 − 𝑦 𝑙

State update function: x k + 1 = Adx k + Bd1𝑣 𝑙 − 1 + 𝐶𝑒2𝑣[𝑙]

  • Similar to LET model: trading jitter for latency
  • P. Pazzaglia

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

System model

kT (k+1)T kT+D

𝒗 𝒍 − 𝟐 𝒗[𝒍]

Active control command

actuation actuation

Control task Actuator

Read sensor

slide-7
SLIDE 7
  • Missing a deadline means missing an actuator command update
  • Chosen strategy: keep the previous actuation value
  • Problem: The actuator uses a control output that is not related with

the current state

– Control output is no more «fresh»

  • The system dynamics changes!

7

  • P. Pazzaglia

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

Missing a deadline

kT (k+1)T kT+D

X

Control task

𝒗 𝒍 − 𝟐 𝒗 𝒍

slide-8
SLIDE 8
  • Update freshness 𝛦 of the control output

– ∆ = 0 if job completes before the deadline – Otherwise, ∆ equals to the «ageing steps» of the control output

x k + 1 = Adx k + 𝐶𝑒1𝑣 𝑙 − 1 + 𝐶𝑒2𝑣[𝑙] 𝑣 𝑙 − 1 = −𝐿𝑒𝑦[𝑙 − 1 − ∆𝑞] 𝑣 𝑙 = −𝐿𝑒𝑦[𝑙 − ∆𝑑]

  • Freshness is independent of control law and controlled system!
  • Different effects changing deadline miss handling

8

  • P. Pazzaglia

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

Update freshness: definition

kT (k+1)T kT+D

𝒗 𝒍 − 𝟐 𝒗[𝒍]

Control task

slide-9
SLIDE 9

9

  • P. Pazzaglia

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

Update freshness: Continue strategy

0,0 0,1 1,1 1,0 H H H H M M M M ∗ 𝐶𝐷𝑆𝑈 ≤ 𝐸𝑗

∗ 𝑋𝐷𝑆𝑈 < 𝑈

𝑗 + 𝐸𝑗

kT (k+1)T kT+D

Δ𝑞, Δ𝑑

See Algorithm 1 in the paper for more details

−𝑳𝒆x 𝒍 − 𝟐 − 𝜠𝒒 −𝑳𝒆x 𝒍 − 𝜠𝒅

slide-10
SLIDE 10

10

  • P. Pazzaglia

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

Update freshness: Kill strategy

Δ𝑞, Δ𝑑

kT (k+1)T kT+D

−𝑳𝒆x 𝒍 − 𝟐 − 𝜠𝒒 −𝑳𝒆x 𝒍 − 𝜠𝒅

X

0,0 0,1 1,2 1,0 M M M M H H H H 2,0 M H 2,3 3,0 M H In this example, maximum number of consecutive deadline misses is equal to 3 ∗ 𝐶𝐷𝑆𝑈 ≤ 𝐸𝑗

slide-11
SLIDE 11

11

  • System dynamics as a function of freshness pairs

𝑦 𝑙 + 1 = 𝐵𝑒𝑦 𝑙 − 𝐶𝑒1𝐿𝑒𝑦 𝑙 − 1 − 𝛦𝑞 − 𝐶𝑒2𝐿𝑒𝑦 𝑙 − 𝛦𝑑

  • Augmented state vector ξ[𝑙]

ξ[𝑙] = [𝑦 𝑙 ; 𝑦 𝑙 − 1 ; … . 𝑦 𝑙 − ∆𝑛𝑏𝑦 − 1 ]

  • We can write the system dynamics as: ξ 𝑙 + 1 = Ф(𝛦𝑞, 𝛦𝑑 ) ξ[𝑙]
  • State update matrix Ф(𝛦𝑞, 𝛦𝑑 )

Ф(𝛦𝑞, 𝛦𝑑 ) = 𝐵𝑒 ⋯ −𝐶𝑒2𝐿𝑒 ⋯ − 𝐶𝑒1𝐿𝑒 ⋯ 𝐽𝑜 0𝑜 ⋯ ⋯ ⋯ 0𝑜 𝐽𝑜 0𝑜 ⋯ ⋯ ⋮ ⋮ ⋮ ⋱ ⋯ ⋯

  • P. Pazzaglia

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

State update matrix

slide-12
SLIDE 12

Example:

  • Every combination of (𝛦𝑞, 𝛦𝑑) is mapped to a specific dynamic of

the system through the matrix Ф(𝛦𝑞, 𝛦𝑑)

12

  • P. Pazzaglia

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

State update matrix: an example

0,0 0,1 1,1 1,0 H H H H M M M M

slide-13
SLIDE 13

13

ξ 𝑙 + 1 = Ф(𝛦𝑞, 𝛦𝑑 ) ξ[𝑙]

  • Every Ф(𝛦𝑞, 𝛦𝑑 ) represents an operating mode of the system

– Different dynamics – Constraints on transitions due to (m,k)

  • Constrained switched linear system
  • Even if some operating modes can be unstable, global stability can

be still ensured with state of the art analysis

  • P. Pazzaglia

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

Missing deadlines: effects on control

Hypothesis:

  • Every combination of mode switches leads to a stable behavior
  • Exponential stability: bounded by an exponential function
slide-14
SLIDE 14

14

  • P. Pazzaglia

Performance analysis

  • Assign a performance value for each sequence of N jobs
  • Value of N is determined by the exponential bound on the dynamics
  • Sum of quadratic error
  • Matrix elements of Ψ 𝑡 depends on the ordered sequence of H/M

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

slide-15
SLIDE 15

15

  • P. Pazzaglia

Performance analysis

  • 𝑸 𝒕 = ξ[𝟏]𝑼Ψ(𝒕)ξ[𝟏]
  • Scalar performance index independent from initial state

∏ 𝑡 = | Ψ(𝑡) |2

  • It is possible to extract one single value representing the worst

value for each (m,k) constraint:

  • Worst Case Normalized Performance: 𝑋𝐷𝑄𝑜 = 𝑛𝑏𝑦𝑡 ∏ 𝑡

∏ 𝑏𝑚𝑚 ℎ𝑗𝑢𝑡

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

slide-16
SLIDE 16

16

  • P. Pazzaglia

Performance state machine

WH constraint (1,2) N = 4 steps

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

Desired performance region Transitions marked with X should never happen for (m,k) constraints

slide-17
SLIDE 17

17

  • P. Pazzaglia

Case study: Furuta pendulum

  • Furuta pendulum: rotary inverted pendulum
  • Linearized model in the neighbourhood of the upward position
  • Feedback control with 𝑈𝑗 = 0.1𝑡𝑓𝑑 and 𝐸𝑗 = 0.2 ∗ 𝑈𝑗
  • Testing different (m,K) values and studying how Worst Case

performance changes

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

slide-18
SLIDE 18

18

Case study: Furuta pendulum

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

  • P. Pazzaglia

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

The lower the better

slide-19
SLIDE 19

19

Case study: Furuta pendulum

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

Continue job strategy Kill job strategy

slide-20
SLIDE 20

20

  • This new model can be used as a time contract between

software designers and control engineers

  • Possibility of inserting run-time monitors
  • P. Pazzaglia

Possible applications

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

(m,k) = (1,2)

slide-21
SLIDE 21

21

  • P. Pazzaglia

Summary

  • New model for studying performance evolution under overload

conditions 1. Creating a state machine for computing freshness of outputs, applicable to different patterns and handling of deadline misses 2. Intergrating freshness information with state evolution of the controlled system: different operating modes 3. Creating a state machine for computing performance values realted to patterns of H/M deadlines

– Worst case performance guarantees – Runtime monitors for performance evolution

  • Case study: Furuta pendulum

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

slide-22
SLIDE 22

22

  • P. Pazzaglia

Future work

  • Extensions:

– Including additional performance metrics – Extending the case study to WCRT>T+D, allowing multiple pending jobs at deadline

  • Finding optimal controller for a system under (m,K) constraints,

for achieveing a given performance

  • More complex case studies:
  • Testing non linear systems performance by simulation
  • More complex deadline miss handlings

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses

slide-23
SLIDE 23

23

  • P. Pazzaglia

Thank you!

paolo.pazzaglia@santannapisa.it

Any questions?

Beyond the Weakly Hard Model: Measuring the Performance Cost of Deadline Misses