A Deferrable Scheduling Algorithm for Real-Time Transactions Maintaining Data Freshness Ming Xiong Bell Labs Research, Lucent Technologies Song Han, Kam-yiu.

Slides:



Advertisements
Similar presentations
Fakultät für informatik informatik 12 technische universität dortmund Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund,
Advertisements

Feedback Control Real-Time Scheduling: Framework, Modeling, and Algorithms Chenyang Lu, John A. Stankovic, Gang Tao, Sang H. Son Presented by Josh Carl.
Real Time Scheduling.
Hadi Goudarzi and Massoud Pedram
1 EE5900 Advanced Embedded System For Smart Infrastructure RMS and EDF Scheduling.
Real Time Scheduling Terminologies define Fixed Priority Scheduler
Harini Ramaprasad, Frank Mueller North Carolina State University Center for Embedded Systems Research Tightening the Bounds on Feasible Preemption Points.
REAL-TIME COMMUNICATION ANALYSIS FOR NOCS WITH WORMHOLE SWITCHING Presented by Sina Gholamian, 1 09/11/2011.
THE UNIVERSITY of TEHRAN Mitra Nasri Sanjoy Baruah Gerhard Fohler Mehdi Kargahi October 2014.
Mehdi Kargahi School of ECE University of Tehran
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems (m, k)-firm tasks and QoS enhancement.
RUN: Optimal Multiprocessor Real-Time Scheduling via Reduction to Uniprocessor Paul Regnier † George Lima † Ernesto Massa † Greg Levin ‡ Scott Brandt ‡
1 Deferrable Scheduling for Temporal Consistency: Schedulability Analysis and Overhead Reduction Ming Xiong : Lucent Bell Labs Song Han: City University.
Real-Time Scheduling CIS700 Insup Lee October 3, 2005 CIS 700.
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
Soft Real-Time Semi-Partitioned Scheduling with Restricted Migrations on Uniform Heterogeneous Multiprocessors Kecheng Yang James H. Anderson Dept. of.
Towards Feasibility Region Calculus: An End-to-end Schedulability Analysis of Real- Time Multistage Execution William Hawkins and Tarek Abdelzaher Presented.
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.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
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 Algorithms for Multiprogramming in a Hard-Real-Time Environments.
Technische Universität Dortmund Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund, Informatik 12 Germany 2007/12/14.
End-to-End Delay Analysis for Fixed Priority Scheduling in WirelessHART Networks Abusayeed Saifullah, You Xu, Chenyang Lu, Yixin Chen.
Module 2 Clock-Driven Scheduling
Real Time Operating Systems Scheduling & Schedulers Course originally developed by Maj Ron Smith 8-Oct-15 Dr. Alain Beaulieu Scheduling & Schedulers- 7.
1 Maintaining Logical and Temporal Consistency in RT Embedded Database Systems Krithi Ramamritham.
Practical Schedulability Analysis for Generalized Sporadic Tasks in Distributed Real-Time Systems Yuanfang Zhang 1, Donald K. Krecker 2, Christopher Gill.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
1 Reducing Queue Lock Pessimism in Multiprocessor Schedulability Analysis Yang Chang, Robert Davis and Andy Wellings Real-time Systems Research Group University.
Scheduling policies for real- time embedded systems.
DESIGNING VM SCHEDULERS FOR EMBEDDED REAL-TIME APPLICATIONS Alejandro Masrur, Thomas Pfeuffer, Martin Geier, Sebastian Drössler and Samarjit Chakraborty.
Real-Time Systems Mark Stanovich. Introduction System with timing constraints (e.g., deadlines) What makes a real-time system different? – Meeting timing.
By Phani Gowthami Tammineni. Overview This presentation is about the issues in real-time database systems and presents an overview of the state of the.
Real Time Scheduling Telvis Calhoun CSc Outline Introduction Real-Time Scheduling Overview Tasks, Jobs and Schedules Rate/Deadline Monotonic Deferrable.
Real-Time Scheduling CS 3204 – Operating Systems Lecture 20 3/3/2006 Shahrooz Feizabadi.
The 32nd IEEE Real-Time Systems Symposium Meeting End-to-End Deadlines through Distributed Local Deadline Assignment Shengyan Hong, Thidapat Chantem, X.
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.
Survey of Real Time Databases Telvis Calhoun CSc 6710.
6. Application mapping 6.1 Problem definition
Undergraduate course on Real-time Systems Linköping 1 of 45 Autumn 2009 TDDC47: Real-time and Concurrent Programming Lecture 5: Real-time Scheduling (I)
A Survey on Optimistic Concurrency Control CAI Yibo ZHENG Xin
STUMP: Exploiting Position Diversity in the Staggered TDMA Underwater MAC Protocol Kurtis Kredo II, Petar Djukic, Prasant Mohapatra IEEE INFOCOM 2009.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems RMS and EDF Schedulers.
End-To-End Scheduling Angelo Corsaro & Venkita Subramonian Department of Computer Science Washington University Distributed Systems Seminar, Spring 2003.
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.
Real-Time Scheduling II: Compositional Scheduling Framework Insik Shin Dept. of Computer Science KAIST.
Introduction to Embedded Systems Rabie A. Ramadan 5.
CSCI1600: Embedded and Real Time Software Lecture 23: Real Time Scheduling I Steven Reiss, Fall 2015.
Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund, Informatik 12 Germany 2012 年 12 月 19 日 These slides use Microsoft clip.
Introduction to Real-Time Systems
Mok & friends. Resource partition for real- time systems (RTAS 2001)
For a good summary, visit:
Misconceptions About Real- Time Databases IEEE Computer Authors: John Stankovic, Sang Hyuk Son, Jorgen Hansson Presented By: Patti Kraker.
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
Distributed Process Scheduling- Real Time Scheduling Csc8320(Fall 2013)
Real-Time Operating Systems RTOS For Embedded systems.
Embedded System Scheduling
Wayne Wolf Dept. of EE Princeton University
Real-Time Databases and Data Services
Elastic Task Model For Adaptive Rate Control
The End Of The Line For Static Cyclic Scheduling?
Ch 4. Periodic Task Scheduling
Presentation transcript:

