Overview of Matchmaking and Scheduling (Mapping) Algorithm

Slides:



Advertisements
Similar presentations
1 Real-Time Queueing Theory Presented by: John Lehoczky Carnegie Mellon SAMSI Workshop Congestion Control and Heavy Traffic.
Advertisements

Washington WASHINGTON UNIVERSITY IN ST LOUIS Real-Time: Periodic Tasks Fred Kuhns Applied Research Laboratory Computer Science Washington University.
Real Time Scheduling.
CprE 458/558: Real-Time Systems
CS5270 Lecture 31 Uppaal, and Scheduling, and Resource Access Protocols CS 5270 Lecture 3.
CPE555A: Real-Time Embedded Systems
CSE 522 Real-Time Scheduling (4)
Real-Time Scheduling CIS700 Insup Lee October 3, 2005 CIS 700.
1 Swiss Federal Institute of Technology Computer Engineering and Networks Laboratory Embedded Systems Exercise 2: Scheduling Real-Time Aperiodic Tasks.
Tasks Periodic The period is the amount of time between each iteration of a regularly repeated task Time driven The task is automatically activated by.
CPU SCHEDULING RONG ZHENG. OVERVIEW Why scheduling? Non-preemptive vs Preemptive policies FCFS, SJF, Round robin, multilevel queues with feedback, guaranteed.
Towards optimal priority assignments for real-time tasks with probabilistic arrivals and probabilistic execution times Dorin MAXIM INRIA Nancy Grand Est.
Problem 11: Complex Hierarchical Scheduling Full Processor FP T3T2 T4T1 EDF T6T5 RM T10T9T8T7 EDFSPS DPS 10 Tasks - with jitter - with bursts - deadline.
Chapter 3 Operating Systems. Chapter 3 Operating Systems 3.1 The Evolution of Operating Systems 3.1 The Evolution of Operating Systems 3.2 Operating System.
1 Analysis Of Queues For this session, the learning objectives are:  Learn the fundamental structure of a queueing system.  Learn what needs to be specified.
Periodic Task Scheduling
Embedded Systems Exercise 3: Scheduling Real-Time Periodic and Mixed Task Sets 18. May 2005 Alexander Maxiaguine.
Chapter 5: CPU Scheduling
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
Chapter 19: Real-Time Systems Silberschatz, Galvin and Gagne ©2005 AE4B33OSS Chapter 19: Real-Time Systems System Characteristics Features of Real-Time.
1 Real-Time Queueing Network Theory Presented by Akramul Azim Department of Electrical and Computer Engineering University of Waterloo, Canada John P.
New Schedulability Tests for Real- Time task sets scheduled by Deadline Monotonic on Multiprocessors Marko Bertogna, Michele Cirinei, Giuseppe Lipari Scuola.
CHAPTER 05 Compiled by: Dr. Mohammad Omar Alhawarat Stacks & Queues.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Combined Scheduling of Periodic and Aperiodic Tasks.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
CPU Scheduling Algorithms Simulation using Java Kaushal Sinha CSC 4320 Spring 2007.
Queues Chapter 6. Chapter 6: Queues Chapter Objectives To learn how to represent a waiting line (queue) and how to use the five methods in the Queue interface:
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 31 – Multimedia OS (Part 1) Klara Nahrstedt Spring 2011.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
6. Application mapping 6.1 Problem definition
A Delay Composition theorem for Real-Time Pipelines P. Jayachandran T. Abdelzaher Presenter: Sina Meraji.
RTOS task scheduling models
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems RMS and EDF Schedulers.
MROrder: Flexible Job Ordering Optimization for Online MapReduce Workloads School of Computer Engineering Nanyang Technological University 30 th Aug 2013.
Distributed Process Scheduling : A Summary
Advanced Operating Systems - Spring 2009 Lecture 14 – February 25, 2009 Dan C. Marinescu Office: HEC 439 B. Office.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 5: Process Scheduling.
Real-Time systems By Dr. Amin Danial Asham.
1 Real-Time Scheduling. 2Today Operating System task scheduling –Traditional (non-real-time) scheduling –Real-time scheduling.
Disk Scheduling CS Introduction to Operating Systems.
Common Approaches to Real-Time Scheduling Clock-driven (time-driven) schedulers Priority-driven schedulers Examples of priority driven schedulers Effective.
Introduction to Embedded Systems Rabie A. Ramadan 5.
QoPS: A QoS based Scheme for Parallel Job Scheduling M. IslamP. Balaji P. Sadayappan and D. K. Panda Computer and Information Science The Ohio State University.
Performance Performance is about time and the software system’s ability to meet timing requirements.
19.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts with Java – 8 th Edition Chapter 19: Real-Time Systems.
Chapter 19: Real-Time Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 19: Real-Time Systems System Characteristics.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 31 – Process Management (Part 1) Klara Nahrstedt Spring 2009.
Progress Report 2013/08/22. Model Modification Each core works under the same frequency due to hardware limitation. A task can have different processing.
Sandtids systemer 2.modul el. Henriks 1. forsøg m. Power Point.
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 32 – Multimedia OS Klara Nahrstedt Spring 2010.
1 Performance Impact of Resource Provisioning on Workflows Gurmeet Singh, Carl Kesselman and Ewa Deelman Information Science Institute University of Southern.
First In First Out SJF is a scheduling policy that selects a waiting process with the smallest execution time to execute next. Shortest Job First Shortest.
Resource Selection in Grids Using Contract Net Kunal Goswami, Arobinda Gupta Cisco Systems, Bangalore, India Dept. of Computer Science & Engineering and.
Embedded System Scheduling
Chapter 19: Real-Time Systems
Scheduling and Fairness
Deadline Scheduling and Heavy tail distributionS
Lecture 24: Process Scheduling Examples and for Real-time Systems
Realtime System Fundamentals : Scheduling and Priority-based scheduling B. Ramamurthy cse321-fall2014 9/20/2018.
Delays in Packet Networks
CprE 458/558: Real-Time Systems (G. Manimaran)
Scheduling in Packet Networks
Realtime System Fundamentals : Scheduling and Priority-based scheduling B. Ramamurthy cse321-fall /27/2018.
Basic Grid Projects – Condor (Part I)
Sanjoy Baruah The University of North Carolina at Chapel Hill
NET 424: REAL-TIME SYSTEMS (Practical Part)
Chapter 19: Real-Time Systems
NET 424: REAL-TIME SYSTEMS (Practical Part)
Chapter 6: CPU Scheduling
Real-Time Scheduling David Ferry CSCI 3500 – Operating Systems
Presentation transcript:

MapReduce-Simulator: Matchmaking and Scheduling Algorithm SYSC 5807: Resource Management on Distributed Systems MapReduce-Simulator: Matchmaking and Scheduling Algorithm Norman Lim Dept. of Systems and Computer Engineering Carleton University Ottawa, ON, Canada nlim@sce.carleton.ca

Overview of Matchmaking and Scheduling (Mapping) Algorithm 1. When a job j arrives, it is placed in a queue depending on the scheduling policy selected. FIFO: uses first-in first-out queue EDF: uses earliest deadline first queue 2. Job/Task Mapping algorithm is invoked. Retrieves the first job in the queue and maps each of the job’s tasks onto the resources. Maps each task t onto a resource r that can execute t at its earliest possible time (at or after its earliest start time). For a particular job, the tasks in that job with higher execution time are mapped first.

Overview of Matchmaking and Scheduling (Mapping) Algorithm Cont. EDF Policy Only 3. If a job j is not able to be scheduled to complete executing before its deadline, then the Job/Task Re-mapping algorithm is invoked. Remaps j and the set of jobs (called S) that have caused j to miss its deadline. S includes jobs that are scheduled to start at, or complete within the interval: [start time of job j, deadline of job j]. j and the jobs in S are re-ordered according to earliest deadline first. The Job/Task Mapping algorithm (see previous slide) is invoked to map j and the jobs in S.

Example: Jobs and Resources Job 1 (j1) Arrival time = 0s EST = 2s Deadline = 30s t1 2 t2 5 t3 8 t4 10 t5 11 Job 2 (j2) Arrival time = 1s EST = 1s Deadline = 20s t1 4 t2 5 t3 10 Resource 1 (r1) Map Capacity = 1 Reduce Capacity = 1 Resource 2 (r2) Map Capacity = 1 Reduce Capacity = 1 Two jobs: j1 and j2. DAG shows the jobs’ tasks. - Blue circles: Map tasks - Red circles: Reduce tasks The task id and its required execution time are shown in the Two resources: r1 and r2. EST = earliest start time

Example: FIFO Job 1 (j1) Arrival time = 0s EST = 2s Deadline = 30s FIFO Queue map j1, t2 j1, t1 j2, t2 j1, t4 j2, t3 reduce j2 will miss its deadline. Job 1 arrives Job 2 arrives Job 1 gets scheduled Job 2 gets scheduled. map j1, t3 j2, t1 j1, t5 reduce

Example: EDF (Case 1) Job 1 (j1) Arrival time = 0s EST = 2s Deadline = 30s Job 2 (j2) Arrival time = 1s EST = 1s Deadline = 20s EDF Queue map j2, t1 j1, t3 j1, t5 reduce Job 1 arrives. Job 2 arrives, and goes to the start of the queue. Job 1 and 2 are scheduled. Note: In this case, Job 1 is not scheduled immediately because the scheduler was busy. map j2, t2 j1, t2 j1, t1 j2, t3 j1, t4 reduce

Example: EDF (Case 2) Job 2 (j2) Arrival time = 1s EST = 1s Deadline = 20s Job 1 (j1) Arrival time = 0s EST = 2s Deadline = 30s Job 1 (j1) Arrival time = 0s EST = 2s Deadline = 30s Job 2 (j2) Arrival time = 1s EST = 1s Deadline = 20s EDF Queue map j2, t1 j1, t2 j1, t3 j1, t1 j2, t2 j1, t5 j1, t4 j2, t3 reduce j2 will miss its deadline. Job 1 arrives, and gets scheduled. Note: In this case, Job 1 is scheduled immediately because the scheduler was not busy. Job 2 arrives, and gets scheduled. Job 2 is not able to finish its execution before its deadline so the Job/Task Re-mapping algorithm is executed to remap the jobs j1 and j2. This time, Job 2 (earlier deadline) is scheduled first, followed by Job 1. map j2, t2 j1, t3 j1, t2 j2, t1 j1, t1 j2, t3 j1, t5 j1, t4 reduce