Task model for preemptive Systems Status Report Sebastian Altmeyer, - - PowerPoint PPT Presentation

task model for preemptive systems status report
SMART_READER_LITE
LIVE PREVIEW

Task model for preemptive Systems Status Report Sebastian Altmeyer, - - PowerPoint PPT Presentation

Task model for preemptive Systems Status Report Sebastian Altmeyer, Claire Maiza Saarland University RTSOPS 2011, Porto In last years RTSOPS ... ... we talked about preemptive scheduling Preempt task, if higher prior task available


slide-1
SLIDE 1

Task model for preemptive Systems Status Report

Sebastian Altmeyer, Claire Maiza

Saarland University

RTSOPS 2011, Porto

slide-2
SLIDE 2

In last year’s RTSOPS ... ... we talked about preemptive scheduling

  • Preempt task, if higher prior task available
  • Some task-sets are only schedulable preemptively

T1 T2

= Preemption Cost = Task Activation

slide-3
SLIDE 3

... and preemption cost

To cause an additional reload, a memory block must be

  • cached at point P
  • reused after point P
  • evicted due to preemption at P

load a load a ¬ cached

}

cached ∧ reused{ evicted? ¬ reused

}

Cost depends on preemption point, preempting task and total number of preemptions.

slide-4
SLIDE 4

In last year’s RTSOPS ... ... we discussed different task models

Ci execution demand Ti period with preemption costs?

  • included in Ci
  • global bound on the preemption cost of task i
  • distinguish cost for first and second and ... preemption
  • include the effect of the preempting task
  • consider only preempting task
  • precise preemption point considered
slide-5
SLIDE 5

In last year’s RTSOPS ... ... we presented some open Problems

  • How high is the inherent imprecision of a task model?
  • What is a good trade off between precision and

complexity based on the task model?

  • How to integrate such detailed information in the

schedulability analysis? Can we adapt system and/or schedule?

slide-6
SLIDE 6

First Step: Which taskmodels are used? and how?

Period, Priorities Tasks Timing Analysis Task Model Schedulability Analysis Yes/No

basic verification process; valid if

  • preemption cost neglected
  • Ci contains preemption costs
  • global bound on the preempting cost for all preemption

scenarios

slide-7
SLIDE 7

Verification Processes

A scheduling test may use different task models:

Period, Priorities Tasks Timing Analysis Task Model Precomputation Derived Task Model Schedulability Analysis Yes/No

No clear separation between timing analysis/scheduling analysis

slide-8
SLIDE 8

Verification Processes

A scheduling test may use different task models:

Period, Priorities Tasks Timing Analysis Task Model Precomputation Derived Task Model Schedulability Analysis Yes/No

No clear separation between timing analysis/scheduling analysis Example: preemption cost pi,j of task τi preempted by task τj used; deriving all combination of i, j a priori computationally infeasible

slide-9
SLIDE 9

Verification Processes

A scheduling test may use different task models:

Period, Priorities Tasks Timing Analysis Task Model Precomputation Derived Task Model Schedulability Analysis Yes/No

No clear separation between timing analysis/scheduling analysis Example: global preemption cost depends on # of preemption depends

  • n response time depends on global preemption cost depends
  • n . . .
slide-10
SLIDE 10

Which taskmodels were this far used?

Liu & Layland [4] and many more No preemption cost at all; preemption cost as part of execution time bound Lee et al. [3]; Lei Ju et al. [2] Preemption cost of preempting task for a single preemption Busquets & Wellings [1]; Tomiyama & Dutt [7] Preemption cost incurred due to preempting task Tan & Mooney [6] Preemption cost of task τi preempted by task τj Staschulat et al. [5] Preemption cost for nth preemption of task τi preempted by task τj

slide-11
SLIDE 11

Precision:

Preemption: Task τi is preempted at program point p by task τj. Preemption Point Varying between 0 and number of cache blocks Preempting Task All cache blocks of τi may be reused—or none Preempted Task Task τj evicts all reused cache blocks of τi—or none But how to classify/measure this variation?

slide-12
SLIDE 12

Precision of Task Models

Depends strongly on cache contention: All tasks together fit in the cache

  • no cache misse due to preemptions
  • analyses based on preempted task and

preempting task are precise

  • analyses based on one side only are overly

pessimistic Each task alone fills the whole cache

  • analyses based on preempted task are precise
  • analyzing both preempted/preempting task

brings no advantage

  • analyses based on preempting task are overly

pessimistic Depends also on the structure of the tasks

slide-13
SLIDE 13

So what next?

To get an idea on the precision of the task models and their usefulness: Extensive evaluation based on

  • benchmark suites
  • randomly generated task sets/cache behaviors

Formalizing theoretical bounds/dependencies; deriving an (half)-order on the precision of the task models .... besides the other problems in this context.

slide-14
SLIDE 14

So what next?

To get an idea on the precision of the task models and their usefulness: Extensive evaluation based on

  • benchmark suites
  • randomly generated task sets/cache behaviors

Formalizing theoretical bounds/dependencies; deriving an (half)-order on the precision of the task models .... besides the other problems in this context.

Thanks for your attention!

slide-15
SLIDE 15

References

  • J. V. Busquets-Mataix, J. J. Serrano, R. Ors, P. Gil, and A. Wellings.

Adding instruction cache effect to schedulability analysis of preemptive real-time systems. In Proceedings RTAS, pages 204–212, 1996. Lei Ju, Samarjit Chakraborty, and Abhik Roychoudhury. Accounting for cache-related preemption delay in dynamic priority schedulability analysis. In Proceedings of the conference on Design, automation and test in Europe (DATE’07), pages 1623–1628, San Jose, CA, USA, 2007. EDA Consortium. C.-G. Lee, J. Hahn, Y.-M. Seo, S.L. Min, R. Ha, S. Hong, C. Y. Park, M. Lee, and C. S. Kim. Analysis of cache-related preemption delay in fixed-priority preemptive scheduling. IEEE Transactions on Computers, 47(6):700–713, 1998.

  • C. L. Liu and James W. Layland.

Scheduling algorithms for multiprogramming in a hard-real-time environment. volume 20, pages 46–61, New York, NY, USA, 1973. ACM.

  • J. Staschulat, S. Schliecker, and R. Ernst.

Scheduling analysis of real-time systems with precise modeling of cache related preemption delay. In Proceedings ECRTS, 2005.

  • Y. Tan and V. Mooney.

Timing analysis for preemptive multi-tasking real-time systems with caches.

  • Trans. on Embedded Computing Sys., 6(1), 2007.
  • H. Tomiyama and N. D. Dutt.

Program path analysis to bound cache-related preemption delay in preemptive real-time systems. In Proceedings CODES, pages 67–71, 2000.