Dependency Graph Approach for Multiprocessor Real-Time Synchronization. TU Dortmund, Germany

Size: px
Start display at page:

Download "Dependency Graph Approach for Multiprocessor Real-Time Synchronization. TU Dortmund, Germany"

Transcription

1 Dependency Graph Approach for Multiprocessor Real-Time Synchronization Jian-Jia Chen, Georg von der Bru ggen, Junjie Shi, and Niklas Ueter TU Dortmund, Germany 14,12,2018 at RTSS Jian-Jia Chen 1 / 21

2 Multiprocessor Scheduling Partitioned Multiprocessor Scheduling ready queue ready queue ready queue P 1 P 2 P m Jian-Jia Chen 2 / 21

3 Multiprocessor Scheduling Global Multiprocessor Scheduling ready queue P 1 P 2 P m Jian-Jia Chen 2 / 21

4 Multiprocessor Scheduling Semi-Partitioned Multiprocessor Scheduling ready queue ready queue ready queue P 1 P 2 P m Jian-Jia Chen 2 / 21

5 Resource Sharing Shared Resources: Data structures, variables, main memory area, file, set of registers, I/O unit Mutual exclusion Critical section Uniprocessor systems: Priority Inheritance Protocols (PIP) Priority Ceiling Protocols (PCP) Stack Resource Policy (SRP) Jian-Jia Chen 3 / 21

6 Existing Multiprocessor Locking Protocols Partitioned scheduling MPCP, 1990 MSRP, 2001 MrsP, 2013 FMLP, 2007 Jian-Jia Chen 4 / 21

7 Existing Multiprocessor Locking Protocols Partitioned scheduling MPCP, 1990 MSRP, 2001 MrsP, 2013 FMLP, 2007 Semi-partitioned scheduling DPCP, 1988 ROP, 2016, and ROP-Enforce, 2017 Jian-Jia Chen 4 / 21

8 Existing Multiprocessor Locking Protocols Partitioned scheduling MPCP, 1990 MSRP, 2001 MrsP, 2013 FMLP, 2007 Semi-partitioned scheduling DPCP, 1988 ROP, 2016, and ROP-Enforce, 2017 Global scheduling FMLP, 2007 FMLP +, 2014 DFLP, 2014 gedf-vpr, 2014 etc. Jian-Jia Chen 4 / 21

9 Two Correlated Problems Scheduler Design Problem Design locking protocols to synchronize the critical sections Design scheduling policies to schedule the synchronized tasks Partition the tasks to processors if the protocol is restricted to partitioned or semi-partitioned scheduling Schedulability Test Problem Validate the schedulability of a scheduling algorithm. Jian-Jia Chen 5 / 21

10 Open Problems for Multiprocessor Locking Protocols Performance of these protocols highly depends on How the tasks are partitioned How the tasks are prioritized Whether a job/task being blocked should spin or suspend itself How the resources are shared locally and globally Jian-Jia Chen 6 / 21

11 Open Problems for Multiprocessor Locking Protocols Performance of these protocols highly depends on How the tasks are partitioned Lakshmanan et al. (RTSS 2009), Nemati et al. (OPODIS 2010): grouping strategies Hsiu et al. (EMSOFT 2013): distributed execution mechanism, priority-based Huang et al. (RTSS 2016): resource-oriented partitioning (ROP) How the tasks are prioritized Whether a job/task being blocked should spin or suspend itself How the resources are shared locally and globally Jian-Jia Chen 6 / 21

12 Open Problems for Multiprocessor Locking Protocols Performance of these protocols highly depends on How the tasks are partitioned Lakshmanan et al. (RTSS 2009), Nemati et al. (OPODIS 2010): grouping strategies Hsiu et al. (EMSOFT 2013): distributed execution mechanism, priority-based Huang et al. (RTSS 2016): resource-oriented partitioning (ROP) How the tasks are prioritized von der Brüggen et al. (RTNS 2017): different priority-assignment strategies under ROP Afshar et al. (RTCSA 2017): optimal priority assignment for spin-based protocols Whether a job/task being blocked should spin or suspend itself How the resources are shared locally and globally Jian-Jia Chen 6 / 21

13 Open Problems for Multiprocessor Locking Protocols Performance of these protocols highly depends on How the tasks are partitioned Lakshmanan et al. (RTSS 2009), Nemati et al. (OPODIS 2010): grouping strategies Hsiu et al. (EMSOFT 2013): distributed execution mechanism, priority-based Huang et al. (RTSS 2016): resource-oriented partitioning (ROP) How the tasks are prioritized von der Brüggen et al. (RTNS 2017): different priority-assignment strategies under ROP Afshar et al. (RTCSA 2017): optimal priority assignment for spin-based protocols Whether a job/task being blocked should spin or suspend itself Yang et al. (RTSS 2016) for global scheduling How the resources are shared locally and globally Jian-Jia Chen 6 / 21

14 Open Problems for Multiprocessor Locking Protocols Performance of these protocols highly depends on How the tasks are partitioned Lakshmanan et al. (RTSS 2009), Nemati et al. (OPODIS 2010): grouping strategies Hsiu et al. (EMSOFT 2013): distributed execution mechanism, priority-based Huang et al. (RTSS 2016): resource-oriented partitioning (ROP) How the tasks are prioritized von der Brüggen et al. (RTNS 2017): different priority-assignment strategies under ROP Afshar et al. (RTCSA 2017): optimal priority assignment for spin-based protocols Whether a job/task being blocked should spin or suspend itself Yang et al. (RTSS 2016) for global scheduling How the resources are shared locally and globally Huang et al. (RTSS 2016): resource-oriented partitioning (ROP) Jian-Jia Chen 6 / 21

15 Research Questions What is the fundamental difficulty? What is the performance gap of partitioned, semi-partitioned, and global scheduling? Is it always beneficial to prioritize critical sections? Jian-Jia Chen 7 / 21

16 A Simple Task/Synchronization Model C 1,1 C 2,1 C 3,1 C 4,1 C 5,1 A 1,1 A 2,1 A 3,1 A 4,1 A 5,1 C 1,2 C 2,2 C 3,2 C 4,2 C 5,2 Mutex-Lock S1 Mutex-Lock S2 A set of tasks that arrive at the same time Jian-Jia Chen 8 / 21

17 A Simple Task/Synchronization Model C 1,1 C 2,1 C 3,1 C 4,1 C 5,1 A 1,1 A 2,1 A 3,1 A 4,1 A 5,1 C 1,2 C 2,2 C 3,2 C 4,2 C 5,2 Mutex-Lock S1 Mutex-Lock S2 A set of tasks that arrive at the same time Task τ i has one critical section using one share resource: A i,1 Jian-Jia Chen 8 / 21

18 A Simple Task/Synchronization Model C 1,1 C 2,1 C 3,1 C 4,1 C 5,1 A 1,1 A 2,1 A 3,1 A 4,1 A 5,1 C 1,2 C 2,2 C 3,2 C 4,2 C 5,2 Mutex-Lock S1 Mutex-Lock S2 A set of tasks that arrive at the same time Task τ i has one critical section using one share resource: A i,1 Task τ i has two non-critical sections: C i,1, C i,2 Jian-Jia Chen 8 / 21

19 A Simple Task/Synchronization Model C 1,1 C 2,1 C 3,1 C 4,1 C 5,1 A 1,1 A 2,1 A 3,1 A 4,1 A 5,1 C 1,2 C 2,2 C 3,2 C 4,2 C 5,2 Mutex-Lock S1 Mutex-Lock S2 A set of tasks that arrive at the same time Task τ i has one critical section using one share resource: A i,1 Task τ i has two non-critical sections: C i,1, C i,2 Objective: minimize the makespan, i.e., the maximum completion time. Jian-Jia Chen 8 / 21

20 Abundant Processors? normal execution critical section critical sec. release P 1: τ 1 P 2: τ 2 P 3: τ 3 P 4: τ 4 P 5: τ 5 P 6: τ t Jian-Jia Chen 9 / 21

21 Abundant Processors? normal execution critical section critical sec. release P 0: sync τ2 τ5 τ1 τ6 τ3 τ4 P 1: τ 1 P 2: τ 2 P 3: τ 3 P 4: τ 4 P 5: τ 5 P 6: τ t If tasks share one resource, image a virtual processor P 0 the critical section of task τ i is released at time C i,1 the critical section of task τ i has deadline of H C i,2 H is the target deadline Jian-Jia Chen 9 / 21

