Real-Time Scheduling. Dynamic Priority Servers

Similar documents
Overview of Scheduling a Mix of Periodic and Aperiodic Tasks

Dynamic Voltage Scaling of Periodic and Aperiodic Tasks in Priority-Driven Systems Λ

requests or displaying activities, hence they usually have soft deadlines, or no deadlines at all. Aperiodic tasks with hard deadlines are called spor

Aperiodic Servers (Issues)

Integrating Multimedia Applications in Hard Real-Time Systems

REcent real-time systems are required to deal with not

A Capacity Sharing and Stealing Strategy for Open Real-time Systems

Scheduling Sporadic and Aperiodic Events in a Hard Real-Time System

Implementing Sporadic Servers in Ada

6.1 Motivation. Fixed Priorities. 6.2 Context Switch. Real-time is about predictability, i.e. guarantees. Real-Time Systems

Real Time Operating Systems and Middleware

Resource Reservation & Resource Servers

Sporadic Server Scheduling in Linux Theory vs. Practice. Mark Stanovich Theodore Baker Andy Wang

Reservation-Based Scheduling for IRQ Threads

Overview. Sporadic tasks. Recall. Aperiodic tasks. Real-time Systems D0003E 2/26/2009. Loosening D = T. Aperiodic tasks. Response-time analysis

Simplified design flow for embedded systems

Copyright Notice. COMP9242 Advanced Operating Systems S2/2014 Week 9: Real-Time Systems. Real-Time System: Definition

Real-time operating systems and scheduling

Constant Bandwidth vs Proportional Share Resource Allocation

1.1 Explain the difference between fast computing and real-time computing.

Event-Driven Scheduling. (closely following Jane Liu s Book)

SCHEDULING REAL-TIME MESSAGES IN PACKET-SWITCHED NETWORKS IAN RAMSAY PHILP. B.S., University of North Carolina at Chapel Hill, 1988

Embedded Software Programming

