240 likes | 258 Vues
Schedulability Analysis of Multiprocessor Real -Time Applications with Stochastic Task Execution Times. Sorin Manolache , Petru Eles, Zebo Peng {sorma, petel, zebpe}@ida.liu.se. Department of Computer and Information Science Linköping U niversit y, Sweden. Outline. Introduction
E N D
Schedulability Analysis of Multiprocessor Real-Time Applications with Stochastic Task Execution Times Sorin Manolache, Petru Eles, Zebo Peng {sorma, petel, zebpe}@ida.liu.se Department of Computer and Information ScienceLinköping University, Sweden
Outline Introduction Problem formulation Application modelling Approximation method Markov chain generator construction Analysis Experimental results Conclusions
Scheduling Partitioning Mapping Allocation P2 P1 No Mapped and scheduled tasks on the allocated processors Fit? Introduction Functionality as an annotated task graph The schedulability analysis gives the design fitness estimate
Motivation “Classical” schedulability analysis works on the worst case execution time (WCET) model Established analysis methods
Applications (1) Soft real-time applications (missing a deadline could be acceptable) WCET becomes pessimistic Leads to processor under-utilization
Applications (2) Early design phases, early estimations for future design guidance • Alternative Models: • Average • Interval • Stochastic
Sources of Variability Application characteristics (data dependent loops and branches) Architectural factors (pipeline hazards, cache misses) External factors (network load) Insufficient knowledge
probab probab execution time execution time Problem Formulation (1) Input: • Set of task graphs, periodic tasks, deadlines equal periods, statically mapped • Set of execution times probability density functions (continuous) • Scheduling policy • Deadlines less than or equal to the periods • Designer controlled rejection (discarding)
Problem Formulation (2) Output: • Ratio of missed deadlines per task graph Limitations: • Non-preemption 15% 3%
Approximate the ETPDFs by Coxian distributions A much larger Markov chain is obtained, but it is easier to solve Approach Outline (1) The application with stochastic task execution times can be regarded as a system with random character • The solution can be obtained by constructing and analysing the underlying stochastic process • Very difficult to solve in the case of arbitrary task execution time PDFs (ETPDFs)
Approximation Modelling CTMC constr. Analysis Coxian distribs Task graphs GSPN CTMC Results Approach Outline (2)
Approximation Modelling CTMC constr. Analysis Coxian distribs Task graphs GSPN CTMC Results Application Modelling (1)
C A Application Modelling (2) E B F D
A C F D B E Firing delay equals execution time probab firing delay Application Modelling (3) A E B C D F
Approximation Modelling CTMC constr. Analysis Coxian distribs Task graphs GSPN CTMC Results Approximation (1)
Approximation (2) a1l1 a2l2 a3l3 (1-a1)l1 (1-a2)l2
Approximation Modelling CTMC constr. Analysis Coxian distribs Task graphs GSPN CTMC Results CTMC Construction (1)
CTMC Construction (2) X, Y X, Y X SMP Approximation of the SMP Approximation of X X
Construction of the CTMC The global generator of the Markov chain becomes then M is expressed in terms ofsmallmatrices and can begenerated on the fly– memory savings
Accuracy Accuracy vs analysis complexity compared to an exact approach presented in previous work
Conclusions Approximation approach to performance analysis of multiprocessor real-time applications with stochastic execution times Larger scale applications can be analysed due to an efficient scheme to store the underlying stochastic process Provides the possibility to trade-off analysis speed and memory demand with analysis accuracy