A Deferrable Scheduling Algorithm for Real-Time Transactions Maintaining Data Freshness Ming Xiong Bell Labs Research, Lucent Technologies Song Han, Kam-yiu Lam City University of Hong Kong Deferrable Scheduling – RTSS 2005

2 Outline  Overview and motivation  Deferrable scheduling alg and analysis: –Deferrable Scheduling (DS): A fixed priority scheduling algorithm for maintaining freshness of real- time data –Processor utilization analysis  Performance Studies  Conclusions and Future Work

Deferrable Scheduling – RTSS RTDB Model for Maintaining Temporal Validity of Real-Time Data Real-Time Databases Network Sensor 1 Sensor 2 Sensor N.. A real-time object in RTDBs models a real world entity, e.g., position of an aircraft Values are sampled by sensors, and propagated to RTDBs 1.Assume that propagation delay is zero 2.Non-zero delay can be transformed to zero delay Validity Length (zero delay) = Validity Length (non-zero delay) – Max Delay Real-time data in RTDBs must remain fresh in order to react to abnormal situations timely Transactions may be triggered to deal with abnormal situations

Deferrable Scheduling – RTSS What is Data Temporal Validity in RTDBs? Temporal Validity: keep data valid relative to real world Time Value X Real-time data values change continuously Data values are sampled periodically A validity interval is associated with a data value Within validity interval, a data value is fresh (temporally valid) – deviation from real world is acceptable

Deferrable Scheduling – RTSS Applications with Temporal Validity in RTDBs  Air traffic control [Huo, Kuo & Mok 97]: –Real-time data: aircraft position, speed, direction, altitude, etc. 20,000 data entities validity intervals of 1 ~ 10 seconds  Auto engine process control [Hansson 04]: –Real-time data: pressure, temperature, etc.

Deferrable Scheduling – RTSS Maintaining Temporal Validity of Real-Time Data V t+V t V : Validity length t’+V t’ V Real-time data X i is sampled by periodic update sensor transaction T i – X i has to be refreshed before its validity interval expires – Validity duration updated upon refresh Prior work guaranteeing successful completion of two instances (jobs) of T i within V i : Periodic scheduling approaches – Temporal validity maintenance in RTDBs – Real-time age-constraint scheduling

Deferrable Scheduling – RTSS Prior Work: Half-Half (HH) & More-Less (ML) Definition:  X : Real-Time Data  V : Validity Interval Length  T : Trans Updating X  P : Period of T  D : Relative Deadline of T V t P=D t+V/2 t +V t Observation : Data validity can be guaranteed if Period + Relative Deadline  Validity Length Half-Half : Sample at twice the rate of change (P = D = V/2) More-Less : P  V/2 & D  V/2 P=D D t t+V/2 t +V t P ML HH

Deferrable Scheduling – RTSS More-Less [Xiong and Ramamritham]: For a set of transactions {T i } (1  i  m) Validity Constraint (to ensure data validity) : Period + Relative Deadline  Validity Length More-Less Principle: Definition Deadline Constraint (to reduce workload) : Computation Time  Relative Deadline  Period Schedulability Constraint (by deadline monotonic) : Response time of the 1 st instance  Relative Deadline Note: 1 st instance response time is the longest response time of all instances of a transaction if all periodic transactions start synchronously (at same time) Is more-less the best in terms of minimizing CPU workload ?

