Risat Pathan Chalmers University of Technology, Sweden

Slides:



Advertisements
Similar presentations
Real-Time Competitive Environments: Truthful Mechanisms for Allocating a Single Processor to Sporadic Tasks Anwar Mohammadi, Nathan Fisher, and Daniel.
Advertisements

Real-Time Mutli-core Scheduling Moris Behnam. Introduction Single processor scheduling – E.g., t 1 (P=10,C=5), t 2 (10, 6) – U= >1 – Use a faster.
ECE Longest Path dual 1 ECE 665 Spring 2005 ECE 665 Spring 2005 Computer Algorithms with Applications to VLSI CAD Linear Programming Duality – Longest.
Scheduling in Distributed Systems Gurmeet Singh CS 599 Lecture.
RUN: Optimal Multiprocessor Real-Time Scheduling via Reduction to Uniprocessor Paul Regnier † George Lima † Ernesto Massa † Greg Levin ‡ Scott Brandt ‡
Martha Garcia.  Goals of Static Process Scheduling  Types of Static Process Scheduling  Future Research  References.
Distributed Process Scheduling Summery Distributed Process Scheduling Summery BY:-Yonatan Negash.
Soft Real-Time Semi-Partitioned Scheduling with Restricted Migrations on Uniform Heterogeneous Multiprocessors Kecheng Yang James H. Anderson Dept. of.
Grid Load Balancing Scheduling Algorithm Based on Statistics Thinking The 9th International Conference for Young Computer Scientists Bin Lu, Hongbin Zhang.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
1 of 14 1 / 18 An Approach to Incremental Design of Distributed Embedded Systems Paul Pop, Petru Eles, Traian Pop, Zebo Peng Department of Computer and.
End-to-End Delay Analysis for Fixed Priority Scheduling in WirelessHART Networks Abusayeed Saifullah, You Xu, Chenyang Lu, Yixin Chen.
Fair Scheduling of Real-Time Tasks on Multiprocessors Uday Prabhala.
Trust-based Multi-Objective Optimization for Node-to-Task Assignment in Coalition Networks 1 Jin-Hee Cho, Ing-Ray Chen, Yating Wang, and Kevin S. Chan.
ROBUST RESOURCE ALLOCATION OF DAGS IN A HETEROGENEOUS MULTI-CORE SYSTEM Luis Diego Briceño, Jay Smith, H. J. Siegel, Anthony A. Maciejewski, Paul Maxwell,
Practical Schedulability Analysis for Generalized Sporadic Tasks in Distributed Real-Time Systems Yuanfang Zhang 1, Donald K. Krecker 2, Christopher Gill.
GRID’2012 Dubna July 19, 2012 Dependable Job-flow Dispatching and Scheduling in Virtual Organizations of Distributed Computing Environments Victor Toporkov.
Euro-Par, A Resource Allocation Approach for Supporting Time-Critical Applications in Grid Environments Qian Zhu and Gagan Agrawal Department of.
An Efficient Algorithm for Scheduling Instructions with Deadline Constraints on ILP Machines Wu Hui Joxan Jaffar School of Computing National University.
The Packing Server for Real-time Scheduling of MapReduce Workflows Shen Li, Shaohan Hu, Tarek Abdelzaher University of Illinois at Urbana Champaign 1.
Static Process Scheduling Section 5.2 CSc 8320 Alex De Ruiter
Resource Mapping and Scheduling for Heterogeneous Network Processor Systems Liang Yang, Tushar Gohad, Pavel Ghosh, Devesh Sinha, Arunabha Sen and Andrea.
Hard Real-Time Scheduling for Low- Energy Using Stochastic Data and DVS Processors Flavius Gruian Department of Computer Science, Lund University Box 118.
5 May CmpE 516 Fault Tolerant Scheduling in Multiprocessor Systems Betül Demiröz.
Real-Time Support for Mobile Robotics K. Ramamritham (+ Li Huan, Prashant Shenoy, Rod Grupen)
Mixed Criticality Systems: Beyond Transient Faults Abhilash Thekkilakattil, Alan Burns, Radu Dobrin and Sasikumar Punnekkat.
Static Process Scheduling
1 Semi-partitioned Model on Dual-core Mixed Criticality System Hao Xu.
Introduction to Real-Time Systems
Task Mapping and Partition Allocation for Mixed-Criticality Real-Time Systems Domițian Tămaș-Selicean and Paul Pop Technical University of Denmark.
A stochastic scheduling algorithm for precedence constrained tasks on Grid Future Generation Computer Systems (2011) Xiaoyong Tang, Kenli Li, Guiping Liao,
Zeta: Scheduling Interactive Services with Partial Execution Yuxiong He, Sameh Elnikety, James Larus, Chenyu Yan Microsoft Research and Microsoft Bing.
Concurrency and Performance Based on slides by Henri Casanova.
Genetic algorithms for task scheduling problem J. Parallel Distrib. Comput. (2010) Fatma A. Omara, Mona M. Arafa 2016/3/111 Shang-Chi Wu.
Architecture for Resource Allocation Services Supporting Interactive Remote Desktop Sessions in Utility Grids Vanish Talwar, HP Labs Bikash Agarwalla,
Pradeep Konduri Static Process Scheduling:  Proceedance process model  Communication system model  Application  Dicussion.
Real-Time Operating Systems RTOS For Embedded systems.
Optimization of Time-Partitions for Mixed-Criticality Real-Time Distributed Embedded Systems Domițian Tămaș-Selicean and Paul Pop Technical University.
Embedded System Scheduling
vCAT: Dynamic Cache Management using CAT Virtualization
CPU SCHEDULING.
Dan C. Marinescu Office: HEC 439 B. Office hours: M, Wd 3 – 4:30 PM.
Presented by Tae-Seok Kim
EEE Embedded Systems Design Process in Operating Systems 서강대학교 전자공학과
Prabhat Kumar Saraswat Paul Pop Jan Madsen
A Study of Group-Tree Matching in Large Scale Group Communications
CprE 458/558: Real-Time Systems
Bank-aware Dynamic Cache Partitioning for Multicore Architectures
Chapter 6: CPU Scheduling
Analysis of Link Reversal Routing Algorithms
Module 5: CPU Scheduling
3: CPU Scheduling Basic Concepts Scheduling Criteria
Elastic Task Model For Adaptive Rate Control
Chapter5: CPU Scheduling
Sungho Kang Yonsei University
Chapter 6: CPU Scheduling
A Characterization of Approaches to Parrallel Job Scheduling
Outline Scheduling algorithms Multi-processor scheduling
Jian-Jia Chen and Tei-Wei Kuo
by Xiang Mao and Qin Chen
Maximum Lifetime of Sensor Networks with Adjustable Sensing Range
Operating System , Fall 2000 EA101 W 9:00-10:00 F 9:00-11:00
Shortest-Job-First (SJR) Scheduling
Chapter 6: CPU Scheduling
Module 5: CPU Scheduling
Chapter 6: CPU Scheduling
Module 5: CPU Scheduling
Anand Bhat*, Soheil Samii†, Raj Rajkumar* *Carnegie Mellon University
Scheduling of Regular Tasks in Linux
CPU Scheduling David Ferry CSCI 3500 – Operating Systems
Presentation transcript:

Risat Pathan Chalmers University of Technology, Sweden Improving the Schedulability and Quality of Service for Federated Scheduling of Parallel Mixed-Criticality Tasks on Multiprocessors Risat Pathan Chalmers University of Technology, Sweden

Outline Background State-of-the-art and its limitations Improving Schedulability Improving QoS Results and Conclusion J. Li, D. Ferry, S. Ahuja, K. Agrawal, C. Gill, and C. Lu. Mixed-criticality federated scheduling for parallel real-time tasks. In Proc. of RTAS, April 2016. J. Li, J. J. Chen, K. Agrawal, C. Lu, C. Gill, and A. Saifullah. Mixed-criticality federated scheduling for parallel real-time tasks. Real-Time Systems, Sep 2017.

Background: Parallel non-MC Tasks (DAG) 𝐶 𝐴 =3 𝐶 𝐵 =4 𝐶 𝐷 =3 𝐶 𝑐 =2 𝐶=10 A sequential task with WCET C = 10 Period T = 20 A parallel task with Total work C=12 Length of longest path L=10 Period T=20

Background: Federated Scheduling of non-MC parallel tasks Phase 1: Assigning processors to the tasks Phase 2: Scheduling Algorithm Each task is either a heavy task or a light task Each heavy task is assigned a number of dedicated processors Nodes of each heavy task are scheduled using some greedy scheduler only on its dedicated processors All the light tasks are assigned to the remaining (shared) processors Light tasks are executed sequentially Partitioned scheduling of sequential tasks A heavy task Total work C=24 Period T=20 Utilization U=1.2 𝐶 𝐴 =3 𝐶 𝐵 =8 𝐶 𝐷 =3 𝐶 𝑐 =10 𝐶 𝐵 =4 𝐶 𝑐 =2 A light task Total work C=12 Utilization U=0.6

