Distributed Real-Time systems 1 By: Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Computer Networks.

Slides:



Advertisements
Similar presentations
Washington WASHINGTON UNIVERSITY IN ST LOUIS Real-Time: Periodic Tasks Fred Kuhns Applied Research Laboratory Computer Science Washington University.
Advertisements

Real Time Scheduling.
EE5900 Advanced Embedded System For Smart Infrastructure
Dr. Kalpakis CMSC 621, Advanced Operating Systems. Distributed Scheduling.
Scheduling Criteria CPU utilization – keep the CPU as busy as possible (from 0% to 100%) Throughput – # of processes that complete their execution per.
Resource Management §A resource can be a logical, such as a shared file, or physical, such as a CPU (a node of the distributed system). One of the functions.
Multiprocessor OS The functional capabilities often required in an OS for a multiprogrammed computer include the resource allocation and management schemes,
Dr. Kalpakis CMSC 621, Advanced Operating Systems. Fall 2003 URL: Distributed Scheduling.
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.
Module 2 Priority Driven Scheduling of Periodic Task
Distributed Process Management
Cs238 CPU Scheduling Dr. Alan R. Davis. CPU Scheduling The objective of multiprogramming is to have some process running at all times, to maximize CPU.
Multiprocessor and Real-Time Scheduling Chapter 10.
1 Introduction to Load Balancing: l Definition of Distributed systems. Collection of independent loosely coupled computing resources. l Load Balancing.
Courseware Basics of Real-Time Scheduling Jan Madsen Informatics and Mathematical Modelling Technical University of Denmark Richard Petersens Plads, Building.
Informationsteknologi Tuesday, October 9, 2007Computer Systems/Operating Systems - Class 141 Today’s class Scheduling.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
CprE 458/558: Real-Time Systems
Misconceptions About Real-time Computing : A Serious Problem for Next-generation Systems J. A. Stankovic, Misconceptions about Real-Time Computing: A Serious.
Real-Time Operating System Chapter – 8 Embedded System: An integrated approach.
Scheduling Parallel Task
Summary :- Distributed Process Scheduling Prepared BY:- JAYA KALIDINDI.
Load distribution in distributed systems
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
1 Distributed Operating Systems and Process Scheduling Brett O’Neill CSE 8343 – Group A6.
Thanks to Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction n What is an Operating System? n Mainframe Systems.
Introduction to Real-Time Systems
QoS Support in High-Speed, Wormhole Routing Networks Mario Gerla, B. Kannan, Bruce Kwan, Prasasth Palanti,Simon Walton.
1 Distributed Process Scheduling: A System Performance Model Vijay Jain CSc 8320, Spring 2007.
ARMADA Middleware and Communication Services T. ABDELZAHER, M. BJORKLUND, S. DAWSON, W.-C. FENG, F. JAHANIAN, S. JOHNSON, P. MARRON, A. MEHRA, T. MITTON,
CS4730 Real-Time Systems and Modeling Fall 2010 José M. Garrido Department of Computer Science & Information Systems Kennesaw State University.
© Oxford University Press 2011 DISTRIBUTED COMPUTING Sunita Mahajan Sunita Mahajan, Principal, Institute of Computer Science, MET League of Colleges, Mumbai.
Multiprocessor and Real-Time Scheduling Chapter 10.
Chapter 101 Multiprocessor and Real- Time Scheduling Chapter 10.
1 Multiprocessor and Real-Time Scheduling Chapter 10 Real-Time scheduling will be covered in SYSC3303.
Reference: Ian Sommerville, Chap 15  Systems which monitor and control their environment.  Sometimes associated with hardware devices ◦ Sensors: Collect.
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Distributed Real-Time Systems (contd.)
Summary :-Distributed Process Scheduling Prepared By:- Monika Patel.
5 May CmpE 516 Fault Tolerant Scheduling in Multiprocessor Systems Betül Demiröz.
6. Application mapping 6.1 Problem definition
Distributed Process Scheduling : A Summary
CS4730 Real-Time Systems and Modeling Fall 2010 José M. Garrido Department of Computer Science & Information Systems Kennesaw State University.
Module 2 Overview of Real Time System Scheduling
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Distributed Real-Time Systems.
Silberschatz and Galvin  Operating System Concepts Module 5: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 5 CPU Scheduling Slide 1 Chapter 5 CPU Scheduling.
Introduction to Embedded Systems Rabie A. Ramadan 5.
Static Process Scheduling
A System Performance Model Distributed Process Scheduling.
Lecture 2, CS52701 The Real Time Computing Environment I CS 5270 Lecture 2.
Dynamic Priority Driven Scheduling of Periodic Task
Operating System Concepts and Techniques Lecture 6 Scheduling-2* M. Naghibzadeh Reference M. Naghibzadeh, Operating System Concepts and Techniques, First.
Unit - I Real Time Operating System. Content : Operating System Concepts Real-Time Tasks Real-Time Systems Types of Real-Time Tasks Real-Time Operating.
Chapter 4 CPU Scheduling. 2 Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation.
Lecture 6: Real-Time Scheduling
Distributed Process Scheduling- Real Time Scheduling Csc8320(Fall 2013)
Real-Time Operating Systems RTOS For Embedded systems.
Embedded System Scheduling
Introduction to Load Balancing:
Chapter 1: Introduction
Wayne Wolf Dept. of EE Princeton University
Chapter 2 Scheduling.
CprE 458/558: Real-Time Systems
Module 5: CPU Scheduling
Networked Real-Time Systems: Routing and Scheduling
Multiprocessor and Real-Time Scheduling
Operating System , Fall 2000 EA101 W 9:00-10:00 F 9:00-11:00
Module 5: CPU Scheduling
Module 5: CPU Scheduling
Presentation transcript:

Distributed Real-Time systems 1 By: Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Computer Networks

Outline  Real-time system  Time Properties  Example for Real-time  Types of Real-time  Distributed Real-Time Systems  What is distributed system  Resource management  Global scheduling  Transfer policy  Selection policy  Location policy  Information policy 2  Scheduling Concepts  Objective  Properties  Performance measures  A simple model  Scheduling Algorithms

3 Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks Real-time system  real-time systems are defined as those systems in which the correctness of the system depends not only on the logical result of computation, but also on the time at which the results are produced.  A real-time system will usually have to meet many demands within a limited time.  a real-time system consists of a controlling system (computer) and a controlled system (environment).  The controlling system interacts with its environment based on information available about the environment.

4 Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  a real-time system consists of a controlling system (computer) and a controlled system (environment).  The controlling system interacts with its environment based on information available about the environment. Real-time system

5 Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  Release time (or ready time): Time at which the task is ready for processing.  Deadline: Time by which execution of the task should be completed, after the task is released.  Minimum delay: Minimum amount of time that must elapse before the execution of the task is started, after the task is released.  Maximum delay: Maximum permitted amount of time that elapses before the execution of the task is started, after the task is released.  Worst case execution time: Maximum time taken to complete the task.  Run time: Time taken without interruption to complete the task, after the task is released.  Weight (or priority): Relative urgency of the task. Time Properties

6 Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks Example For Real-Time  Real-time systems span a broad spectrum of complexity from very simple micro-controllers to highly sophisticated, complex and distributed systems.  Some examples of real-time systems include :  process control systems,  flight control systems,  flexible manufacturing applications,  robotics,  intelligent highway systems,  and high speed  and multimedia communication systems  Anti-Brake System (ABS)

7 Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks Types Of Real-Time  soft real-time tasks  firm real-time tasks  hard real-time tasks

8 Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  Objective  Properties  Performance measures  A simple model  Scheduling Algorithms  Uniprocessor Scheduling Algorithms  Multiprocessor Scheduling Algorithms  Distributed Real-Time Systems Scheduling Consepts

9 Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  Meeting the timing constraints of the system  Preventing simultaneous access to shared resources and devices  Attaining a high degree of utilization while satisfying the timing constraints of the system  Reducing the cost of context switches caused by preemption  Reducing the communication cost in real-time distributed systems; we should find the optimal way to decompose the real-time application into smaller ortions in order to have the minimum communication cost between mutual portions  Covering reliability, security, and safety. Objective

Properties Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  Soft/Hard/Firm real-time tasks  Periodic/Aperiodic/Sporadic tasks  Preemptive/Non-preemptive tasks  Multiprocessor/Single processor systems  Fixed/Dynamic priority tasks  Flexible/Static systems  Independent/Dependent tasks