22 Strongly NP-Hard Scheduling problem 1 r j L max, strongly NP-complete 1: uniprocessor systems r j : a set of jobs {J j } with different arrival times r j and deadlines d j default is non-preemptive scheduling, the execution time of job J j is p j (decision version) L max: whether there is a feasible schedule Jian-Jia Chen 10 / 21

23 Strongly NP-Hard Scheduling problem 1 r j L max, strongly NP-complete 1: uniprocessor systems r j : a set of jobs {J j } with different arrival times r j and deadlines d j default is non-preemptive scheduling, the execution time of job J j is p j (decision version) L max: whether there is a feasible schedule Reduction from 1 r j L max Makespan H is a positive integer with H > d j for every job J j J j, we construct a task τ j with one critical section 1 C j,1 is set to r j 2 C j,2 is set to H d j 3 A j,1 is set to p j All constructed tasks share one resource in the critical sections Jian-Jia Chen 10 / 21

24 Strongly NP-Hard Scheduling problem 1 r j L max, strongly NP-complete 1: uniprocessor systems r j : a set of jobs {J j } with different arrival times r j and deadlines d j default is non-preemptive scheduling, the execution time of job J j is p j (decision version) L max: whether there is a feasible schedule Reduction from 1 r j L max Makespan H is a positive integer with H > d j for every job J j J j, we construct a task τ j with one critical section 1 C j,1 is set to r j 2 C j,2 is set to H d j 3 A j,1 is set to p j All constructed tasks share one resource in the critical sections There is a feasible non-preemptive uniprocessor for the jobs {J j } iff there is a feasible schedule for the constructed tasks {τ j } on a sufficient number of processors Jian-Jia Chen 10 / 21

25 Computational Complexity and Implications Assume that the task set needs synchronization. Makespan: Theorem The makespan problem on M processors is N P-hard in the strong sense even if M is sufficiently large under any scheduling paradigm. Jian-Jia Chen 11 / 21

26 Computational Complexity and Implications Assume that the task set needs synchronization. Makespan: Theorem The makespan problem on M processors is N P-hard in the strong sense even if M is sufficiently large under any scheduling paradigm. Bin Packing: Theorem Minimizing the number of processors for a given common deadline of T is N P-hard in the strong sense under any scheduling paradigm. Theorem There is no polynomial-time (approximation) algorithm to minimize the number of processors for a given common deadline of T under any scheduling paradigm unless P = N P. Jian-Jia Chen 11 / 21

27 Dependency-Graph Approach (DGA) A two-step approach: First step: create a dependency graph G = (V, E) A task τ i has three vertices, for C i,1, A i,1, and C i,2, in a chain C1,1 C2,1 C3,1 C4,1 C5,1 A1,1 A2,1 A3,1 A4,1 A5,1 C1,2 C2,2 C3,2 C4,2 C5,2 Mutex-Lock S1 Mutex-Lock S2 Jian-Jia Chen 12 / 21

28 Dependency-Graph Approach (DGA) A two-step approach: First step: create a dependency graph G = (V, E) A task τ i has three vertices, for C i,1, A i,1, and C i,2, in a chain If τ i and τ j share the same binary Mutex-Lock, their A i,1 and A j,1 must be defined in the precedence constraint C1,1 C2,1 C3,1 C4,1 C5,1 A1,1 A2,1 A3,1 A4,1 A5,1 C1,2 C2,2 C3,2 C4,2 C5,2 Mutex-Lock S1 Mutex-Lock S2 Jian-Jia Chen 12 / 21

29 Dependency-Graph Approach (DGA) A two-step approach: First step: create a dependency graph G = (V, E) A task τ i has three vertices, for C i,1, A i,1, and C i,2, in a chain If τ i and τ j share the same binary Mutex-Lock, their A i,1 and A j,1 must be defined in the precedence constraint C1,1 C2,1 C3,1 C4,1 C5,1 A1,1 A2,1 A3,1 A4,1 A5,1 C1,2 C2,2 C3,2 C4,2 C5,2 Mutex-Lock S1 Mutex-Lock S2 Second step: generate a schedule of G on M processors either preemptive, or non-preemptive schedules either global, semi-partitioned, or partitioned schedules Jian-Jia Chen 12 / 21

30 Generate A Dependency Graph Jackson s rule (non-preemptive EDF) for the sync. processor: The deadline of task τ i is H C i,2 normal execution critical section critical sec. release P 0 : sync P 1 : τ 1 P 2 : τ 2 P 3 : τ 3 P 4 : τ 4 τ 2 C i,1 A i,1 C i,2 τ τ τ τ τ τ P 5 : τ 5 P 6 : τ t Jian-Jia Chen 13 / 21

31 Generate A Dependency Graph Jackson s rule (non-preemptive EDF) for the sync. processor: The deadline of task τ i is H C i,2 normal execution critical section critical sec. release P 0 : sync P 1 : τ 1 P 2 : τ 2 P 3 : τ 3 P 4 : τ 4 τ 2 τ 5 C i,1 A i,1 C i,2 τ τ τ τ τ τ P 5 : τ 5 P 6 : τ t Jian-Jia Chen 13 / 21

32 Generate A Dependency Graph Jackson s rule (non-preemptive EDF) for the sync. processor: The deadline of task τ i is H C i,2 normal execution critical section critical sec. release P 0 : sync P 1 : τ 1 P 2 : τ 2 P 3 : τ 3 P 4 : τ 4 τ 1 τ 2 τ 5 C i,1 A i,1 C i,2 τ τ τ τ τ τ P 5 : τ 5 P 6 : τ t Jian-Jia Chen 13 / 21

33 Generate A Dependency Graph Jackson s rule (non-preemptive EDF) for the sync. processor: The deadline of task τ i is H C i,2 normal execution critical section critical sec. release P 0 : sync P 1 : τ 1 P 2 : τ 2 P 3 : τ 3 P 4 : τ 4 τ 1 τ 2 τ 5 τ 3 C i,1 A i,1 C i,2 τ τ τ τ τ τ P 5 : τ 5 P 6 : τ t Jian-Jia Chen 13 / 21

34 Generate A Dependency Graph Jackson s rule (non-preemptive EDF) for the sync. processor: The deadline of task τ i is H C i,2 normal execution critical section critical sec. release P 0 : sync P 1 : τ 1 P 2 : τ 2 P 3 : τ 3 P 4 : τ 4 τ 1 τ 2 τ 5 τ 3 τ 4 C i,1 A i,1 C i,2 τ τ τ τ τ τ P 5 : τ 5 P 6 : τ t Jian-Jia Chen 13 / 21

35 Generate A Dependency Graph Jackson s rule (non-preemptive EDF) for the sync. processor: The deadline of task τ i is H C i,2 normal execution critical section critical sec. release P 0 : sync P 1 : τ 1 P 2 : τ 2 P 3 : τ 3 P 4 : τ 4 τ 1 τ 2 τ 5 τ 3 τ 4 τ 6 C i,1 A i,1 C i,2 τ τ τ τ τ τ P 5 : τ 5 P 6 : τ t Jian-Jia Chen 13 / 21

36 Generate A Dependency Graph Jackson s rule (non-preemptive EDF) for the sync. processor: The deadline of task τ i is H C i,2 P 0 : sync τ 2 τ 5 τ 1 τ 3 τ 4 τ t C 2,1 C 5,1 C 1,1 C 3,1 C 4,1 C 6,1 A 2,1 A 5,1 A 1,1 A 3,1 A 4,1 A 6,1 C 2,2 C 5,2 C 1,2 C 3,2 C 4,2 C 6,2 Jian-Jia Chen 13 / 21

37 Generate A Dependency Graph Jackson s rule (non-preemptive EDF) for the sync. processor: The deadline of task τ i is H C i,2 P 0 : sync τ 2 τ 5 τ 1 τ 3 τ 4 τ t C 2,1 C 5,1 C 1,1 C 3,1 C 4,1 C 6,1 A 2,1 A 5,1 A 1,1 A 3,1 A 4,1 A 6,1 C 2,2 C 5,2 C 1,2 C 3,2 C 4,2 C 6,2 Jian-Jia Chen 13 / 21