Example: Federated Scheduling of non-MC parallel tasks 5 10 20 30 5 10 3 14 1 7 3 2 1 C=25 T =100 U=0.25 C=50 T =40 U=1.25 Light Task Heavy Task C=8 T=16 U=0.5 C=60 T =30 U=2.0 Light Task Heavy Task M1 = 3 Analysis M2 = 4 Analysis M3 = 1 Analysis Sched Test: If M1+M2+M3 <=P, then all deadlines are met. where P=# of processors

Parallel Mixed-Critical (MC) Tasks Dual-Criticality System Each task is either a high (HI) or a low (LO) critical task 𝐶 𝐴 =3 𝐶 𝐵 =4 𝐶 𝐷 =3 𝐶 𝑐 =2 𝐶𝑂 𝐵 =8 𝐶𝑂 𝑐 =6 A parallel MC task with Total work CN=12 Length (longest path) LN=10 Period T=15 𝐶 𝑁 =10 , 𝐶 𝑂 =12 CO=20 LO=14 A sequential MC task with WCET CN = 10 CO=12 Period T = 20 Nominal WCET Overloaded WCET Overloaded Work and critical path length Nominal work and critical path length

MC Parallel Task Model We consider n implicit-deadline parallel MC sporadic tasks Task i  (Zi, Ti, Ci, Li) where Zi  {LO, HI} and Ti= period (also deadline) If Zi =HI, then Ci = <CN , CO> where CN ≤ CO Li = <LN , LO> where LN ≤ LO If Zi =LO, then Ci = CN and Li=LN Each task is also assigned a virtual deadline Vi

Federated Scheduling of MC tasks Phase 1: Assigning processors to MC tasks Phase 2: Runtime MC scheduling

States/Criticality Behaviors Typical State Critical State Both LO and HI-crit tasks execute No task overrun its virtual deadline Only HI-crit tasks execute Task do not overrun LiHI and CiHI starts at time t t+s Some task does not signal completion by its virtual deadline STATE SWITCHES AT (t+s) LO-crit tasks are dropped at time (t+s) to provide more processors to high critical tasks

Example: Processors Assignment to Tasks (Federated Scheduling of MC tasks) 5 10 20 3 14 1 7 30 5 10 3 2 1 UN=0.25 Light, Low Crit UN=0.25 UO=0.5 UN=1.25 Light, High Crit Heavy, Low Crit UN=1.0 UO=2.0 Heavy, High Crit MN =2 MO =0 Analysis MN =3 MO =8 Analysis MN =1 MO =1 Analysis Each task i is also assigned its virtual deadline Vi

Federated MC Scheduling (Runtime) The system starts in typical state All the light MC tasks execute on Mlight processors Partitioned MC scheduling of sequential tasks Each heavy task i executes on MiN dedicated processors based on greedy scheduling If some task does not complete by its virtual deadline, then state switches to critical state The heavy task i now executes on MiO dedicated processors The additional (MiO-MiN) processors are taken by dropping some LO-criticality tasks

Schedulability Test Consider P=8 Processors State-of-the-art Test: Federated Scheduling of MC tasks Consider P=8 Processors Σ MN=2+3+1=6 (Success in Typical State) Σ MO=0+8+1=9 (Failure in Critical State) 5 10 20 3 14 1 7 30 5 10 3 2 1 Light Low Crit Light High Crit Heavy Low Crit Heavy High Crit MN =2 MO =0 Analysis MN =3 MO =8 Analysis MN =1 MO =1 Analysis Schedulability Test If Σ MN <= P, then all the deadlines are met in typical state If Σ MO <= P, then all the deadlines are met in critical state

