Graceful Degradation of Low-Criticality Tasks in Multiprocessor - - PowerPoint PPT Presentation

graceful degradation of low criticality tasks in
SMART_READER_LITE
LIVE PREVIEW

Graceful Degradation of Low-Criticality Tasks in Multiprocessor - - PowerPoint PPT Presentation

Graceful Degradation of Low-Criticality Tasks in Multiprocessor Dual-Criticality Systems Lin Huang, I-Hong Hou, Sachin S.Sapatnekar and Jiang Hu v Outline Motivation Previous Work Variable Precision Scheduling Methods Experiment


slide-1
SLIDE 1

v

Graceful Degradation of Low-Criticality Tasks in Multiprocessor Dual-Criticality Systems

Lin Huang, I-Hong Hou, Sachin S.Sapatnekar and Jiang Hu

slide-2
SLIDE 2

ØMotivation ØPrevious Work ØVariable Precision Scheduling Methods ØExperiment Results ØConclusion

2

Outline

slide-3
SLIDE 3

ØMotivation ØPrevious Work ØVariable Precision Scheduling Methods ØExperiment Results ØConclusion

3

Outline

slide-4
SLIDE 4

Hard Real Time Scheduling

  • Real time system: job execution has hard deadline
  • WCET (worst case execution time)

4

slide-5
SLIDE 5

Mixed Criticality System (MCS)

Ø Integrate multiple functionalities (tasks with different criticality levels)

5

slide-6
SLIDE 6

Conventional System Model for MCS

Ø ! = #$, #&, ⋯ , #( : * +,- ./ 012,3,12,1- +3.4*205 -*+6+ Task: (37, 87 , 97 ). 37: period 87 : WCET 97: criticality level. high(hi), low(lo) For high criticality task, 87(;<) > 87(9?)

6

When any high critical- ity job’s execution time exceeds 87(9?)

slide-7
SLIDE 7

Imprecise Mixed Criticality System (IMCS)

Ø For high criticality task, !"($%) > !"(()) For low criticality task, !" $% < !"(())

7

When any high critical

  • ity job’s execution

time exceeds !"(())

slide-8
SLIDE 8

Our Work

Ø Variable Precision Mixed Criticality System (VPMCS) Do precision optimization for low criticality tasks

task !" #"(LO) #"(HI) *" +" t1 hi 2 5 10

  • t2

lo 6 3 15 0.1 t3 lo 4 2 20 5

An motivation example of doing precision optimization No optimization: Average_error=2.55 With our precision optimization: Average_error=0.55

8

slide-9
SLIDE 9

ØMotivation ØPrevious Work ØVariable Precision Scheduling Methods ØExperiment Results ØConclusion

9

Outline

slide-10
SLIDE 10

Earliest Deadline First-Virtual Deadline (EDF-VD) Scheduling

Ø Classic EDF-VD scheduling on single processor["]

  • Each high criticality task has a virtual deadline (%& ≤ &,

0 < + ≤ 1)

  • Speedup factor=4/3, optimal

10

[1] S. Baruah, et al. "The preemptive uniprocessor scheduling of mixed-criticality implicit- deadline sporadic task systems." Real-Time Systems (ECRTS), 2012 24th Euromicro Conference on. IEEE, 2012.

slide-11
SLIDE 11

EDF-VD vs EDF

Ø EDF-VD has less conservative schedulability condition

11

task !" #"(%&) #"(()) *" t1 lo 1

  • 2

t2 hi 1/2 3 4

  • Schedulability condition for EDF

+,-. = +01

23 + +56 78 = 9 : + ; < > 1 not schedulable

Where: +?

@ = ∑BC∈B∧2CF? GC(@) HC , a ∈ ℎL, MN , b ∈ {QR, ST}

  • Schedulability condition for EDF-VD

+01

23 + min +56 78, YZC

[\

9]YZC

^_ =

9 : + min ; < , 9 : = 1 ≤ 1 schedulable

slide-12
SLIDE 12

Fluid Based Method

Ø R.M.Pathan “Improving the quality of service for scheduling mixed-criticality systems on multiprocessors”. ECRTS, 2017

  • Not directly implementable in practice

12

Ø Our work: partitioned and global scheduling on multiprocessors

slide-13
SLIDE 13

ØMotivation ØPrevious Work ØVariable Precision Scheduling Methods ØExperiment Results ØConclusion

13

Outline

slide-14
SLIDE 14

Multiprocessor Scheduling

Ø Partitioned scheduling: no inter-processor migration is allowed

14

slide-15
SLIDE 15

Ø Global Scheduling

  • Inter-processor migration is allowed, overhead

15

slide-16
SLIDE 16

EDF-VD Scheduling for IMCS["]

Lemma 1: If a task set satisfies the condition max '()

*+ + '-. *+, '() 01 + '-. 01 ≤ 3 4 ,

it is schedulable by EDF−VD on a single processor. '5

6 = ∑9:∈9∧*:=5 >:(6) A: , a ∈ ℎC, DE , b ∈ {HI, JK}

16

() (

[2] D, Liu, et al. "EDF-VD scheduling of mixed-criticality systems with degraded quality guarantees." arXiv preprint arXiv:1605.01302 (2016).

))) (())( )

