Presentation is loading. Please wait.

Presentation is loading. Please wait.

An On-line Approach to Reduce Delay Variations on Real-Time Operating Systems Shengyan Hong.

Similar presentations


Presentation on theme: "An On-line Approach to Reduce Delay Variations on Real-Time Operating Systems Shengyan Hong."— Presentation transcript:

1 An On-line Approach to Reduce Delay Variations on Real-Time Operating Systems Shengyan Hong

2 Problem Reduce Delay Variations of Tasks

3 Why Important? Delay Variations degrade hardware performance, e.g. sluggish response, erroneous behavior.

4 Task Model Original Task Model (C i, D i, P i ) IMF Task Model –initial subtask (C ii, D ii, P i, O ii =0) –mandatory subtask (C im, D im, P i, O im =0) –final subtask (C if, D if, P i, O if ) ADR Task Model –initial subtask (C ii, D iinew, P iinew =P i /M i ) –mandatory subtask (C imnew, D imnew, P i ) C * represents execution time, D * represents deadline, P * represents period, O * represents release time.

5 A Trick in Problem Suppose we have a task in original model, how to split mandatory subtask in IMF model to form ADR model? –Example, a task (C i =5000,D i =27000,P i =27000), and C ii and C if consumes 10% of C i, –The optimal scheme is to cut 8 splits from the mandatory subtask in IMF model. (1) (2) (3) The constraints (1), (2) and (3) help us get it.

6 Quadratic Programming Problem or (4) (5),where each term is an approximation of. (6) (7) Objective Function: Deadline Constraints Constraints (5), (6), (7) guarantees the correct running of Real-Time Operating Systems. Schedulability Constraint

7 ADR Algorithm Flow Adjust deadlines of mandatory subtasks, and search a new solution, and the process is repeated until the algorithm converges. For any fixed deadlines of mandatory subtasks, compute an updated feasible solution, i.e. deadlines of initial subtasks. Search an initial feasible solution with optimal model transformation.

8 Initial Results A custom simulator by C running on Linux A task set with first two tasks decomposable Compare results with original Delay Variations, and two representative methods –The smaller DV, the better the method is. –When workload changes, see which method can adapt to it. Task NameDecomp.Exec. TimeDeadlinePeriod SpeedYes500027000 StrengthYes80003000032000 PositionNo1000045000500000 SenseNo130006000070000 Task NameDelay Variations of Orig/DRB/TBB/ADR Speed33.33/41.48/16.67/ 2.96 Strength28.13/31.25/22.50/ 0.08 Position 4.40/ 3.40/02.60/06.28 Sense48.57/32.86/33.57/15.57 Task NameDelay Variations of Orig/DRB/TBB/ADR Speed33.33/41.48/16.67/ 2.96 Strength28.13/31.25/22.50/ 0.08 Position44.00/34.00/26.00/62.80 Sense48.57/32.86/33.57/15.57 Task NameDelay Variations of Orig/DRB/TBB/ADR Speed33.33/41.48/16.67/ 7.7 Strength28.13/31.25/22.50/ 0.87 Position44.00/34.00/26.00/22.09 Sense48.57/32.86/33.57/39.86 Task NameDecomp.Exec. TimeDeadlinePeriod SpeedYes500027000 StrengthYes80003000032000 PositionNo100004500050000 SenseNo130006000070000

9 The Road Ahead If initial subtask and final subtask do not have the same execution time, what to do? If mandatory subtask can not be divided, what to do? Test more task sets in the simulator. Show the performance of the proposed approach and the existing methods.

10 Questions?

11 Second Trick in Problem Deadline constraints (6) and (7) incorporate the subtask dependencies to schedulability test without being overly pessimistic. From (6), we can derive another constraint for M i. (6) (7) (8)


Download ppt "An On-line Approach to Reduce Delay Variations on Real-Time Operating Systems Shengyan Hong."

Similar presentations


Ads by Google