Deferrable Scheduling – RTSS Intuition of Deferrable Scheduling  More-Less: Periodic approach that is unnecessarily pessimistic –More-Less uses the worst-case response time (WCRT) of a transaction as its relative deadline –Period (T i ) = Validity Length (T i ) - WCRT (T i ) –Relative deadline and period are fixed for all instances of a transaction  DS: Sporadic approach that allows variable separations and relative deadlines for instances of a transaction –DS uses response time of an instance as the relative deadline of the instance –Separation(T i,j, T i,j+1 ) = Validity Length(T i ) – ResponseTime(T i,j+1 ) –Relative deadline and separation of two instances are varied for all instances of a transaction  DS increases the average separation of two consecutive instances, but it lacks scheduling theory (e.g., sufficient condition for feasibility)

Deferrable Scheduling – RTSS Deferrable Scheduling: Illustration Validity Length V i r i,0 d i,1 r i,1 d i,1 r’ i,1 T i,0 T i,1 Higher-priority preemption d i,0 DiDi DiDi How to determine the response time of T i,1 if it completes at d i,1 ? r i,j : Sampling(Release) time of T i,j d i,j : Absolute deadline of T i,j ViVi d i,2 ViVi d’ i,2

Deferrable Scheduling – RTSS Deferrable Scheduling: Key Steps  Release time r i,j for transaction instance T i,j is derived backwards from its deadline d i,j : 1)d i,j+1 = r i,j + V i (validity constraint) 2)r i,j+1 = d i,j+1 – ResponseTime(T i,j+1 ) 3)ResponseTime(T i,j+1 ) = HPPreemption(r i,j+1, d i,j+1 ) + C i HPPreemption(r i,j+1, d i,j+1 ) is the total amount of processor demand from higher priority transactions during [r i,j+1, d i,j+1 ]. 4)HPPreemption(r i,j+1, d i,j+1 ) can be derived only if the schedule of all higher priority transactions of T i up to d i,j+1 have been determined  Note that Eq 2) above can be solved by an iterative algorithm in fixed priority scheduling

Deferrable Scheduling – RTSS Example: Comparison of More-Less and DS Example: ML Parameters CiCi ViVi DiDi PiPi T1T T2T T3T

Deferrable Scheduling – RTSS Example: Comparison of More-Less and DS Example: ML Parameters CiCi ViVi DiDi PiPi T1T T2T T3T

Deferrable Scheduling – RTSS Example: Comparison of More-Less and DS Example: ML Parameters CiCi ViVi DiDi PiPi T1T T2T T3T

Deferrable Scheduling – RTSS Deferrable Scheduling: Processor Utilization Estimation  Given transaction set T = {T i } ( 1  i  m) that can be scheduled by More-Less, suppose T i has higher priority than T j if i<j.  Processor utilization estimation for deferrable scheduling: –D i : Average relative deadline (response time) of transaction T i –P i : Average period of transaction T i –D i = C i + –P i = V i – D i –Average period and deadline of transaction T i ( 1  i  m) can be computed from the highest priority transaction (T 1 ) to the lowest priority transaction (T m ) based on the above two formulas. Estimated Processor Utilization: U est =

Deferrable Scheduling – RTSS Performance Studies  Experiments are conducted by simulation –Single CPU RTDB with all real-time data in main memory –Sensor and triggered transactions are generated following an air traffic control application

Deferrable Scheduling – RTSS Performance Studies: Processor Utilization Comparison Deferrable Scheduling (DS): theoretical estimation matches experimental results DS significantly outperforms More-Less DS processor utilization is very close to the lower bound sum(C i /(V i -C i ))

Deferrable Scheduling – RTSS Performance Comparison: Average Period Comparison DS Average Period (P ds ) is significantly larger than More-Less period (P ml ) ! Difference of average period increases with the decrease of trans. priority

Deferrable Scheduling – RTSS Performance Studies: Response Time Comparison for Triggered Transactions Triggered transactions do not have deadlines Triggered transactions under DS significantly outperform those under More-Less

Deferrable Scheduling – RTSS Performance Studies: Average Age of Data Average age of data of triggered transactions at commit time under DS is slightly older than that under ML

Deferrable Scheduling – RTSS Performance Studies: Missed Deadline Ratio for Triggered Transactions Triggered transactions have deadlines Triggered transactions under DS significantly outperform those under More-Less