38 Schedules for the DAG tasks (List Scheduling) normal execution (1st/2nd) τ 1 τ 2 τ 3 τ 4 τ 5 τ 6 Semaphore S2 Mutex-Lock S1 critical section (S1/S2) P 1 : τ 1 τ 1 τ 3 τ 3 τ 5 τ 5 τ 1 τ 3 τ 5 τ 6 P 2 : τ 2 τ 2 τ 4 τ 4 τ 6 τ 6 τ 2 τ t Jian-Jia Chen 14 / 21

39 Schedules for the DAG tasks (List Scheduling) normal execution (1st/2nd) τ 1 τ 2 τ 3 τ 4 τ 5 τ 6 Semaphore S2 Mutex-Lock S1 critical section (S1/S2) P 1 : τ 1 τ 1 τ 3 τ 3 τ 5 τ 5 τ 1 τ 3 τ 5 τ 6 P 2 : τ 2 τ 2 τ 4 τ 4 τ 6 τ 6 τ 2 τ 4 τ t Jian-Jia Chen 14 / 21

40 Makespan Analysis Algorithms used in two steps: first step: α-approximation algorithm for the problem 1 r j L max under the delivery-time model: d j is negative Jian-Jia Chen 15 / 21

41 Makespan Analysis Algorithms used in two steps: first step: α-approximation algorithm for the problem 1 r j L max under the delivery-time model: d j is negative Extended Jackson s rule: α = 2 Potts iterative process: α = 1.5 Hall and Shmoys bidirectional iterative process: α = 4/3 Hall and Shmoys polynomial-time approximation scheme: α = 1 + ɛ for any ɛ > 0 Jian-Jia Chen 15 / 21

42 Makespan Analysis Algorithms used in two steps: first step: α-approximation algorithm for the problem 1 r j L max under the delivery-time model: d j is negative Extended Jackson s rule: α = 2 Potts iterative process: α = 1.5 Hall and Shmoys bidirectional iterative process: α = 4/3 Hall and Shmoys polynomial-time approximation scheme: α = 1 + ɛ for any ɛ > 0 second step: list scheduling (semi-partitioned) to schedule a DAG for the problem P prec C max Jian-Jia Chen 15 / 21

