Practical Schedulability Analysis for Generalized Sporadic Tasks in Distributed Real-Time Systems Yuanfang Zhang 1 , Donald K. Krecker 2 , Christopher Gill 1 , Chenyang Lu 1 , Gautam H. Thaker 2 1.Washington University, St. Louis, MO, USA 2.Lockheed Martin Advanced Technology Laboratories
21
Embed
Practical Schedulability Analysis for Generalized Sporadic Tasks in Distributed Real-Time Systems Yuanfang Zhang 1, Donald K. Krecker 2, Christopher Gill.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Practical Schedulability Analysis for Generalized Sporadic Tasks in Distributed Real-Time SystemsYuanfang Zhang1, Donald K. Krecker2,
Christopher Gill1, Chenyang Lu1, Gautam H. Thaker2
1.Washington University, St. Louis, MO, USA
2.Lockheed Martin Advanced Technology Laboratories
Outline
Motivation Generalized Sporadic Task Model Schedulability Test for independent generalized
sporadic tasks Schedulability Test for end-to-end generalized
Leaky bucket vs. generalized sporadic task Generalized sporadic
task K(i) = 3 {(1,2), (3, 10), (5, 18)}
Leaky bucket model ρ =0.5 σ =1
Leaky bucket model greatly overestimates the workload
Time-Demand Analysis
Maximum number of arrivals
Maximum execution time demand
Earliest arrival time
The longest response time for Ti occurs during a level-i busy period if the arrivals of all tasks with equal or higher priority satisfy the maximum number of arrivals in that period
, ,
0 0( )
min ( ) |1 ( ) 0ii i k i k
if tMNA t
MNA t w z k K i if t
( ) ( )*i i iTD t MNA t
,1
,1, ,
0
( ) 0 0
max ( ) |1 ( )
i i
ii i k i k
if n
EAT n if n z
if n zEAT n z w k K i
Schedulability Test for independent generalized sporadic tasks One example
T1: a periodic task
T2: a generalized sporadic task
Arrival time constraints priority Exec. time Deadline
T1 {(1,40)} 1 10 40
T2 {(1, 10), (2, 30), (3, 50)} 2 8 50
Schedulability Test for T2 Compute an upper bound on the duration of a level-i busy period
D2 = min { t>0 | t = MNA1(t)*10 + MNA2(t)*8} = 26 Compute an upper bound on the number of instances Ti in a level-i
busy period of duration Di M2 = MNA(D2) = 2
For m=1 to M2 Compute an upper bound on the completion time of the mth job of
Ti in a level-i busy period C2(1) = min{ t>0 | t = MNA1(t)*10+8} = 18, C2(2) = 26
Compute an upper bound on the response time of the mth job of Ti in the busy period V2(1) = C2(1) – EATi(1) = 18, V2(2) = 16
The maximum is the WCRT for Ti W2 = 18
Compare WCRT with Di W2 < D2, task 2 is schedulable.
Schedulability Test for end-to-end generalized sporadic tasks Generalized release guard gi,j for each non-initial
subtask Ti,j (j>1) At the initial time, set gi,j=0 When m-1th job of Ti,j is released at time ri,j(m-1), update
gi,j=ri,j(m-1)+(ri,1(m)-ri,1(m-1)) Update gi,j to the current time if the current time is a processor
idle point on the processor where Ti,j executes An upper bound Wi to the end-to-end response time
of any generalized sporadic task Ti in a fixed-priority system synchronized according to the generalized release guard protocol is the sum of the upper bounds of WCRTs for all its subtasks
When the jitter percentage reaches 37.5, the WCRT bound for T1 is infinite when PT/RG is used.
The WCRT bounds for T1 are under 600 when ST/RG is used The miss ratios that are calculated by PT/RG reach 75% The miss ratios that are calculated by ST/RG are always 0
Representative Example
Military shipboard computing 15 end-to-end periodic tasks on 50
processors T10 becomes a generalized sporadic task
Highest priority Share processors with other 12 tasks Original period 200