using Shapers Yue Tang 1 , Yuming Jiang 2 , Xu Jiang 1 , Nan Guan 1 1 - - PowerPoint PPT Presentation

using shapers
SMART_READER_LITE
LIVE PREVIEW

using Shapers Yue Tang 1 , Yuming Jiang 2 , Xu Jiang 1 , Nan Guan 1 1 - - PowerPoint PPT Presentation

Improving Multiprocessor Real-Time Systems with Bursty Inputs under Global EDF using Shapers Yue Tang 1 , Yuming Jiang 2 , Xu Jiang 1 , Nan Guan 1 1 The Hong Kong Polytechnic University 2 Norwegian University of Science and Technology Outline


slide-1
SLIDE 1

Improving Multiprocessor Real-Time Systems with Bursty Inputs under Global EDF using Shapers

Yue Tang1, Yuming Jiang2, Xu Jiang1, Nan Guan1

1 The Hong Kong Polytechnic University 2Norwegian University of Science and Technology

slide-2
SLIDE 2

Outline

  • Motivation

2019/5/16 2

  • Framework
  • Analysis Details
  • Evaluation
slide-3
SLIDE 3

Outline

  • Motivation

2019/5/16 3

  • Framework
  • Analysis Details
  • Evaluation
slide-4
SLIDE 4

Motivation

2019/5/16 4

  • Bounded delay is essential for real-time systems
  • Global EDF is a widely used scheduling strategy
slide-5
SLIDE 5

Motivation

2019/5/16 5

  • Bounded delay is essential for real-time systems
  • Global EDF is a widely used scheduling strategy
  • How to calculate delay bound for GEDF?
slide-6
SLIDE 6

Motivation

2019/5/16 6

  • Bounded delay is essential for real-time systems
  • Global EDF is a widely used scheduling strategy
  • How to calculate delay bound for GEDF?
  • Most work considers periodic tasks
slide-7
SLIDE 7

Motivation

2019/5/16 7

  • Bounded delay is essential for real-time systems
  • Global EDF is a widely used scheduling strategy

However

  • How to calculate delay bound for GEDF?
  • Most work considers periodic tasks
  • Bursty tasks are more general
slide-8
SLIDE 8

Motivation

2019/5/16 8

  • Bursty tasks are more general in real applications

I/O FPGA DSP I/O ECU I/O input stream input stream

  • utput stream
  • utput stream
slide-9
SLIDE 9

Motivation

2019/5/16 9

  • Bounded delay is essential for real-time systems
  • Global EDF is a widely used scheduling strategy

However

  • How to calculate delay bound for GEDF?
  • Most work considers periodic tasks
  • Bursty tasks are more general
  • Model bursty tasks as periodic tasks

Possible solution?

slide-10
SLIDE 10

Motivation

2019/5/16 10

  • Does modeling bursty tasks as periodic tasks work for calculating delay bound?

Choose the period of periodic tasks 5 10 15 20 25 30 35 t T = 1 ? 9 11 Overestimate workload → too pessimistic T = 5 ? Underestimate workload → wrong results (Assume D = 5, one task on uniprocessor) In the extreme case, more than one job arrives simultaneously (e.g., 3 events at time 10) 5 10 15 20 25 30 35 t Can not set the period !

No !

slide-11
SLIDE 11

Motivation

2019/5/16 11

  • Bounded delay is essential for real-time systems
  • Global EDF is a widely used scheduling strategy

However

  • How to calculate delay bound for GEDF?
  • Most work considers periodic tasks
  • Bursty tasks are more general
  • Model bursty tasks as periodic tasks

Possible solution? Our contribution !

  • Change bursty tasks to periodic tasks using shapers
slide-12
SLIDE 12

Our Contribution

2019/5/16 12

  • Use shapers to calculate delay bound for multiprocessors under global EDF
  • Design a heuristic algorithm to adjust the parameters of shapers for higher acceptance ratio
slide-13
SLIDE 13

Outline

  • Motivation

2019/5/16 13

  • Framework
  • Analysis Details
  • Evaluation
slide-14
SLIDE 14

Framework

2019/5/16 14

bursty periodic system shapers

1

S

2

S

1

2

m

m

 

1



2



scheduler

1

P

2

P

n

P

Why our approach is correct?

m

S

slide-15
SLIDE 15

Correctness

2019/5/16 15

  • ur calculated delay bound

(changing bursty tasks as periodic)

bursty periodic system shapers

1

S

2

S

1

2

m

m

 

1



2



scheduler

1

P

2

P

n

P

m

S

slide-16
SLIDE 16

Correctness

2019/5/16 16

  • ur calculated delay bound

(changing bursty tasks as periodic)