4/6/2011. Informally, scheduling is. Informally, scheduling is. More precisely, Periodic and Aperiodic. Periodic Task. Periodic Task (Contd.

Real-Time Architectures 2004/2005

Department of Computer Science Institute for System Architecture, Operating Systems Group REAL-TIME MICHAEL ROITZSCH OVERVIEW

Introduction to Embedded Systems

Scheduling Algorithms for Real-Time Systems

Concurrent activities in daily life. Real world exposed programs. Scheduling of programs. Tasks in engine system. Engine system

Exam Review TexPoint fonts used in EMF.

7. Multimedia Operating System. Contents. 7.3 Resource Management. 7.4 Process Management. 7.2 Real Time Systems. 7.5 Prototype Systems. 7.

Implementing Scheduling Algorithms. Real-Time and Embedded Systems (M) Lecture 9

Reference Model and Scheduling Policies for Real-Time Systems

Aperiodic Task Scheduling

Scheduling Aperiodic Tasks using Total Bandwidth Server on Multiprocessors

Impact of Non-stationary Workload on Resource Reservation Based Slack Reclamation

THE integration of multiple functionalities on a single

FIXED-PRIORITY SERVERS

Faculty of Computer Science Institute of Systems Architecture, Operating Systems Group. vs. REAL-TIME SYSTEMS MICHAEL ROITZSCH

ASurveyof Reservation-Based Scheduling

IN4343 Real-Time Systems

Middleware Support for Aperiodic Tasks in Distributed Real-Time Systems

Lecture 12: An Overview of Scheduling Theory

Schedulability analysis of periodic and aperiodic tasks with resource constraints

Integrating Multimedia Applications in Hard Real-Time Systems

A Survey of Reservation-based Scheduling

PROCESS SCHEDULING Operating Systems Design Euiseong Seo

PROBABILISTIC SCHEDULING MICHAEL ROITZSCH

Response Time Analysis of Asynchronous Real-Time Systems

Introduction to Real-Time Systems ECE 397-1

Scheduling Algorithm for Hard Real-Time Communication in Demand Priority Network

Embedded Systems: OS. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

ENERGY EFFICIENT SCHEDULING FOR REAL-TIME EMBEDDED SYSTEMS WITH PRECEDENCE AND RESOURCE CONSTRAINTS

CS4514 Real Time Scheduling

Embedded Systems: OS

Multimedia-Systems. Operating Systems. Prof. Dr.-Ing. Ralf Steinmetz Prof. Dr. rer. nat. Max Mühlhäuser Prof. Dr.-Ing. Wolfgang Effelsberg

Fault tolerant scheduling in real time systems

Handling Aperiodic Tasks and Overload in Distributed Off-line Scheduled Real-Time Systems

Priority assignment in real-time active databases 1

CMU/SEI-90-TR-6. Carnegie-Mellon University - Software Engineering Institute. Implementing Sporadic Servers in Ada. Brinkley Sprunt Lul Sha.

WITH THE proliferation of the embedded computing devices,

General Terms Algorithms, Performance, Reliability. Keywords Real-time systems, hierarchical scheduling, resource sharing, operating systems.

SCHED DEADLINE: a real-time CPU scheduler for Linux

THE main goal of a real-time scheduler is to provide

Authors Abugchem, F. (Fathi); Short, M. (Michael); Xu, D. (Donglai)

Admission Control and Overload Handling in FTT-CAN

Server-Based Scheduling of the CAN Bus

Resource Reservation in Dynamic Real-Time Systems

FMCAD 2011 (Austin, Texas) Jonathan Kotker, Dorsa Sadigh, Sanjit Seshia University of California, Berkeley

Introduction to Real-Time Communications. Real-Time and Embedded Systems (M) Lecture 15

MASTER'S THESIS. Proportional and Sporadic Scheduling in Real-Time Operating Systems. Mikael Bertlin. Luleå University of Technology

Analysis and Implementation of Global Preemptive Fixed-Priority Scheduling with Dynamic Cache Allocation

Precedence Graphs Revisited (Again)

SLA-Aware Adaptive Data Broadcasting in Wireless Environments. Adrian Daniel Popescu

A Flattened Hierarchical Scheduler for Real-Time Virtual Machines

A Flattened Hierarchical Scheduler for Real-Time Virtualization

Microkernel/OS and Real-Time Scheduling

Two Real-Time Operating Systems and Their Scheduling Algorithms: QNX vs. RTLinux

Efficient Power Management Schemes for Dual-Processor Fault-Tolerant Systems

Server-Based Scheduling of the CAN Bus

Homework index. Processing resource description. Goals for lecture. Communication resource description. Graph extensions. Problem definition

Schedulability with resource sharing. Priority inheritance protocol Priority ceiling protocol Stack resource policy

(b) External fragmentation can happen in a virtual memory paging system.

Enriching Enea OSE for Better Predictability Support

Resource Partitioning among Real-Time Applications

A Synchronous IPC Protocol for Predictable Access to Shared Resources in Mixed-Criticality Systems

Multicore CPU Reclaiming: Parallel or Sequential?

Quality of Service Scheduling in Real-Time Systems

Hierarchical Real-Time Scheduling and Synchronization

Using SCHED DEADLINE in Linux. Luca Abeni

Partitioned Fixed-Priority Scheduling of Parallel Tasks Without Preemptions

Subject Name: OPERATING SYSTEMS. Subject Code: 10EC65. Prepared By: Kala H S and Remya R. Department: ECE. Date:

Resource-bound process algebras for Schedulability and Performance Analysis of Real-Time and Embedded Systems

EECS 571 Principles of Real-Time Embedded Systems. Lecture Note #8: Task Assignment and Scheduling on Multiprocessor Systems

Multimedia Systems 2011/2012

Design of a Real-Time Trader for Mobile Objects in Open Distributed Environments

An efficient implementation of the BandWidth Inheritance protocol for handling hard and soft real-time applications in the Linux kernel

Introduction to Real-time Systems. Advanced Operating Systems (M) Lecture 2

Operating system concepts. Task scheduling

Giorgio Buttazzo. Scuola Superiore Sant Anna, Pisa. The transition

Transcription:

Real-Time Scheduling Dynamic Priority Servers

Objectives Schedule soft aperiodic and hard periodic tasks Reduce average response time of aperiodic requests without compromising schedulability of periodic tasks Periodic tasks are schedule by EDF Higher schedulability bounds than with fixedpriority assignments Fixed-priority: RM (periodic), U p =0.6, SS (aperiodic) U s =0.1 Dynamic-priority: EDF (periodic), U p =0.6 U s =0.4 Application: multimedia 2

Assumptions Periodic tasks scheduled by EDF Periodic tasks Hard All tasks start at t = 0 T i, C i, D i D i = T i Aperiodic tasks Soft, no deadlines Unkown arrival time r i Known C i (WCET Worst Case Execution Time) 3

BS BS = Background Server Simple implementation Serve hard periodic tasks accordingly to EDF If there is slack time, serve soft aperiodic tasks Worst performance 4

DPE (1/3) DPE Dynamic Priority Exchange server Extension of the PE server Server trade its runtime with that of lower priority tasks DPE server: T s and C s Aperiodic capacities receive priorities according to deadlines and EDF Ties are broken in favor of capacities (aperiodic requests) 5

DPE (2/3) C S 16 C S 8 t1 C S 24 C S 12 t2 aperiodic C S 6 C S 12 3 2 1 C S 0 2 4 6 8 10 12 14 16 18 20 7 C S 18 C S 24 22 24 t1 = (8, 2) t2 = (12, 3) S = (6, 3) 6

DPE (3/3) U p : periodic tasks processor utilization U s : DPE server processor utilization Whole set is schedulable if U p + U s 1 7

DSS (1/3) DSS = Dynamic Sporadic Server Extends SS to work with EDF Server capacity preserved for possible aperiodic requests Capacity replenished only after consumption Replenishment time: d s = t A + T s Server gets no more than U s even when experiencing overload (when tasks execute more than WCET) 8

DSS (2/3) t1 t2 aperiodic 2 2 2 1 t1 = (8, 2) t2 = (12, 3) S = (6, 3) d s = aperiodic deadline 3 2 +2 1 C S 0 2 4 6 8 10 12 14 16 18 20 C s >0 d s =3+T s d s is the first deadline +1 +1 +3 22 24 C s >0 d s =6+T s d s =9+T s C s >0 both sered with the same deadline d s =14+T s 9

DSS (3/3) U p : periodic tasks processor utilization U s : DSS server processor utilization Whole set is schedulable if U p + U s 1 DSS becomes idle until next replenishing time Bad for soft tasks response time 10

TBS (1/3) TBS = Total Bandwidth Server In DSS, if T s is long, aperiodic requests can be delayed significantly (far deadline!) d k = max(r k,d k-1 ) + C k /U s r k = k-th aperiodic arrival time d 0 = 0 11

TBS (2/3) t1 t2 aperiodic 1 d 1 2 1 d 2 d 3 0 2 4 6 8 10 12 14 16 18 20 22 24 t1 = (6, 3) t2 = (8, 2) U s = 1-U p = 0.25 d 1 =3+(1/0.25)=7 d 2 =9+(2/0.25)=17 d 3 =17+(1/0.25)=21 12

TBS (3/3) Implementation cost: neglegible U p : periodic tasks processor utilization U s : TBS server processor utilization Whole set is schedulable if U p + U s 1 Need of exact WCET knowledge 13

CBS (1/3) CBS = Constant Bandwidth Server Implements a bandwidth reservation scheme: server gets no more than U s even during overload If a task tries to execute for more than its WCET, its priority is decreased (deadline increased) Reduces interference on other taks Task remains elegible for execution, exploiting existing slack 14

CBS (2/3) C s <(d 2 -r 2 )U s uses d 2 t1 4 J 1,1 d 1 J 1,2 3 J 2,1 d2 J 2,2 d 3 aperiodic r 1 r 2 3 2 1 C S 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 d 0 =0 server is idle d 1 =r 1 +T s =11 server recharged to C s =3 d 2 =d 1 +T s =19 server postponed C s replenished t1 = (7, 4) CBS: C s = 3; T s = 8 d k+1 =d k +T s when C s =0 d k+1 =r j +T s when server is idle (no pending tasks) and C s (d k -r j )U s d 3 =d 2 +T s =27 15

CBS (3/3) U p : periodic tasks processor utilization U s : CBS server processor utilization Whole set is schedulable if U p + U s 1 Protects hard tasks from soft tasks transient overruns 16

Comparison (1/6) Simulation of BS, DSS, DPE, and TBS 10 periodic tasks T i {100.. 1000} units of time U p = 0.65 Aperiodic tasks Utilization from 3% to 33% (1-0.65=0.35) Poisson interarrival times, with average T a Aperiodic execution times exponentially distributed Periodic server T s = T a C s = T a U s 17

Comparison (2/6) relative to BS 18

Comparison (3/6) Simulation of DSS, TBS, and CBS Average soft tasks tardiness max{0,f i -d i } Multimedia tasks don t need to meet all deadlines Simulation 5 periodic hard tasks, fixed parameters 5 aperiodic soft tasks, variable execution and interarrival times 19

Comparison (4/6) DSS becomes idle until next replenishing time! 20

Comparison (5/6) TBS slightly outperforms CBS but does not protect hard tasks from transient overruns of soft activities 21

Comparison (6/6) Qualitative evaluation Policy Performance Computational complexity Memory requirement Implementation complexity BS DPE DSS TBS CBS 22

References Hard Real-Time Computing Systems, G. Buttazzo, Kluwer Academic 23