Chapter 6 Dynamic Priority Servers

Slides:



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

Chapter 7 - Resource Access Protocols (Critical Sections) Protocols: No Preemptions During Critical Sections Once a job enters a critical section, it cannot.
Priority Inheritance and Priority Ceiling Protocols
Copyright © 2000, Daniel W. Lewis. All Rights Reserved. CHAPTER 8 SCHEDULING.
1 EE5900 Advanced Embedded System For Smart Infrastructure RMS and EDF Scheduling.
CPE555A: Real-Time Embedded Systems
CSE 522 Real-Time Scheduling (4)
Chapter 5 – Fixed-Priority Servers Typical Real-Time systems are hybrids characterized by: periodic tasks that execute critical control activities aperiodic.
Continuous Media 1 Differs significantly from textual and numeric data because of two fundamental characteristics: –Real-time storage and retrieval –High.
Module 2 Priority Driven Scheduling of Periodic Task
Sporadic Server Scheduling in Linux Theory vs. Practice Mark Stanovich Theodore Baker Andy Wang.
Problem 12: Large Distributed Systems ECU1 BUS CC1 ECU2CC2 ECU3CC3 S1 S2 S3 S4 S5 5 Real-Time Input Streams - with jitter - with bursts - deadline > period.
Problem 11: Complex Hierarchical Scheduling Full Processor FP T3T2 T4T1 EDF T6T5 RM T10T9T8T7 EDFSPS DPS 10 Tasks - with jitter - with bursts - deadline.
Chapter 6 Dynamic Priority Servers
CS 3013 & CS 502 Summer 2006 Scheduling1 The art and science of allocating the CPU and other resources to processes.
Fixed-Priority Servers
Deterministic Scheduling
Embedded Systems Exercise 3: Scheduling Real-Time Periodic and Mixed Task Sets 18. May 2005 Alexander Maxiaguine.
Wk 2 – Scheduling 1 CS502 Spring 2006 Scheduling The art and science of allocating the CPU and other resources to processes.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
Chapter 4 – Periodic Task Scheduling In many real-time systems periodic tasks dominate the demand. Three classic periodic task scheduling algorithms: –
Technische Universität Dortmund Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund, Informatik 12 Germany 2007/12/14.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Combined Scheduling of Periodic and Aperiodic Tasks.
Scheduling Aperiodic and Sporadic Jobs
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
Scheduling policies for real- time embedded systems.
Multiprocessor Real-time Scheduling Jing Ma 马靖. Classification Partitioned Scheduling In the partitioned approach, the tasks are statically partitioned.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
Real-Time Scheduling CS 3204 – Operating Systems Lecture 20 3/3/2006 Shahrooz Feizabadi.
Object-Oriented Design and Implementation of the OE-Scheduler in Real-time Environments Ilhyun Lee Cherry K. Owen Haesun K. Lee The University of Texas.
6. Application mapping 6.1 Problem definition
Real Time Systems Real-Time Schedulability Part I.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems RMS and EDF Schedulers.
Special Class on Real-Time Systems
CSE 522 Real-Time Scheduling (2)
Real Time Operating Systems Schedulability - Part 2 Course originally developed by Maj Ron Smith 12/20/2015Dr Alain Beaulieu1.
Real-Time Scheduling CS 3204 – Operating Systems Lecture 13 10/3/2006 Shahrooz Feizabadi.
1 Real-Time Scheduling. 2Today Operating System task scheduling –Traditional (non-real-time) scheduling –Real-time scheduling.
CSCI1600: Embedded and Real Time Software Lecture 24: Real Time Scheduling II Steven Reiss, Fall 2015.
CSCI1600: Embedded and Real Time Software Lecture 23: Real Time Scheduling I Steven Reiss, Fall 2015.
Dynamic Priority Driven Scheduling of Periodic Task
Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund, Informatik 12 Germany 2012 年 12 月 19 日 These slides use Microsoft clip.
Sandtids systemer 2.modul el. Henriks 1. forsøg m. Power Point.
Determining Optimal Processor Speeds for Periodic Real-Time Tasks with Different Power Characteristics H. Aydın, R. Melhem, D. Mossé, P.M. Alvarez University.
Lecture 6: Real-Time Scheduling
Embedded System Scheduling
OPERATING SYSTEMS CS 3502 Fall 2017
EEE Embedded Systems Design Process in Operating Systems 서강대학교 전자공학과
Operating Systems Design (CS 423)
Scheduling and Resource Access Protocols: Basic Aspects
RTOS Scheduling 3 Cyclic scheduling, EDF. Tasks with precedence, Scheduling impact of DMA, cache, interrupts & context switch overhead, Aperiodic Georgio.
Networks and Operating Systems: Exercise Session 2
Wayne Wolf Dept. of EE Princeton University
EEE 6494 Embedded Systems Design
Chapter 8 – Processor Scheduling
Lecture 4 Schedulability and Tasks
Lecture 24: Process Scheduling Examples and for Real-time Systems
Houssam-Eddine Zahaf, Giuseppe Lipari, Luca Abeni RTNS’17
Real Time Scheduling Mrs. K.M. Sanghavi.
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
NET 424: REAL-TIME SYSTEMS (Practical Part)
Processes and operating systems
Ch.7 Scheduling Aperiodic and Sporadic Jobs in Priority-Driven Systems
Real-Time Process Scheduling Concepts, Design and Implementations
Guaranteeing Message Latencies on Controller Area Network (CAN)
Chapter 6: CPU Scheduling
Ch 4. Periodic Task Scheduling
Real-Time Process Scheduling Concepts, Design and Implementations
Presentation transcript:

Chapter 6 Dynamic Priority Servers In chapter 5, we looked at fixed priority servers. The scheduling algorithms were based upon Rate Monotonic periodic scheduling, which limits guaranteed utilization to approximately 70%. In chapter 6, we look at dynamic priority servers. The scheduling is based upon Earliest Deadline First. The most significant implication of this is that scheduling has higher bounds, approaching 100% utilization.

Scheduling Strategies for Fixed Priority Servers (Chapter 5) (Based upon Rate Monotonic (RM) scheduling for periodic tasks) Background Service First Come First Served (FCFS) service as availability permits Polling Server (PS) Pseudo periodic task(s) provides slot for serving aperiodic tasks Deferrable Server (DS) Unused capacity is saved for future aperiodic arrivals Priority Exchange Server (PE) “Loans” unusable capacity to ready periodic tasks Sporadic Server Loans unusable capacity to ready periodic tasks and delays recoup Slack Stealing Passive task steals unnecessary slack time in scheduling

Properties of Dynamic Priority Servers (Based upon Earliest Deadline First (EDF) scheduling for periodic tasks) All tasks are fully preemptable Using Dynamic Priority Servers, the tasks are schedulable if and only if:

Dynamic Priority Servers Dynamic Priority Exchange Server (DPE) Loans priority to periodic tasks, and recoups it at a lower priority later Dynamic Sporadic Server (DSS) Used server capacity is replenished some time after it has been consumed Total Bandwidth Server (TBS) Aperiodic tasks are assigned all available bandwidth immediately Earliest Deadline Late Server (EDL) Like Earliest Deadline Last, periodic tasks are scheduled as late of possible Improved Dynamic Priority Exchange Server (IPE) Identified EDL slack is used schedule using Dynamic Priority Exchange

Dynamic Priority Exchange Server Like Priority Exchange Server (in Chap 5), whenever there are no aperiodic tasks to be served, Dynamic Priority Exchange Server exchanges priorities with periodic tasks and wastes as little time as possible. It also facilitates using the spare time when periodic tasks don’t use their worst case times.

Dynamic Priority Exchange Server

Dynamic Priority Exchange Server Example

Dynamic Priority Exchange – Reclaiming Spare Time

Dynamic Sporatic Server

Dynamic Sporadic Server Dynamic Sporadic Server always schedules with a relatively long far deadline. Therefore, the response of aperiodic tasks may be longer than necessary. A solution is to shorten the period of the Dynamic Sporadic Server, at the expense of more context switches.

Total Bandwidth Server Total Bandwidth Server schedules earlier deadlines for aperiodic tasks, BUT does it such that the overall utilization of the aperiodic load never exceeds the maximum value of Us. Each time an aperiodic request enters, the total bandwidth of the server is immediately assigned to it, WHENEVER POSSIBLE.

Total bandwidth Server

Earliest Deadline Late Server Note that the Total Bandwidth Server is conservative. There is slack time that could have been utilized to give the aperiodic tasks better response.

Earliest Deadline Late Server

Earliest Deadline Late Server Example

Improved Dynamic Priority Exchange Server EDL is overhead intensive. In Improved Dynamic Priority Exchange, the Dynamic Exchange Server is modified to use the idle times of EDL, yielding: a more efficient replenishment policy for the server the server is no longer periodic, and can be kept at the highest priority