slide-17
SLIDE 17

VPMCS Partitioning with EDF-VD Scheduling

Ø Speedup factor: (8# − 4)/3#, same as conventional MCS

17

1221 1221 1221 2 222 1221 2 1 1221

slide-18
SLIDE 18

Enhanced VPMCS Partitioning

Ø !"##$ 2: '( $ )$*+ *") *$),*(,"* )ℎ" ./01,),/0

234

56

7829:

56 ≤

78(234

=>?29: =>)

29:

56829: =>

, it is schedulable by EDF-VD on a single processor. Ø !"##$1 ⟹ !"##$ 2

18

11 11 11

  • 11
  • 211

1

  • 1211
slide-19
SLIDE 19

Global Scheduling

Ø Classic fpEDF method on m multiprocessors["]

  • Optimal w.r.t schedulable utilization

19

[3] S. Baruah. "Optimal utilization bounds for the fixed-priority scheduling of periodic task

systems on identical multiprocessors." IEEE Transactions on Computers 53.6 (2004): 781-784.

slide-20
SLIDE 20

Global Scheduling

Ø fpEDF-VD (fpEDF and EDF-VD)

  • Speedup factor: 5 + 1, same as conventional MCS
  • Low criticality task may lose its job once

20

ØDual virtual-deadline for fpEDF

  • Guarantee no job is abandoned

() ( ))) (())( )

slide-21
SLIDE 21

Fluid Scheduling

Ø Classic fluid scheduling

  • Optimal w.r.t speedup factor (4/3)

Ø Deadline Partition-Fair

  • Correctness of the implementation

21

slide-22
SLIDE 22

Offline Precision Optimization

Ø Formulate the problem as a 0-1 knapsack problem

  • Objective: minimize average error for low criticality tasks in

high criticality mode

  • Constraint: total utilization slack

2

  • 1
  • 22
slide-23
SLIDE 23

ØMotivation ØPrevious Work ØVariable Precision Scheduling Methods ØExperiment results ØConclusion

23

Outline

slide-24
SLIDE 24

Experiment Setup

Simulation Ø Random test cases

  • The probability of a task being high criticality: 0.5
  • Utilization range: [0.05,0.9]
  • Period range: [50,500]
  • Imprecise computing error range: [1,10]

Linux prototyping Ø 1.9GHZ Intel i3 4-processor machine Ø Linux 4.10 Ø Test cases: newton-raphson method, steepest descent method

24

slide-25
SLIDE 25

Experiment Comparison

Partitioned scheduling methods: Ø Partition-MC: partitioned scheduling with conventional model (drop low critical tasks) Ø Partition-VPMC: our VPMCS Partitioning with EDF-VD Scheduling Ø Partition-VPMC-E: our enhanced VPMCS Partitioning Global scheduling methods: Ø fpEDF-VD-MC: fpEDF-VD scheduling with conventional model (drop low critical tasks) Ø fpEDF-VD-VPMC: our fpEDF-VD scheduling method Ø fpEDF-DVD-VPMC: our dual virtual-deadline for fpEDF Fluid scheduling methods: Ø Fluid-VPMC: fluid method which is theoretically optimal Ø VPMC-DP-Fair: real hardware implementation of Fluid-VPMC

25

slide-26
SLIDE 26

Acceptance Ratio versus Utilization

Ø Our Partition-VPMC-E performs best when considering scheduling overhead

Acceptance ratio versus utilization

  • n 4 processors

Acceptance ratio versus utilization on 4 processors considering overhead

26

slide-27
SLIDE 27

Mean Error versus Utilization

Ø IMC: all low critical tasks in imprecise mode

Mean error with standard derivation versus Utilization on 4 processors Mean error with standard derivation versus Utilization on 8 processors

27

slide-28
SLIDE 28

Linux Prototyping

Mean error versus Utilization Overhead ratio versus Utilization

Ø Mean error and overhead Partitioned method has lowest overhead ratio and smallest mean error.

28

slide-29
SLIDE 29

Linux Prototyping

Ø Number of context switching

VPMC-DP-Fair has much larger number of context switching than global and partitioned scheduling method.

29

slide-30
SLIDE 30

ØMotivation ØPrevious Work ØVariable Precision Scheduling Methods ØExperiment Results ØConclusion

30

Outline

slide-31
SLIDE 31

Conclusion

Ø Our proposed methods can significantly reduce the error compared to IMCS scheduling Ø The proposed methods could achieve smaller overhead compared to fluid based method

31

slide-32
SLIDE 32

32