performance measures Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  Depending on the type of application we are confronted with, different performance measures or optimality criteria are used to evaluate schedules.  Among the most common measures in scheduling theory are :  schedule length   mean flow time   mean weighted flow time

A Simple Model Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  Let the deadline Di for each task Ti be Pi TaskPriorityPeriod Computation time T1172 T22164 T33317

Scheduling for the Simple Model Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  Priorities with preemption

Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  Priorities without preemption Scheduling for the Simple Model

15 Scheduling Algorithms of Real-Time Systems EDF LLF RM DASA LBESA

Distributed Real-Time Systems Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  What is distributed system  Resource management  Global scheduling  Transfer policy  Selection policy  Location policy  Information policy

What is distributed system? Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  A set of nodes commun. through a network  Network could be LAN or WAN  Nodes could be homogeneous or heterogeneous N1 Network (WAN/LAN) N2 N3 Nn

Why distributed systems? Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  Applications themselves are distributed o E.g., command and control, air traffic control  High performance o Better load balancing  High availability (fault-tolerance) o No single point of failure

problems with distributed systems Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  Resource management is difficult o No global knowledge on workload o No global knowledge on resource allocation  No synchronized clock (or clocks need to be synchronized)  Asynchronous nature of the nodes  Communication related errors o Out of order delivery of packets, packet loss, etc.

System model Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  The application is realized on a distributed system  Tasks arrive at each node independent of other nodes  Each node has resource manager for managing the workload at local node and for facilitating migration of workload to remote nodes  Nodes cooperate among themselves for meeting tasks’ deadlines

Workload assumptions Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  Periodic tasks and aperiodic tasks  Periodic messages and aperiodic messages  Task may have precedence constraints  The commn. pattern among two communicating periodic tasks is also periodic  Two communicating tasks could be scheduled on two different nodes  Meeting tasks deadlines require bounding and meeting message deadlines

Resource management in Distributed RT systems (Node architecture) Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  Local scheduling  Resource management within a node  Task scheduling, resource reclaiming, etc.  Global scheduling  Balancing load across nodes  Transfer policy, selection policy, information policy, and location policy  Communication resource management  QoS routing (channel setup time)  Resource reservation (channel setup time)  Packet scheduling (run-time)

Global scheduling Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  Goal: migrate tasks from a local node (when it is heavily loaded) to a lightly loaded node  Transfer policy: when tasks are to be migrated from/to local node to/from remote nodes  Selection policy: which tasks are to be migrated  Location policy: where tasks are to be migrated  Information policy: what information is exchanged among nodes to realize task migration

Transfer policy Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  Load index: the quantitative measure of node’s load  Non-real-time systems: queue length, processor utilization  Real-time systems: processor utilization, tasks’ laxity/deadline  Transfer policy determines whether the current node is suitable to participate in a task migration either as a sender or as a receiver  Threshold-based load index  Two thresholds (L-upper and L-lower) based on which a node’s load is classified as Light, Normal, or Overload  Light load implies the node could be a receiver for task migration  Heavy load implies the node is a sender for task migration  Normal load implies neither sender nor receiver  Fixing thresholds is hard

Selection policy Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  Once transfer policy determines the current node is the sender of a task migration, selection policy decides which tasks to migrate  While choosing the tasks, following needs to be considered  End-to-end delay: sum of local decision time, migration time, remote decision time, and task’s execution time must be less than task’s deadline  Task’s affinity to node – e.g., the required resource must be available at the remote node  Task’s “value” – it is better meet deadlines of higher value offering tasks

Location policy Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  Choosing the receiver node for a task migration  There are several policies possible  Random policy – select the receiver randomly  Polling policy – poll the potential receivers of their load in sequential or parallel  Information based – based on the information provided by the information policy

Information policy Mahdi Sadeghizadeh Website: Sadeghizadeh.ir Advanced Networks  Nodes exchange state info so as to obtain global state  Demand-driven policy  A node collects state info from other nodes when it becomes a sender or receiver for task migration  Depends on node’s load state change to Light or Heavy  State-driven policy  Whenever node’s load state changes, it informs other nodes  Similar to other demand-driven  Periodic policy  Nodes periodically exchange state info irrespective of their states

Thank You 28