Deferrable Scheduling – RTSS Conclusions Proposed Deferrable Scheduling (DS) for fixed priority transactions maintaining real- time data freshness Proposed processor utilization analysis for DS Demonstrated that DS is optimal for minimizing processor utilization in experiments Demonstrated that DS significantly outperforms More-Less in experiments

Deferrable Scheduling – RTSS Future Work  Open questions: –Is time 0 a critical instant for synchronous sensor transactions ? –What is a sufficient and necessary condition for DS feasibility ? –What is processor utilization bound for DS feasibility ? –How much can DS improve the feasibility of More-Less ?

Backup Slides

Deferrable Scheduling – RTSS Related Work  Deterministic approaches for temporal consistency maintenance –Half-Half (HH) approach Period = Deadline = V/2 –[Ramamritham, Distributed & Parallel DBs, 1993] –[Ho, Kuo & Mok, RTSS, 1997] –More-Less (ML) approach Deadline <= Period, Deadline + Period = V, Deadline monotonic scheduling –[Xiong & Ramamritham, RTSS, 1999] –[Xiong & Ramamritham, IEEE TC, 2004]

Deferrable Scheduling – RTSS Overview of RTDBs (I)  What are RTDBs ? –database systems that deal with workloads with timing constraints (e.g., deadlines) Transactions Queries  What timing constraints do RTDBs have ? –Hard deadlines Deadlines that must meet –Soft deadlines Values of transactions are functions of completion time –Full value if a deadline is met –Partial value if a deadline is missed –Firm deadlines Full value if a deadline is met, otherwise none

Deferrable Scheduling – RTSS Overview of RTDBs (II)  What scheduling algorithms are necessary ? –Real-time scheduling (versus time sharing scheduling) Priority based scheduling that is cognizant of timing constraints Traditional real-time scheduling algorithms –Earliest deadline first, least slack first, etc. –Rate monotonic, deadline monotonic, etc.  Problems in RTDBs –Data conflict and resolution –CPU scheduling –Disk scheduling –Memory management

Deferrable Scheduling – RTSS Deriving Deadlines and Periods: Intuition of More-Less Principle Data validity can be guaranteed if  Period + Relative Deadline <= Validity Length (1) To reduce the workload (C/P) imposed by T without violating (1) :  Increase period to be more than half of validity length  Decrease relative deadline to be less than half of validity length If relative deadline <= period,  deadline monotonic scheduling is an optimal fixed priority scheduling alg  Shortest validity first (SVF) priority assignment: a transaction gets higher priority if its validity length is shorter

Deferrable Scheduling – RTSS DS Feasibility Analysis: A Sufficient Condition  Theorem: Given a synchronous sensor transaction set T, if T can be scheduled by More-Less, then it can also be scheduled by Deferrable Scheduling. –Synchronous means that the first instances of all transactions are released at the same time

Deferrable Scheduling – RTSS Reducing DS On-line Scheduling Overhead  Worst-case time complexity of on-line scheduling is O(mV m 2 ) –It is much higher than More-Less (O(1))  Time complexity of on-line scheduling can be reduced by making DS based hyper-period schedule (off-line) –Periodic on-line scheduling (O(1)) –On-line space overhead to maintain schedule information is low

Deferrable Scheduling – RTSS Deferrable Scheduling with Hyper- period (DESH)  Criteria for hyper-period: two consecutive instances of a transaction satisfy the validity constraint –Two instances in the same hyper-period –Two instances across two hyper-periods  Off-line Schedule Construction (DESH-SC) Alg –Finds an interval in a partial DS schedule that is repeatable and its utilization is close to U est  Off-line Schedule Adjustment (DESH-SA) Alg –Finds an interval [0, t end ] in a partial DS schedule that has its utilization close to U est –Adjusts the schedule backwards from t end so that the schedule in [0, t end ] can be repeated on-line without violating the validity constraint

Deferrable Scheduling – RTSS DESH-SA Alg  Finds an idle time t –Repeats the schedule in [0, t] for Ti if Ti and its higher priority transactions satisfy the validity constraint for the last instance before t and the first instance after t –Otherwise, Pushes back the first Ti instance after t and sets t as its deadline, and computes its release time If its release time < its prior instance’s absolute deadline, adjusts the schedule of its prior instance (may incur ripple effect)

Deferrable Scheduling – RTSS Performance Results: DESH Algs DESH-SA has CPU utilization close to DS DESH-SC only works when CPU workload is low (<= 30 sensor trans)

Deferrable Scheduling – RTSS Performance Results: Hyper-period Length Comparison DESH-SC Hyper-period length increases rapidly as the sensor transaction workload increases