43 Makespan Analysis Algorithms used in two steps: first step: α-approximation algorithm for the problem 1 r j L max under the delivery-time model: d j is negative Extended Jackson s rule: α = 2 Potts iterative process: α = 1.5 Hall and Shmoys bidirectional iterative process: α = 4/3 Hall and Shmoys polynomial-time approximation scheme: α = 1 + ɛ for any ɛ > 0 second step: list scheduling (semi-partitioned) to schedule a DAG for the problem P prec C max Approximation ratio for minimizing the makespan for task synchronization for N tasks on M processors is { 1 + α α M if M < N α if M N Jian-Jia Chen 15 / 21

44 Limitation of DGA The two-step approach in DGA results in non-optimal solutions even if both steps are done optimally regardless of complexity proof based on a concrete example Jian-Jia Chen 16 / 21

45 Limitation of DGA The two-step approach in DGA results in non-optimal solutions even if both steps are done optimally regardless of complexity proof based on a concrete example For minimizing the makespan, the approximation ratio by optimizing both steps optimally is at least 2 2 M + 1 M M under any scheduling paradigm under partitioned or semi-partitioned scheduling Jian-Jia Chen 16 / 21

46 Evaluation Setup Evaluations with M = 4, 8, and 16 processors 1000 task sets, each with 10M tasks RandomFixedSum by Emberson and Davis was modified The number of shared resources: z {4, 8, 16} The length A i,1 is a fraction of the total execution time C i,1 + C i,2 + A i,1 of task τ i, depended on β {5% 50%} Jian-Jia Chen 17 / 21

47 Evaluation Setup Evaluations with M = 4, 8, and 16 processors 1000 task sets, each with 10M tasks RandomFixedSum by Emberson and Davis was modified The number of shared resources: z {4, 8, 16} The length A i,1 is a fraction of the total execution time C i,1 + C i,2 + A i,1 of task τ i, depended on β {5% 50%} Metrics: Makespan performance Schedulability analysis for frame-based periodic tasks Jian-Jia Chen 17 / 21

48 Makespan Performance JKS-SP-NP JKS-P-NP JKS-SP-P JKS-P-P POTTS-SP-NP POTTS-P-NP POTTS-SP-P POTTS-P-P 100 (a) M=8 z=8 β=10%-40% Acceptance Ratio (%) LB is the lower bound (detailed in the paper) D/LB Jian-Jia Chen 18 / 21

49 Makespan Performance JKS-SP-NP JKS-P-NP JKS-SP-P JKS-P-P POTTS-SP-NP POTTS-P-NP POTTS-SP-P POTTS-P-P 100 (a) M=8 z=8 β=10%-40% Acceptance Ratio (%) D is the target deadline D/LB Jian-Jia Chen 18 / 21

50 Makespan Performance JKS-SP-NP JKS-P-NP JKS-SP-P JKS-P-P POTTS-SP-NP POTTS-P-NP POTTS-SP-P POTTS-P-P 100 (a) M=8 z=8 β=10%-40% Acceptance Ratio (%) D/LB: performance gap between the approximation and the optimal solutions D/LB Jian-Jia Chen 18 / 21

51 Makespan Performance JKS-SP-NP JKS-P-NP JKS-SP-P JKS-P-P POTTS-SP-NP POTTS-P-NP POTTS-SP-P POTTS-P-P 100 (a) M=8 z=8 β=10%-40% Acceptance Ratio (%) percentage of task sets meeting their deadlines D/LB Jian-Jia Chen 18 / 21

52 Makespan Performance JKS-SP-NP JKS-P-NP JKS-SP-P JKS-P-P POTTS-SP-NP POTTS-P-NP POTTS-SP-P POTTS-P-P Acceptance Ratio (%) (a) M=8 z=8 β=10%-40% Partition(P) or Semi-Partition (SP) Preemptive(P) or Non-Preemptive (NP) D/LB Jian-Jia Chen 18 / 21

53 Makespan Performance JKS-SP-NP JKS-P-NP JKS-SP-P JKS-P-P POTTS-SP-NP POTTS-P-NP POTTS-SP-P POTTS-P-P 100 (a) M=8 z=8 β=10%-40% Acceptance Ratio (%) D/LB Jian-Jia Chen 18 / 21

54 Makespan Performance JKS-P-NP JKS-SP-P POTTS-P-NP POTTS-SP-P 100 (a) M=8 z=8 β=10%-40% Acceptance Ratio (%) D/LB Jian-Jia Chen 18 / 21

55 Makespan Performance POTTS-SP-NP POTTS-P-NP POTTS-SP-P POTTS-P-P 100 (a) M=8 z=8 β=10%-40% Acceptance Ratio (%) D/LB Jian-Jia Chen 18 / 21

56 Experimental Results: Schedulability Acceptance Ratio (%) 1.0 JKS-SP-P POTTS-SP-P ROP-EDF ROP-FP (a) M=8 z=8 β=5%-10% Utilization (%) / M (b) M=8 z=8 β=40%-50% ROP-FP: ROP under fixed-priority scheduling and release enforcement. ROP-EDF: ROP under EDF and release enforcement POTTS-SP-P: Our approach by applying algorithm Potts for generating G, semi-partitioned list scheduling, and preemptive scheduling for the second non-critical section JKS-SP-P: Our approach by applying algorithm JKS for generating G, semi-partitioned list scheduling, and preemptive scheduling for the second non-critical section Jian-Jia Chen 19 / 21

57 Conclusion Difficulty mainly due to the sequencing of the mutual exclusion of share resources. None of the following tricks helps adding more processors removing periodicity and job recurrence introducing task migration allowing preemption Jian-Jia Chen 20 / 21

58 Conclusion Difficulty mainly due to the sequencing of the mutual exclusion of share resources. None of the following tricks helps adding more processors removing periodicity and job recurrence introducing task migration allowing preemption Performance gap of partitioned and semi-partitioned scheduling mainly due to scheduling the dependency graph Partitioned scheduling P prec, tied Cmax is less understood Jian-Jia Chen 20 / 21

59 Conclusion Difficulty mainly due to the sequencing of the mutual exclusion of share resources. None of the following tricks helps adding more processors removing periodicity and job recurrence introducing task migration allowing preemption Performance gap of partitioned and semi-partitioned scheduling mainly due to scheduling the dependency graph Partitioned scheduling P prec, tied Cmax is less understood A prototype implementation on LITMUSRT for frame-based tasks, detailed in paper Jian-Jia Chen 20 / 21

60 Open Problems Work-conserving is not the best Existing protocols assume work-conserving for critical sections DGA reveals a potential of non-work-conserving protocols Jian-Jia Chen 21 / 21

61 Open Problems Work-conserving is not the best Existing protocols assume work-conserving for critical sections DGA reveals a potential of non-work-conserving protocols Extension to periodic task sets One special case is directly applicable: a mutex lock is only shared among the tasks that have the same period For each of the z mutex locks, a DAG is constructed The z resulting DAGs can be scheduled using any approach for multiprocessor DAG scheduling Other cases remain open Jian-Jia Chen 21 / 21

62 Open Problems Work-conserving is not the best Existing protocols assume work-conserving for critical sections DGA reveals a potential of non-work-conserving protocols Extension to periodic task sets One special case is directly applicable: a mutex lock is only shared among the tasks that have the same period For each of the z mutex locks, a DAG is constructed The z resulting DAGs can be scheduled using any approach for multiprocessor DAG scheduling Other cases remain open Multiple critical sections How to generate the dependency graphs? Does the approach still work well? Jian-Jia Chen 21 / 21

63 Open Problems Work-conserving is not the best Existing protocols assume work-conserving for critical sections DGA reveals a potential of non-work-conserving protocols Extension to periodic task sets One special case is directly applicable: a mutex lock is only shared among the tasks that have the same period For each of the z mutex locks, a DAG is constructed The z resulting DAGs can be scheduled using any approach for multiprocessor DAG scheduling Other cases remain open Multiple critical sections How to generate the dependency graphs? Does the approach still work well? Thank You. Jian-Jia Chen 21 / 21

Multiprocessor Scheduling I: Partitioned Scheduling. LS 12, TU Dortmund

Multiprocessor Scheduling I: Partitioned Scheduling. LS 12, TU Dortmund Multiprocessor Scheduling I: Partitioned Scheduling Prof. Dr. Jian-Jia Chen LS 12, TU Dortmund 22/23, June, 2015 Prof. Dr. Jian-Jia Chen (LS 12, TU Dortmund) 1 / 47 Outline Introduction to Multiprocessor

More information

CIS 4930/6930: Principles of Cyber-Physical Systems

CIS 4930/6930: Principles of Cyber-Physical Systems CIS 4930/6930: Principles of Cyber-Physical Systems Chapter 11 Scheduling Hao Zheng Department of Computer Science and Engineering University of South Florida H. Zheng (CSE USF) CIS 4930/6930: Principles

More information

Task Models and Scheduling

Task Models and Scheduling Task Models and Scheduling Jan Reineke Saarland University June 27 th, 2013 With thanks to Jian-Jia Chen at KIT! Jan Reineke Task Models and Scheduling June 27 th, 2013 1 / 36 Task Models and Scheduling

More information

Schedulability and Optimization Analysis for Non-Preemptive Static Priority Scheduling Based on Task Utilization and Blocking Factors

Schedulability and Optimization Analysis for Non-Preemptive Static Priority Scheduling Based on Task Utilization and Blocking Factors Schedulability and Optimization Analysis for Non-Preemptive Static Priority Scheduling Based on Task Utilization and Blocking Factors Georg von der Brüggen, Jian-Jia Chen, Wen-Hung Huang Department of

More information

Non-Preemptive and Limited Preemptive Scheduling. LS 12, TU Dortmund

Non-Preemptive and Limited Preemptive Scheduling. LS 12, TU Dortmund Non-Preemptive and Limited Preemptive Scheduling LS 12, TU Dortmund 09 May 2017 (LS 12, TU Dortmund) 1 / 31 Outline Non-Preemptive Scheduling A General View Exact Schedulability Test Pessimistic Schedulability

More information

Aperiodic Task Scheduling

Aperiodic Task Scheduling Aperiodic Task Scheduling Jian-Jia Chen (slides are based on Peter Marwedel) TU Dortmund, Informatik 12 Germany Springer, 2010 2017 年 11 月 29 日 These slides use Microsoft clip arts. Microsoft copyright

More information

Real-Time Systems. Lecture #14. Risat Pathan. Department of Computer Science and Engineering Chalmers University of Technology

Real-Time Systems. Lecture #14. Risat Pathan. Department of Computer Science and Engineering Chalmers University of Technology Real-Time Systems Lecture #14 Risat Pathan Department of Computer Science and Engineering Chalmers University of Technology Real-Time Systems Specification Implementation Multiprocessor scheduling -- Partitioned

More information

Scheduling Periodic Real-Time Tasks on Uniprocessor Systems. LS 12, TU Dortmund

Scheduling Periodic Real-Time Tasks on Uniprocessor Systems. LS 12, TU Dortmund Scheduling Periodic Real-Time Tasks on Uniprocessor Systems Prof. Dr. Jian-Jia Chen LS 12, TU Dortmund 08, Dec., 2015 Prof. Dr. Jian-Jia Chen (LS 12, TU Dortmund) 1 / 38 Periodic Control System Pseudo-code

More information

Non-preemptive Fixed Priority Scheduling of Hard Real-Time Periodic Tasks

Non-preemptive Fixed Priority Scheduling of Hard Real-Time Periodic Tasks Non-preemptive Fixed Priority Scheduling of Hard Real-Time Periodic Tasks Moonju Park Ubiquitous Computing Lab., IBM Korea, Seoul, Korea mjupark@kr.ibm.com Abstract. This paper addresses the problem of

More information

Multiprocessor Scheduling II: Global Scheduling. LS 12, TU Dortmund

Multiprocessor Scheduling II: Global Scheduling. LS 12, TU Dortmund Multiprocessor Scheduling II: Global Scheduling Prof. Dr. Jian-Jia Chen LS 12, TU Dortmund 28, June, 2016 Prof. Dr. Jian-Jia Chen (LS 12, TU Dortmund) 1 / 42 Global Scheduling We will only focus on identical

More information

Real-Time Scheduling and Resource Management

Real-Time Scheduling and Resource Management ARTIST2 Summer School 2008 in Europe Autrans (near Grenoble), France September 8-12, 2008 Real-Time Scheduling and Resource Management Lecturer: Giorgio Buttazzo Full Professor Scuola Superiore Sant Anna

More information

Embedded Systems 15. REVIEW: Aperiodic scheduling. C i J i 0 a i s i f i d i

Embedded Systems 15. REVIEW: Aperiodic scheduling. C i J i 0 a i s i f i d i Embedded Systems 15-1 - REVIEW: Aperiodic scheduling C i J i 0 a i s i f i d i Given: A set of non-periodic tasks {J 1,, J n } with arrival times a i, deadlines d i, computation times C i precedence constraints

More information

Exact speedup factors and sub-optimality for non-preemptive scheduling

Exact speedup factors and sub-optimality for non-preemptive scheduling Real-Time Syst (2018) 54:208 246 https://doi.org/10.1007/s11241-017-9294-3 Exact speedup factors and sub-optimality for non-preemptive scheduling Robert I. Davis 1 Abhilash Thekkilakattil 2 Oliver Gettings

More information

Real-time operating systems course. 6 Definitions Non real-time scheduling algorithms Real-time scheduling algorithm

Real-time operating systems course. 6 Definitions Non real-time scheduling algorithms Real-time scheduling algorithm Real-time operating systems course 6 Definitions Non real-time scheduling algorithms Real-time scheduling algorithm Definitions Scheduling Scheduling is the activity of selecting which process/thread should

More information

Optimality Results for Multiprocessor Real-Time Locking

Optimality Results for Multiprocessor Real-Time Locking Optimality Results for Multiprocessor Real-Time Locking Björn B. Brandenburg and James H. Anderson Department of Computer Science, University of North Carolina at Chapel Hill Abstract When locking protocols

More information

On the Soft Real-Time Optimality of Global EDF on Multiprocessors: From Identical to Uniform Heterogeneous

On the Soft Real-Time Optimality of Global EDF on Multiprocessors: From Identical to Uniform Heterogeneous On the Soft Real-Time Optimality of Global EDF on Multiprocessors: From Identical to Uniform Heterogeneous Kecheng Yang and James H. Anderson Department of Computer Science, University of North Carolina

More information

Real-Time Systems. LS 12, TU Dortmund

Real-Time Systems. LS 12, TU Dortmund Real-Time Systems Prof. Dr. Jian-Jia Chen LS 12, TU Dortmund April 24, 2014 Prof. Dr. Jian-Jia Chen (LS 12, TU Dortmund) 1 / 57 Organization Instructor: Jian-Jia Chen, jian-jia.chen@cs.uni-dortmund.de

More information

2.1 Task and Scheduling Model. 2.2 Definitions and Schedulability Guarantees

2.1 Task and Scheduling Model. 2.2 Definitions and Schedulability Guarantees Fixed-Priority Scheduling of Mixed Soft and Hard Real-Time Tasks on Multiprocessors Jian-Jia Chen, Wen-Hung Huang Zheng Dong, Cong Liu TU Dortmund University, Germany The University of Texas at Dallas,

More information

Lecture Note #6: More on Task Scheduling EECS 571 Principles of Real-Time Embedded Systems Kang G. Shin EECS Department University of Michigan

Lecture Note #6: More on Task Scheduling EECS 571 Principles of Real-Time Embedded Systems Kang G. Shin EECS Department University of Michigan Lecture Note #6: More on Task Scheduling EECS 571 Principles of Real-Time Embedded Systems Kang G. Shin EECS Department University of Michigan Note 6-1 Mars Pathfinder Timing Hiccups? When: landed on the

More information

The FMLP + : An Asymptotically Optimal Real-Time Locking Protocol for Suspension-Aware Analysis

The FMLP + : An Asymptotically Optimal Real-Time Locking Protocol for Suspension-Aware Analysis The FMLP + : An Asymptotically Optimal Real-Time Locking Protocol for Suspension-Aware Analysis Björn B. Brandenburg Max Planck Institute for Software Systems (MPI-SWS) Abstract Multiprocessor real-time

More information

arxiv: v1 [cs.os] 6 Jun 2013

arxiv: v1 [cs.os] 6 Jun 2013 Partitioned scheduling of multimode multiprocessor real-time systems with temporal isolation Joël Goossens Pascal Richard arxiv:1306.1316v1 [cs.os] 6 Jun 2013 Abstract We consider the partitioned scheduling

More information

A Note on Modeling Self-Suspending Time as Blocking Time in Real-Time Systems

A Note on Modeling Self-Suspending Time as Blocking Time in Real-Time Systems A Note on Modeling Self-Suspending Time as Blocking Time in Real-Time Systems Jian-Jia Chen 1, Wen-Hung Huang 1, and Geoffrey Nelissen 2 1 TU Dortmund University, Germany Email: jian-jia.chen@tu-dortmund.de,

More information

arxiv: v1 [cs.os] 28 Feb 2018

arxiv: v1 [cs.os] 28 Feb 2018 Push Forward: Global Fixed-Priority Scheduling of Arbitrary-Deadline Sporadic Tas Systems Jian-Jia Chen 1, Georg von der Brüggen 2, and Nilas Ueter 3 1 TU Dortmund University, Germany jian-jian.chen@tu-dortmund.de

More information

Computers and Intractability. The Bandersnatch problem. The Bandersnatch problem. The Bandersnatch problem. A Guide to the Theory of NP-Completeness

Computers and Intractability. The Bandersnatch problem. The Bandersnatch problem. The Bandersnatch problem. A Guide to the Theory of NP-Completeness Computers and Intractability A Guide to the Theory of NP-Completeness The Bible of complexity theory Background: Find a good method for determining whether or not any given set of specifications for a

More information

APTAS for Bin Packing

APTAS for Bin Packing APTAS for Bin Packing Bin Packing has an asymptotic PTAS (APTAS) [de la Vega and Leuker, 1980] For every fixed ε > 0 algorithm outputs a solution of size (1+ε)OPT + 1 in time polynomial in n APTAS for

More information

Computers and Intractability

Computers and Intractability Computers and Intractability A Guide to the Theory of NP-Completeness The Bible of complexity theory M. R. Garey and D. S. Johnson W. H. Freeman and Company, 1979 The Bandersnatch problem Background: Find

More information

Many suspensions, many problems: a review of self-suspending tasks in real-time systems

Many suspensions, many problems: a review of self-suspending tasks in real-time systems Real-Time Systems (2019) 55:144 207 https://doi.org/10.1007/s11241-018-9316-9 Many suspensions, many problems: a review of self-suspending tasks in real-time systems Jian-Jia Chen 1 Geoffrey Nelissen 2

More information

Real Time Operating Systems

Real Time Operating Systems Real Time Operating ystems Luca Abeni luca.abeni@unitn.it Interacting Tasks Until now, only independent tasks... A job never blocks or suspends A task only blocks on job termination In real world, jobs

More information

CycleTandem: Energy-Saving Scheduling for Real-Time Systems with Hardware Accelerators

CycleTandem: Energy-Saving Scheduling for Real-Time Systems with Hardware Accelerators CycleTandem: Energy-Saving Scheduling for Real-Time Systems with Hardware Accelerators Sandeep D souza and Ragunathan (Raj) Rajkumar Carnegie Mellon University High (Energy) Cost of Accelerators Modern-day

More information

Non-Work-Conserving Non-Preemptive Scheduling: Motivations, Challenges, and Potential Solutions

Non-Work-Conserving Non-Preemptive Scheduling: Motivations, Challenges, and Potential Solutions Non-Work-Conserving Non-Preemptive Scheduling: Motivations, Challenges, and Potential Solutions Mitra Nasri Chair of Real-time Systems, Technische Universität Kaiserslautern, Germany nasri@eit.uni-kl.de

More information

Optimal Utilization Bounds for the Fixed-priority Scheduling of Periodic Task Systems on Identical Multiprocessors. Sanjoy K.

Optimal Utilization Bounds for the Fixed-priority Scheduling of Periodic Task Systems on Identical Multiprocessors. Sanjoy K. Optimal Utilization Bounds for the Fixed-priority Scheduling of Periodic Task Systems on Identical Multiprocessors Sanjoy K. Baruah Abstract In fixed-priority scheduling the priority of a job, once assigned,

More information

Real-Time Systems. Event-Driven Scheduling

Real-Time Systems. Event-Driven Scheduling Real-Time Systems Event-Driven Scheduling Marcus Völp, Hermann Härtig WS 2013/14 Outline mostly following Jane Liu, Real-Time Systems Principles Scheduling EDF and LST as dynamic scheduling methods Fixed

More information

The Concurrent Consideration of Uncertainty in WCETs and Processor Speeds in Mixed Criticality Systems

The Concurrent Consideration of Uncertainty in WCETs and Processor Speeds in Mixed Criticality Systems The Concurrent Consideration of Uncertainty in WCETs and Processor Speeds in Mixed Criticality Systems Zhishan Guo and Sanjoy Baruah Department of Computer Science University of North Carolina at Chapel

More information

Reservation-Based Federated Scheduling for Parallel Real-Time Tasks

Reservation-Based Federated Scheduling for Parallel Real-Time Tasks Reservation-Based Federated Scheduling for Parallel Real-Time Tasks Niklas Ueter 1, Georg von der Brüggen 1, Jian-Jia Chen 1, Jing Li 2, and Kunal Agrawal 3 1 TU Dortmund University, Germany 2 New Jersey

More information

Embedded Systems 14. Overview of embedded systems design

Embedded Systems 14. Overview of embedded systems design Embedded Systems 14-1 - Overview of embedded systems design - 2-1 Point of departure: Scheduling general IT systems In general IT systems, not much is known about the computational processes a priori The

More information

Clock-driven scheduling

Clock-driven scheduling Clock-driven scheduling Also known as static or off-line scheduling Michal Sojka Czech Technical University in Prague, Faculty of Electrical Engineering, Department of Control Engineering November 8, 2017

More information

Partition is reducible to P2 C max. c. P2 Pj = 1, prec Cmax is solvable in polynomial time. P Pj = 1, prec Cmax is NP-hard

Partition is reducible to P2 C max. c. P2 Pj = 1, prec Cmax is solvable in polynomial time. P Pj = 1, prec Cmax is NP-hard I. Minimizing Cmax (Nonpreemptive) a. P2 C max is NP-hard. Partition is reducible to P2 C max b. P Pj = 1, intree Cmax P Pj = 1, outtree Cmax are both solvable in polynomial time. c. P2 Pj = 1, prec Cmax

More information

Embedded Systems - FS 2018

Embedded Systems - FS 2018 Institut für Technische Informatik und Kommunikationsnetze Prof. L. Thiele Embedded Systems - FS 2018 Sample solution to Exercise 3 Discussion Date: 11.4.2018 Aperiodic Scheduling Task 1: Earliest Deadline

More information

Resource Sharing in an Enhanced Rate-Based Execution Model

Resource Sharing in an Enhanced Rate-Based Execution Model In: Proceedings of the 15th Euromicro Conference on Real-Time Systems, Porto, Portugal, July 2003, pp. 131-140. Resource Sharing in an Enhanced Rate-Based Execution Model Xin Liu Steve Goddard Department

More information

EDF Scheduling. Giuseppe Lipari May 11, Scuola Superiore Sant Anna Pisa

EDF Scheduling. Giuseppe Lipari   May 11, Scuola Superiore Sant Anna Pisa EDF Scheduling Giuseppe Lipari http://feanor.sssup.it/~lipari Scuola Superiore Sant Anna Pisa May 11, 2008 Outline 1 Dynamic priority 2 Basic analysis 3 FP vs EDF 4 Processor demand bound analysis Generalization

More information

Real Time Operating Systems

Real Time Operating Systems Real Time Operating ystems hared Resources Luca Abeni Credits: Luigi Palopoli, Giuseppe Lipari, and Marco Di Natale cuola uperiore ant Anna Pisa -Italy Real Time Operating ystems p. 1 Interacting Tasks

More information

Improved Analysis and Evaluation of Real-Time Semaphore Protocols for P-FP Scheduling (extended version)

Improved Analysis and Evaluation of Real-Time Semaphore Protocols for P-FP Scheduling (extended version) Improved Analysis and Evaluation of Real-Time Semaphore Protocols for P-FP Scheduling (extended version) Björn B. Brandenburg MPI-SWS Technical Report MPI-SWS-203-00 January 203 Abstract Several suspension-based

More information

Bounding the Maximum Length of Non-Preemptive Regions Under Fixed Priority Scheduling

Bounding the Maximum Length of Non-Preemptive Regions Under Fixed Priority Scheduling Bounding the Maximum Length of Non-Preemptive Regions Under Fixed Priority Scheduling Gang Yao, Giorgio Buttazzo and Marko Bertogna Scuola Superiore Sant Anna, Pisa, Italy {g.yao, g.buttazzo, m.bertogna}@sssup.it

More information

P C max. NP-complete from partition. Example j p j What is the makespan on 2 machines? 3 machines? 4 machines?

P C max. NP-complete from partition. Example j p j What is the makespan on 2 machines? 3 machines? 4 machines? Multiple Machines Model Multiple Available resources people time slots queues networks of computers Now concerned with both allocation to a machine and ordering on that machine. P C max NP-complete from

More information

Shared resources. Sistemi in tempo reale. Giuseppe Lipari. Scuola Superiore Sant Anna Pisa -Italy

Shared resources. Sistemi in tempo reale. Giuseppe Lipari. Scuola Superiore Sant Anna Pisa -Italy istemi in tempo reale hared resources Giuseppe Lipari cuola uperiore ant Anna Pisa -Italy inher.tex istemi in tempo reale Giuseppe Lipari 7/6/2005 12:35 p. 1/21 Interacting tasks Until now, we have considered

More information

On the Soft Real-Time Optimality of Global EDF on Uniform Multiprocessors

On the Soft Real-Time Optimality of Global EDF on Uniform Multiprocessors On the Soft Real-Time Optimality of Global EDF on Uniform Multiprocessors Kecheng Yang and James H Anderson Department of Computer Science, University of North Carolina at Chapel Hill Abstract It has long

More information

Lightweight Real-Time Synchronization under P-EDF on Symmetric and Asymmetric Multiprocessors

Lightweight Real-Time Synchronization under P-EDF on Symmetric and Asymmetric Multiprocessors Consistent * Complete * Well Documented * Easy to Reuse * Technical Report MPI-SWS-216-3 May 216 Lightweight Real-Time Synchronization under P-EDF on Symmetric and Asymmetric Multiprocessors (extended

More information

Uniprocessor real-time scheduling

Uniprocessor real-time scheduling Uniprocessor real-time scheduling Julien Forget Université Lille 1 Ecole d Été Temps Réel - 30 Août 2017 Julien Forget (Université Lille 1) Uniprocessor real-time scheduling ETR 2017 1 / 67 Overview At

More information

Schedulability of Periodic and Sporadic Task Sets on Uniprocessor Systems

Schedulability of Periodic and Sporadic Task Sets on Uniprocessor Systems Schedulability of Periodic and Sporadic Task Sets on Uniprocessor Systems Jan Reineke Saarland University July 4, 2013 With thanks to Jian-Jia Chen! Jan Reineke July 4, 2013 1 / 58 Task Models and Scheduling

More information

Global Real-Time Semaphore Protocols: A Survey, Unified Analysis, and Comparison

Global Real-Time Semaphore Protocols: A Survey, Unified Analysis, and Comparison Global Real-Time Semaphore Protocols: A Survey, Unified Analysis, and Comparison Maolin Yang Alexander Wieder Björn B. Brandenburg Max Planck Institute for Software Systems (MPI-SWS) University of Electronic

More information

Tardiness Bounds under Global EDF Scheduling on a Multiprocessor

Tardiness Bounds under Global EDF Scheduling on a Multiprocessor Tardiness ounds under Global EDF Scheduling on a Multiprocessor UmaMaheswari C. Devi and James H. Anderson Department of Computer Science The University of North Carolina at Chapel Hill Abstract This paper

More information

Load Regulating Algorithm for Static-Priority Task Scheduling on Multiprocessors

Load Regulating Algorithm for Static-Priority Task Scheduling on Multiprocessors Technical Report No. 2009-7 Load Regulating Algorithm for Static-Priority Task Scheduling on Multiprocessors RISAT MAHMUD PATHAN JAN JONSSON Department of Computer Science and Engineering CHALMERS UNIVERSITY

More information

Paper Presentation. Amo Guangmo Tong. University of Taxes at Dallas February 11, 2014

Paper Presentation. Amo Guangmo Tong. University of Taxes at Dallas February 11, 2014 Paper Presentation Amo Guangmo Tong University of Taxes at Dallas gxt140030@utdallas.edu February 11, 2014 Amo Guangmo Tong (UTD) February 11, 2014 1 / 26 Overview 1 Techniques for Multiprocessor Global

More information

Segment-Fixed Priority Scheduling for Self-Suspending Real-Time Tasks

Segment-Fixed Priority Scheduling for Self-Suspending Real-Time Tasks Segment-Fixed Priority Scheduling for Self-Suspending Real-Time Tasks Junsung Kim, Björn Andersson, Dionisio de Niz, and Raj Rajkumar Carnegie Mellon University 2/31 Motion Planning on Self-driving Parallel

More information

Lightweight Real-Time Synchronization under P-EDF on Symmetric and Asymmetric Multiprocessors

Lightweight Real-Time Synchronization under P-EDF on Symmetric and Asymmetric Multiprocessors Consistent * Complete * Well Documented * Easy to Reuse * Lightweight Real-Time Synchronization under P-EDF on Symmetric and Asymmetric Multiprocessors Artifact * AE * Evaluated * ECRTS * Alessandro Biondi

More information

Real-Time Systems. Lecture 4. Scheduling basics. Task scheduling - basic taxonomy Basic scheduling techniques Static cyclic scheduling

Real-Time Systems. Lecture 4. Scheduling basics. Task scheduling - basic taxonomy Basic scheduling techniques Static cyclic scheduling Real-Time Systems Lecture 4 Scheduling basics Task scheduling - basic taxonomy Basic scheduling techniques Static cyclic scheduling 1 Last lecture (3) Real-time kernels The task states States and transition

More information

Mixed Criticality in Safety-Critical Systems. LS 12, TU Dortmund

Mixed Criticality in Safety-Critical Systems. LS 12, TU Dortmund Mixed Criticality in Safety-Critical Systems Prof. Dr. Jian-Jia Chen LS 12, TU Dortmund 18, July, 2016 Prof. Dr. Jian-Jia Chen (LS 12, TU Dortmund) 1 / 25 Motivation today s embedded systems use complex

More information

EDF Scheduling. Giuseppe Lipari CRIStAL - Université de Lille 1. October 4, 2015

EDF Scheduling. Giuseppe Lipari  CRIStAL - Université de Lille 1. October 4, 2015 EDF Scheduling Giuseppe Lipari http://www.lifl.fr/~lipari CRIStAL - Université de Lille 1 October 4, 2015 G. Lipari (CRIStAL) Earliest Deadline Scheduling October 4, 2015 1 / 61 Earliest Deadline First

More information

An Optimal k-exclusion Real-Time Locking Protocol Motivated by Multi-GPU Systems

An Optimal k-exclusion Real-Time Locking Protocol Motivated by Multi-GPU Systems An Optimal k-exclusion Real-Time Locking Protocol Motivated by Multi-GPU Systems Glenn A. Elliott and James H. Anderson Department of Computer Science, University of North Carolina at Chapel Hill Abstract

More information

Energy-Efficient Real-Time Task Scheduling in Multiprocessor DVS Systems

Energy-Efficient Real-Time Task Scheduling in Multiprocessor DVS Systems Energy-Efficient Real-Time Task Scheduling in Multiprocessor DVS Systems Jian-Jia Chen *, Chuan Yue Yang, Tei-Wei Kuo, and Chi-Sheng Shih Embedded Systems and Wireless Networking Lab. Department of Computer

More information

Task assignment in heterogeneous multiprocessor platforms

Task assignment in heterogeneous multiprocessor platforms Task assignment in heterogeneous multiprocessor platforms Sanjoy K. Baruah Shelby Funk The University of North Carolina Abstract In the partitioned approach to scheduling periodic tasks upon multiprocessors,

More information

Utilization Bounds on Allocating Rate-Monotonic Scheduled Multi-Mode Tasks on Multiprocessor Systems

Utilization Bounds on Allocating Rate-Monotonic Scheduled Multi-Mode Tasks on Multiprocessor Systems Utilization Bounds on Allocating Rate-onotonic Scheduled ulti-ode Tasks on ultiprocessor Systems Wen-Hung Huang Department of Computer Science TU Dortmund University, Germany wen-hung.huang@tu-dortmund.de

More information

Approximation Algorithms for scheduling

Approximation Algorithms for scheduling Approximation Algorithms for scheduling Ahmed Abu Safia I.D.:119936343, McGill University, 2004 (COMP 760) Approximation Algorithms for scheduling Leslie A. Hall The first Chapter of the book entitled

More information

Lecture 13. Real-Time Scheduling. Daniel Kästner AbsInt GmbH 2013

Lecture 13. Real-Time Scheduling. Daniel Kästner AbsInt GmbH 2013 Lecture 3 Real-Time Scheduling Daniel Kästner AbsInt GmbH 203 Model-based Software Development 2 SCADE Suite Application Model in SCADE (data flow + SSM) System Model (tasks, interrupts, buses, ) SymTA/S

More information

Multiprocessor Real-Time Scheduling Considering Concurrency and Urgency

Multiprocessor Real-Time Scheduling Considering Concurrency and Urgency Multiprocessor Real-Time Scheduling Considering Concurrency Urgency Jinkyu Lee, Arvind Easwaran, Insik Shin Insup Lee Dept. of Computer Science, KAIST, South Korea IPP-HURRAY! Research Group, Polytechnic

More information

Scheduling Lecture 1: Scheduling on One Machine

Scheduling Lecture 1: Scheduling on One Machine Scheduling Lecture 1: Scheduling on One Machine Loris Marchal 1 Generalities 1.1 Definition of scheduling allocation of limited resources to activities over time activities: tasks in computer environment,

More information

Tardiness Bounds under Global EDF Scheduling on a. Multiprocessor

Tardiness Bounds under Global EDF Scheduling on a. Multiprocessor Tardiness Bounds under Global EDF Scheduling on a Multiprocessor UmaMaheswari C. Devi and James H. Anderson Department of Computer Science The University of North Carolina at Chapel Hill Abstract We consider

More information

Paper Presentation. Amo Guangmo Tong. University of Taxes at Dallas January 24, 2014

Paper Presentation. Amo Guangmo Tong. University of Taxes at Dallas January 24, 2014 Paper Presentation Amo Guangmo Tong University of Taxes at Dallas gxt140030@utdallas.edu January 24, 2014 Amo Guangmo Tong (UTD) January 24, 2014 1 / 30 Overview 1 Tardiness Bounds under Global EDF Scheduling

More information

Real-time scheduling of sporadic task systems when the number of distinct task types is small

Real-time scheduling of sporadic task systems when the number of distinct task types is small Real-time scheduling of sporadic task systems when the number of distinct task types is small Sanjoy Baruah Nathan Fisher Abstract In some real-time application systems, there are only a few distinct kinds

More information

EDF and RM Multiprocessor Scheduling Algorithms: Survey and Performance Evaluation

EDF and RM Multiprocessor Scheduling Algorithms: Survey and Performance Evaluation 1 EDF and RM Multiprocessor Scheduling Algorithms: Survey and Performance Evaluation Omar U. Pereira Zapata, Pedro Mejía Alvarez CINVESTAV-IPN, Sección de Computación Av. I.P.N. 258, Zacatenco, México,

More information

An Optimal Semi-Partitioned Scheduler for Uniform Heterogeneous Multiprocessors

An Optimal Semi-Partitioned Scheduler for Uniform Heterogeneous Multiprocessors An Optimal Semi-Partitioned Scheduler for Uniform Heterogeneous Multiprocessors Kecheng Yang and James H. Anderson Department of Computer Science, University of North Carolina at Chapel Hill Abstract A

More information

An Improved Schedulability Test for Uniprocessor Periodic Task Systems

An Improved Schedulability Test for Uniprocessor Periodic Task Systems An Improved Schedulability Test for Uniprocessor Periodic Task Systems UmaMaheswari C. Devi Department of Computer Science, The University of North Carolina, Chapel Hill, NC Abstract We present a sufficient

More information

PASS: Priority Assignment of Real-Time Tasks with Dynamic Suspending Behavior under Fixed-Priority Scheduling

PASS: Priority Assignment of Real-Time Tasks with Dynamic Suspending Behavior under Fixed-Priority Scheduling T E C H N I C A L R E P O RT S I N C O M P U T E R S C I E N C E Technische Universität Dortmund PASS: Priority Assignment of Real-Time Tasks with Dynamic Suspending Behavior under Fixed-Priority Scheduling

More information

Supporting Read/Write Applications in Embedded Real-time Systems via Suspension-aware Analysis

Supporting Read/Write Applications in Embedded Real-time Systems via Suspension-aware Analysis Supporting Read/Write Applications in Embedded Real-time Systems via Suspension-aware Analysis Guangmo Tong and Cong Liu Department of Computer Science University of Texas at Dallas ABSTRACT In many embedded

More information

Multi-core Real-Time Scheduling for Generalized Parallel Task Models

Multi-core Real-Time Scheduling for Generalized Parallel Task Models Washington University in St. Louis Washington University Open Scholarship All Computer Science and Engineering Research Computer Science and Engineering Report Number: WUCSE-011-45 011 Multi-core Real-Time

More information

Semi-Partitioned Fixed-Priority Scheduling on Multiprocessors

Semi-Partitioned Fixed-Priority Scheduling on Multiprocessors Semi-Partitioned Fixed-Priority Scheduling on Multiprocessors Shinpei Kato and Nobuyuki Yamasaki Department of Information and Computer Science Keio University, Yokohama, Japan {shinpei,yamasaki}@ny.ics.keio.ac.jp

More information

EECS 571 Principles of Real-Time Embedded Systems. Lecture Note #7: More on Uniprocessor Scheduling

EECS 571 Principles of Real-Time Embedded Systems. Lecture Note #7: More on Uniprocessor Scheduling EECS 571 Principles of Real-Time Embedded Systems Lecture Note #7: More on Uniprocessor Scheduling Kang G. Shin EECS Department University of Michigan Precedence and Exclusion Constraints Thus far, we

More information

An Improved Schedulability Test for Uniprocessor. Periodic Task Systems

An Improved Schedulability Test for Uniprocessor. Periodic Task Systems An Improved Schedulability Test for Uniprocessor Periodic Task Systems UmaMaheswari C. Devi Department of Computer Science, University of North Carolina, Chapel Hill, NC 27599-375 December 2002 Abstract

More information

Partitioned scheduling of sporadic task systems: an ILP-based approach

Partitioned scheduling of sporadic task systems: an ILP-based approach Partitioned scheduling of sporadic task systems: an ILP-based approach Sanjoy K. Baruah The University of North Carolina Chapel Hill, NC. USA Enrico Bini Scuola Superiore Santa Anna Pisa, Italy. Abstract

More information

Scheduling Lecture 1: Scheduling on One Machine

Scheduling Lecture 1: Scheduling on One Machine Scheduling Lecture 1: Scheduling on One Machine Loris Marchal October 16, 2012 1 Generalities 1.1 Definition of scheduling allocation of limited resources to activities over time activities: tasks in computer

More information

Supplement of Improvement of Real-Time Multi-Core Schedulability with Forced Non- Preemption

Supplement of Improvement of Real-Time Multi-Core Schedulability with Forced Non- Preemption 12 Supplement of Improvement of Real-Time Multi-Core Schedulability with Forced Non- Preemption Jinkyu Lee, Department of Computer Science and Engineering, Sungkyunkwan University, South Korea. Kang G.

More information

Resource Sharing Protocols for Real-Time Task Graph Systems

Resource Sharing Protocols for Real-Time Task Graph Systems Resource Sharing Protocols for Real-Time Task Graph Systems Nan Guan, Pontus Ekberg, Martin Stigge, Wang Yi Uppsala University, Sweden Northeastern University, China Abstract Previous works on real-time

More information

Networked Embedded Systems WS 2016/17

Networked Embedded Systems WS 2016/17 Networked Embedded Systems WS 2016/17 Lecture 2: Real-time Scheduling Marco Zimmerling Goal of Today s Lecture Introduction to scheduling of compute tasks on a single processor Tasks need to finish before

More information

Metode şi Algoritmi de Planificare (MAP) Curs 2 Introducere în problematica planificării

Metode şi Algoritmi de Planificare (MAP) Curs 2 Introducere în problematica planificării Metode şi Algoritmi de Planificare (MAP) 2009-2010 Curs 2 Introducere în problematica planificării 20.10.2009 Metode si Algoritmi de Planificare Curs 2 1 Introduction to scheduling Scheduling problem definition

More information

On Machine Dependency in Shop Scheduling

On Machine Dependency in Shop Scheduling On Machine Dependency in Shop Scheduling Evgeny Shchepin Nodari Vakhania Abstract One of the main restrictions in scheduling problems are the machine (resource) restrictions: each machine can perform at

More information

Controlling Preemption for Better Schedulability in Multi-Core Systems

Controlling Preemption for Better Schedulability in Multi-Core Systems 2012 IEEE 33rd Real-Time Systems Symposium Controlling Preemption for Better Schedulability in Multi-Core Systems Jinkyu Lee and Kang G. Shin Dept. of Electrical Engineering and Computer Science, The University

More information

Response Time Analysis for Tasks Scheduled under EDF within Fixed Priorities

Response Time Analysis for Tasks Scheduled under EDF within Fixed Priorities Response Time Analysis for Tasks Scheduled under EDF within Fixed Priorities M. González Harbour and J.C. Palencia Departamento de Electrónica y Computadores Universidad de Cantabria 39-Santander, SPAIN

More information

arxiv: v3 [cs.ds] 23 Sep 2016

arxiv: v3 [cs.ds] 23 Sep 2016 Evaluate and Compare Two Utilization-Based Schedulability-Test Framewors for Real-Time Systems arxiv:1505.02155v3 [cs.ds] 23 Sep 2016 Jian-Jia Chen and Wen-Hung Huang Department of Informatics TU Dortmund

More information

Lecture 6. Real-Time Systems. Dynamic Priority Scheduling

Lecture 6. Real-Time Systems. Dynamic Priority Scheduling Real-Time Systems Lecture 6 Dynamic Priority Scheduling Online scheduling with dynamic priorities: Earliest Deadline First scheduling CPU utilization bound Optimality and comparison with RM: Schedulability

More information

TDDI04, K. Arvidsson, IDA, Linköpings universitet CPU Scheduling. Overview: CPU Scheduling. [SGG7] Chapter 5. Basic Concepts.

TDDI04, K. Arvidsson, IDA, Linköpings universitet CPU Scheduling. Overview: CPU Scheduling. [SGG7] Chapter 5. Basic Concepts. TDDI4 Concurrent Programming, Operating Systems, and Real-time Operating Systems CPU Scheduling Overview: CPU Scheduling CPU bursts and I/O bursts Scheduling Criteria Scheduling Algorithms Multiprocessor

More information

Module 5: CPU Scheduling

Module 5: CPU Scheduling Module 5: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation 5.1 Basic Concepts Maximum CPU utilization obtained

More information

Rate Monotonic Analysis (RMA)

Rate Monotonic Analysis (RMA) Rate Monotonic Analysis (RMA) ktw@csie.ntu.edu.tw (Real-Time and Embedded System Laboratory) Major References: An Introduction to Rate Monotonic Analysis Tutorial Notes SEI MU* Distributed Real-Time System

More information

Design and Analysis of Time-Critical Systems Response-time Analysis with a Focus on Shared Resources

Design and Analysis of Time-Critical Systems Response-time Analysis with a Focus on Shared Resources Design and Analysis of Time-Critical Systems Response-time Analysis with a Focus on Shared Resources Jan Reineke @ saarland university ACACES Summer School 2017 Fiuggi, Italy computer science Fixed-Priority

More information

doktors der ingenieurwissenschaften

doktors der ingenieurwissenschaften S C H E D U L I N G A L G O R I T H M S A N D T I M I N G A N A LY S I S F O R H A R D R E A L - T I M E S Y S T E M S Dissertation zur Erlangung des Grades eines doktors der ingenieurwissenschaften der

More information

TDDB68 Concurrent programming and operating systems. Lecture: CPU Scheduling II

TDDB68 Concurrent programming and operating systems. Lecture: CPU Scheduling II TDDB68 Concurrent programming and operating systems Lecture: CPU Scheduling II Mikael Asplund, Senior Lecturer Real-time Systems Laboratory Department of Computer and Information Science Copyright Notice:

More information

Chapter 6: CPU Scheduling

Chapter 6: CPU Scheduling Chapter 6: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation 6.1 Basic Concepts Maximum CPU utilization obtained

More information

Real-Time and Embedded Systems (M) Lecture 5

Real-Time and Embedded Systems (M) Lecture 5 Priority-driven Scheduling of Periodic Tasks (1) Real-Time and Embedded Systems (M) Lecture 5 Lecture Outline Assumptions Fixed-priority algorithms Rate monotonic Deadline monotonic Dynamic-priority algorithms

More information

There are three priority driven approaches that we will look at

There are three priority driven approaches that we will look at Priority Driven Approaches There are three priority driven approaches that we will look at Earliest-Deadline-First (EDF) Least-Slack-Time-first (LST) Latest-Release-Time-first (LRT) 1 EDF Earliest deadline

More information

Embedded Systems Development

Embedded Systems Development Embedded Systems Development Lecture 3 Real-Time Scheduling Dr. Daniel Kästner AbsInt Angewandte Informatik GmbH kaestner@absint.com Model-based Software Development Generator Lustre programs Esterel programs

More information

Schedulability Analysis of the Linux Push and Pull Scheduler with Arbitrary Processor Affinities

Schedulability Analysis of the Linux Push and Pull Scheduler with Arbitrary Processor Affinities Revision 1 July 23, 215 Schedulability Analysis of the Linux Push and Pull Scheduler with Arbitrary Processor Affinities Arpan Gujarati Felipe Cerqueira Björn B. Brandenburg Max Planck Institute for Software

More information