State-of-the-art Test: Federated Scheduling of MC tasks Consider P=8 processors Σ MN=2+3+1=6 (Success in Typical State) Σ MO=0+8+1=9 (Failure in Critical State) 5 10 20 3 14 1 7 30 5 10 3 2 1 Light Low Crit Light High Crit Heavy Low Crit Heavy High Crit MN =2 MO =0 Analysis MN =3 MO =8 Analysis MN =1 MO =1 Analysis Do we have some other assignment of processors such that the task set is schedulable? Schedulability Test If Σ MN <= P, then all the deadlines are met in typical state If Σ MO <= P, then all the deadlines are met in critical state

Improving the Schedulability and Quality of Service for Federated Scheduling of Parallel Mixed-Criticality Tasks on Multiprocessors

The main contribution A new schedulability test for each heavy MC task i is proposed TEST(MN, MO, i) = True and False For MN=1 to P For MO=1 to P if TEST(MN, MO, i)==TRUE “Valid alternative (MN, MO) for i” We select one (MN, MO) form all the alternatives such that the overall task set is schedulable

Schedulability Test Consider P=8 processors Σ MN=2+4+1=7 (Success) Improving Schedulability: Federated Scheduling of MC tasks Consider P=8 processors Σ MN=2+4+1=7 (Success) Σ MO=0+6+1=7 (Success) Consider P=8 processors Σ MN=2+3+1=6 (Success) Σ MO=0+8+1=9 (Failure) Consider P=8 processors Σ MN=2+3+1=6 (Success) Σ MO=0+8+1=9 (Failure) 5 10 20 3 14 1 7 30 5 10 3 2 1 Light Low Crit Light High Crit Heavy Low Crit Heavy High Crit MN =2 MO =0 Analysis MN =3 MO =8 Analysis MN =1 MO =1 Analysis MN =4 MO =6 Schedulability Test If Σ MN <= P, then typical ok If Σ MO <= P, then critical ok

Schedulability Test Consider P=8 processors Consider P=8 processors Improving QoS: Federated Scheduling of MC tasks Although schedulable, the low-crit heavy task is dropped. Do we have some other assignment of processors to the heavy tasks such that the LO-crit task is not dropped? Consider P=8 processors Σ MN=2+4+1=7 (Success) Σ MO=0+6+1=7 (Success) Consider P=8 processors Σ MN=2+5+1=8 (Success) Σ MO=2+5+1=8 (Success) 5 10 20 3 14 1 7 30 5 10 3 2 1 Light Low Crit Light High Crit Heavy Low Crit Heavy High Crit LO Critical (Heavy) High Critical (Heavy) LO and HI critical (Light) MN =2 MO =0 Analysis MN =3 MO =8 Analysis MN =1 MO =1 Analysis MN =4 MO =6 Schedulability Test If Σ MN <= P, then typical ok If Σ MO <= P, then critical ok MN =2 MO =2 MN =5 MO =5

Other Contributions Each task may have O(P) possible ways of assigning processors (MN, MO) N tasks may have O(PN) possible ways of selecting the alternative A dynamic programming algorithm is proposed to find the allocation of the processors to the tasks in polynomial time There may be multiple valid ways to allocate the processors to the tasks By selecting the allocation that requires the minimum number of processors during the critical state, we see that some LO crit tasks are not dropped. An ILP is formulated to maximize the number of LO-crit taskshat are never dropped Simulation shows better QoS w.r.t. the state of the art

Simulation Randomly generated task sets are evaluated Our-MCF test are compared with MCFS-Improve [RTAS16, RTJ17] test

Acceptance Ratio, M=16

Acceptance Ratio, M=16, 32, 64, 128

QoS metric: Average fraction of LO-crit tasks that are never dropped For each schedulable task set, The fraction of LO-crit tasks that are never dropped is computed For example, if 2 out of 10 LO-crit tasks are never dropped, then this fraction is 20% Metric: Average fraction of LO-crit tasks that are never dropped

QoS

Conclusion A new way to assign the processors to MC parallel tasks for federated scheduling Improves the schedulability and the QoS of the system Future work: Greedy vs. other scheduler

Thank You risat@chalmers.se

Weighted Schedulability