bursty periodic system shapers

1

S

2

S

1

2

m

m

 

1



2



scheduler

1

P

2

P

n

P

calculated delay bound (modeling bursty tasks as periodic)

m

S

slide-17
SLIDE 17

Correctness

2019/5/16 17

  • ur calculated delay bound

(changing bursty tasks as periodic)

bursty periodic system shapers

1

S

2

S

1

2

m

m

 

1



2



scheduler

1

P

2

P

n

P

calculated delay bound (modeling bursty tasks as periodic) 5 10 15 20 25 30 35 t 5 10 15 20 25 30 35 t Assume D = 5, one task on uniprocessor If consider the delay bound at the scheduler → schedulable If consider the overall delay → unschedulable

m

S

slide-18
SLIDE 18

Outline

  • Motivation

2019/5/16 18

  • Framework
  • Analysis Details
  • Evaluation
slide-19
SLIDE 19

System Model

2019/5/16 19

  • Task Model

For each task, it has

  • Scheduling strategy

A more general global EDF scheduling Worst case execution time C Relative deadline D Priority indicator λ Arrival curve α: maximum number of arrived events in any length of time interval Relative deadline only decides a task’s finish time The priority of a task is decided by priority indicator

slide-20
SLIDE 20

Shaper

2019/5/16 20

  • Behavior

Process job sequences and force its output job sequences to confirm to some time constraints

  • Shaper Component

Arrival curve α Shaping function σ shaper shaper Output arrival curve α’ = α σ

  • When generating periodic outputs, the shaper/shaping function is uniquely decided by period T.
slide-21
SLIDE 21

Shaper

2019/5/16 21

  • Behavior

Process job sequences and force its output job sequences to confirm to some time constraints

  • Larger number of simultaneously arrived jobs → larger delay bound at the shaper

shaper

  • Smaller period of shaper → smaller delay bound at the shaper
slide-22
SLIDE 22

Global EDF Component

2019/5/16 22

  • Model the global EDF (GEDF) scheduler as a GEDF component

Delay = Caldelay (input tasks, analysis techniques) Global EDF component

1 2

' ( ' , ' ,..., ' )

m

    =

1 2

( , ,..., )

m

    =  (Decided by Caldelay function)

bursty periodic system shapers

1

S

2

S

1

2

m

m

 

1



2



scheduler

1

P

2

P

n

P

m

S

slide-23
SLIDE 23

Model the System with Shapers

2019/5/16 23

  • A system with shapers is modeled as a sequence of abstract components

bursty periodic system shapers

1

S

2

S

1

2

m

m

 

1



2



scheduler

1

P

2

P

n

P

system

1

S

2

S

GEDF component

1

2

m

1

' 

2

' 

'm 

1

2

m

m

S

m

S

slide-24
SLIDE 24

How to Analyze (for given shapers)

2019/5/16 24

  • Theorem

For each task, the overall delay bound is equal to the sum of that at the shaper and that of the scheduler Di

Di = Di

1 + Di 2 system

1

S

2

S

GEDF component

1

2

m

1

' 

2

' 

'm 

1

2

m

m

S

Di

1

Di

2

slide-25
SLIDE 25

How to Choose Shapers

2019/5/16 25

  • For periodic outputs, the behavior is decided by the period of shapers
  • Why difficult to decide the period T

① Increase T → larger Di

1 , smaller Di 2

Di = Di

1 + Di 2

Decrease T → smaller Di

1 , larger Di 2

② The calculation Di

2 depends on other tasks

③ Enumerating all possible values is low-efficient

  • We propose a heuristic algorithm for higher acceptance ratio

Di

system

1

S

2

S

GEDF component

1

2

m

1

' 

2

' 

'm 

1

2

m

m

S

Di

1

Di

2

slide-26
SLIDE 26

Outline

  • Motivation

2019/5/16 26

  • Framework
  • Analysis Details
  • Evaluation
slide-27
SLIDE 27

Evaluation (acceptance ratio)

2019/5/16 27

The only one existing work for bursty inputs under global EDF Proposed approach, setting the period of the shaper based on the input task

With simultaneously arrived jobs Without simultaneously arrived jobs

Proposed approach, setting the period of the shaper based on the heuristic Proposed approach, setting the period of the shaper arbitrarily

slide-28
SLIDE 28

Evaluation (normalized delay bound)

2019/5/16 28

The only one existing work for bursty inputs under global EDF

With simultaneously arrived jobs Without simultaneously arrived jobs

Proposed approach, setting the period of the shaper based on the heuristic Proposed approach, setting the period of the shaper arbitrarily The normalized delay bound is calculated based on that when setting the period based on the input

slide-29
SLIDE 29

Thanks for attention !