PAStime: Progress-aware Scheduling for Time-critical Computing
Soham Sinha, Richard West, Ahmad Golchin
Department of Computer Science, Boston University, USA
PAStime: Progress-aware Scheduling for Time-critical Computing - - PowerPoint PPT Presentation
PAStime: Progress-aware Scheduling for Time-critical Computing Soham Sinha , Richard West, Ahmad Golchin Department of Computer Science, Boston University, USA Introduction - Mixed-criticality Systems Traffic sign detection Object
Soham Sinha, Richard West, Ahmad Golchin
Department of Computer Science, Boston University, USA
2
Object classification Traffic sign detection Car entertainment Unmanned Aerial Vehicles
3
System Modes HI-mode LO-mode
4
System Modes HI-mode LO-mode
High-criticality (HC) Tasks
✔
Low-criticality (LC) Tasks Х High-criticality (HC) Tasks
✔
Low-criticality (LC) Tasks ✔
5
System Modes HI-mode LO-mode
High-criticality (HC) Tasks
✔
Low-criticality (LC) Tasks Х High-criticality (HC) Tasks
✔
Low-criticality (LC) Tasks ✔
High-criticality tasks are given more time to execute at the cost of low-criticality tasks
1. The system starts in LO-mode. ○ All tasks run with their LO-mode budgets. 2. When a task overruns its LO-mode budget, system mode is switched to HI-mode. 3. In HI-mode, only high-criticality tasks get to run.
6
7
HC1 LC
C (LO) C (HI)
HC2
C (LO) C (HI) C (LO)
HC1 HC2 HC1 HC2
Overruns C(LO)
No LC tasks LO-mode HI-mode
1st Period 2nd Period 3rd Period
System mode
○ System is switched to HI-mode.
HI-mode.
8
9
○ Reducing the number of mode switches ○ Increasing the execution time for LC tasks ○ Improve QoS of LC tasks while guaranteeing HC tasks’ deadlines.
10
11
○ Check if C (LO) could be extended, without breaking schedulability of other tasks.
within extended C (LO) ○ Otherwise, switch to HI-mode
BB1: start BB2: for loop (10 times) BB3 BB6: for loop (20 times) BB5 BB4 BB7 BB8 500ms
2000ms
12
HC1 LC
C (LO) C (HI)
HC2
C (LO) C (HI)
HC1 HC2 HC1
Observes delay, extends C(LO)
LO-mode
C (LO)
LC HC2 LC
Extended C (LO) 1st Period 2nd Period 3rd Period
Checkpoint
System mode
○ Profiling phase ○ Execution phase
○ First implementation of AMC in LITMUSRT ○ Both AMC and AMC-PAStime In LITMUSRT
13
○ Insert checkpoint before a loop (except the first) ○ Implemented in LLVM
14
BB1: start BB2: for loop (10 times) BB3 BB6: for loop (20 times) BB5 BB4 BB7 BB8
15
An Overview
Core i7-5557U 3.1 GHz)
Classification (HC), dlib Object Tracking (HC), MPEG Video Decoder (LC)
tasks), Flexibility in LO-mode utilization, Checkpoint location, Overheads, Prediction Models
16
9-21% increment in decoded frames
Two Tasks One HC Object Classifier One LC Video Decoder
17
Utilizations of LC tasks is improved by a factor of 3 to 9 for 8 to 20 tasks.
Half the task in each set are HC Object Classifier tasks and half are LC Video Decoder tasks
18
such as the feedback-based one.
timing-sensitive cloud-computing applications.
could be extended based on
given that RMS schedulability criteria is met.
19
PAStime is a mixed-criticality runtime system to extend the LO-mode based on the execution progress of the HC tasks. PAStime is implemented using LLVM and LITMUSRT.
20
Contact: soham1 <AT> bu.edu
Questions?