1 Maintaining Logical and Temporal Consistency in RT Embedded Database Systems Krithi Ramamritham.

Slides:



Advertisements
Similar presentations
Feedback Control Real-Time Scheduling: Framework, Modeling, and Algorithms Chenyang Lu, John A. Stankovic, Gang Tao, Sang H. Son Presented by Josh Carl.
Advertisements

Real Time Scheduling.
1 EE5900 Advanced Embedded System For Smart Infrastructure RMS and EDF Scheduling.
Energy Efficiency through Burstiness Athanasios E. Papathanasiou and Michael L. Scott University of Rochester, Computer Science Department Rochester, NY.
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.
Temporal and Real-Time Databases: A Survey by Gultekin Ozsoyoglu and Richard T. Snodgrass Presentation by Didi Yao.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems (m, k)-firm tasks and QoS enhancement.
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.
Institute of Networking and Multimedia, National Taiwan University, Jun-14, 2014.
Towards Feasibility Region Calculus: An End-to-end Schedulability Analysis of Real- Time Multistage Execution William Hawkins and Tarek Abdelzaher Presented.
Bogdan Tanasa, Unmesh D. Bordoloi, Petru Eles, Zebo Peng Department of Computer and Information Science, Linkoping University, Sweden December 3, 2010.
1 Token Bucket Based CAC and Packet Scheduling for IEEE Broadband Wireless Access Networks Chi-Hung Chiang
Real-Time Databases Krithi Ramamritham, “Real-Time Databases,” International Journal of Distributed and Parallel Databases, 1(2), pp , J.
Reliability-Aware Frame Packing for the Static Segment of FlexRay Bogdan Tanasa, Unmesh Bordoloi, Petru Eles, Zebo Peng Linkoping University, Sweden 1.
Online Data Gathering for Maximizing Network Lifetime in Sensor Networks IEEE transactions on Mobile Computing Weifa Liang, YuZhen Liu.
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.
Concurrency Control In Dynamic Database Systems Laurel Jones.
End-to-End Delay Analysis for Fixed Priority Scheduling in WirelessHART Networks Abusayeed Saifullah, You Xu, Chenyang Lu, Yixin Chen.
AN OPTIMISTIC CONCURRENCY CONTROL ALGORITHM FOR MOBILE AD-HOC NETWORK DATABASES Brendan Walker.
QoS-Aware In-Network Processing for Mission-Critical Wireless Cyber-Physical Systems Qiao Xiang Advisor: Hongwei Zhang Department of Computer Science Wayne.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Combined Scheduling of Periodic and Aperiodic Tasks.
Integrating Fine-Grained Application Adaptation with Global Adaptation for Saving Energy Vibhore Vardhan, Daniel G. Sachs, Wanghong Yuan, Albert F. Harris,
Round Robin Scheduling A preemptive scheduling designed for Time Sharing Systems The Ready Queue is treated as a circular queue A small execution.
Regional Traffic Simulation/Assignment Model for Evaluation of Transit Performance and Asset Utilization April 22, 2003 Athanasios Ziliaskopoulos Elaine.
© Oxford University Press 2011 DISTRIBUTED COMPUTING Sunita Mahajan Sunita Mahajan, Principal, Institute of Computer Science, MET League of Colleges, Mumbai.
Managing Real-Time Transactions in Mobile Ad-Hoc Network Databases Le Gruenwald The University of Oklahoma School of Computer Science Norman, Oklahoma,
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.
Euro-Par, A Resource Allocation Approach for Supporting Time-Critical Applications in Grid Environments Qian Zhu and Gagan Agrawal Department of.
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.
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.
Real-Time Scheduling CS 3204 – Operating Systems Lecture 20 3/3/2006 Shahrooz Feizabadi.
Competitive Queue Policies for Differentiated Services Seminar in Packet Networks1 Competitive Queue Policies for Differentiated Services William.
Resource Mapping and Scheduling for Heterogeneous Network Processor Systems Liang Yang, Tushar Gohad, Pavel Ghosh, Devesh Sinha, Arunabha Sen and Andrea.
Survey of Real Time Databases Telvis Calhoun CSc 6710.
Uniprocessor Scheduling
A Deferrable Scheduling Algorithm for Real-Time Transactions Maintaining Data Freshness Ming Xiong Bell Labs Research, Lucent Technologies Song Han, Kam-yiu.
IMPACT OF CACHE PARTITIONING ON MULTI-TASKING REAL TIME EMBEDDED SYSTEMS Presentation by: Eric Magil Research by: Bach D. Bui, Marco Caccamo, Lui Sha,
A Survey on Optimistic Concurrency Control CAI Yibo ZHENG Xin
Special Class on Real-Time Systems
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.
2.5 Scheduling. Given a multiprogramming system, there are many times when more than 1 process is waiting for the CPU (in the ready queue). Given a multiprogramming.
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.
Real-Time Systems, Events, Triggers. Real-Time Systems A system that has operational deadlines from event to system response A system whose correctness.
Introduction to Real-Time Systems
Ensieea Rizwani An energy-efficient management mechanism for large-scale server clusters By: Zhenghua Xue, Dong, Ma, Fan, Mei 1.
CS333 Intro to Operating Systems Jonathan Walpole.
For a good summary, visit:
A Theory of QoS for Wireless I-Hong Hou Vivek Borkar P.R. Kumar University of Illinois, Urbana-Champaign.
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.
DECISION MODELING WITH MICROSOFT EXCEL Chapter 12 Copyright 2001 Prentice Hall Publishers and Ardith E. Baker Multi-Objective Decision Making and Heuristics.
Resource Optimization for Publisher/Subscriber-based Avionics Systems Institute for Software Integrated Systems Vanderbilt University Nashville, Tennessee.
Efficient Coflow Scheduling with Varys
Distributed Process Scheduling- Real Time Scheduling Csc8320(Fall 2013)
Embedded System Scheduling
Real-Time Databases and Data Services
Lecture 4 Schedulability and Tasks
Lecture 24: Process Scheduling Examples and for Real-time Systems
Dealing with Changes of Time-Aware Processes
Overview of AIGA platform
Presentation transcript:

1 Maintaining Logical and Temporal Consistency in RT Embedded Database Systems Krithi Ramamritham

2 Overview Motivation Problems in real-time database systems (RTDBs) Contributions Proposed solutions for Real-Time Databases: –Maintaining temporal consistency –A novel principle to assign deadlines & periods for real-time update transactions Conclusions Other contributions & future work

3 Motivation Embedded applications need access to time varying data – e.g., temperature, pressure, etc. Need sufficiently fresh data for informed decisions, especially for real- time applications. A RTDB provides necessary support –executes transactions within deadlines –maintains temporal consistency of data  data values valid only for limited time A RTDB is a core component of real-time applications –Air traffic control –Avionics –Process control –Intelligent networks

4 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 (propagation delay >= 0) 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

5 What is Data Temporal Consistency in RTDBs? Temporal Consistency: 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 temporally valid – deviation from real world is acceptable

6 Applications with Temporal Consistency in RTDBs Air traffic control: –Real-time data: aircraft position, speed, direction, altitude, etc. 20,000 data entities validity intervals of 1 ~ 10 seconds Process control: – Real-time data: pressure, temperature, flow rate, etc. Intelligent network: network services databases –Real-time data: network traffic management data e.g., bandwidth utilization, buffer usage

7 Our focus: real-time data & their impact on transactions Traditional RTDB work focuses on transactions with deadlines Commercial RTDBs –EagleSpeed: meeting timing constraints –ClustRa: providing real-time response for telecom applications

8 Commercial RTDB Examples EagleSpeed TM – meeting timing constraints (Lockheed Martin Corp. Ocean, Radar & Sensor Systems) –Quick, efficient and deterministic processing –Predictable response time –Concurrency control and deadlock prevention –Priority inheritance for transactions –Fault tolerance Applications –Navy’s AN/BSY-2 combat system –The AN/SQQ-89 (V) 14 and (V) 15 surface ship systems –The C130 AEWC mission systems For more info:

9 Commercial RTDB Examples, Continued ClustRa -- supporting commercial telecom applications Real-time requirements: –Real-time response: <100 ms –High throughput: > 1000 transactions/second –High availability: < 2 minutes unavailable per year –High scalability: worldwide telephony network Applications: –Next generation network service (Telcordia) –Global mobility management (Inmarsat) –Intelligent telecom network (Oddvar Hesjedal) –Real-time network management For more info:

10 Maintaining Temporal consistency -- Strict Transaction Correctness in RTDBs Observation: Validity intervals of accessed data may expire if a transaction does not complete in time Transaction correctness criterion: A transaction can commit if and only if –it is logically consistent, –it meets its deadline, and –at the commit time, the objects it has read are still temporally consistent.

11 Data-Deadline in RTDBs Valid X Valid Y Deadline T Time T : Transaction X,Y : Data t0t0 Begin T t1t1 R T (Y) t2t2 t5t5 Our novel concept: Data-Deadline (DDL) – derived from data validity and transaction deadline DDL t (T) = min (deadline(T), min(End_Valid(X))) – T: a transaction – t: time – X: real-time data read by T by time t – End_Valid(X): end of validity interval of X DDL t2 (T) = t5 DDL t3 (T) = t4 R T (X) t3t3 t4t4 Abort T

12 Novel Transaction Scheduling Algorithms: Data-Deadline based Scheduling Data-Deadline based scheduling – Data-Deadline based Least Slack First (DDLSF) slack t (T) = DDL t (T) - t - Estimated Remaining Execution Time t (T) – Earliest Data-Deadline First (EDDF) DDL t (T) t slack t (T) E Time

13 Novel Transaction Scheduling Algorithms: Forced Wait If T can commit before X becomes invalid, T reads X. Otherwise, T waits for the next version of X. Begin T Wait ? Valid X Deadline T Time T : Transaction X : Data t1t1 t2t2 t4t4 t3t3 Valid X R T (X) t5t5 Commit T

14 Novel Transaction Scheduling Algorithms: Similarity Begin T Valid X Deadline T Time T : Transaction X : Data t1t1 t2t2 t3t3 Valid X R T (X) t5t5 Commit ? t4t4 If a version read is similar to the current version, the transaction can commit

15 Novel Transaction Scheduling Algorithms: Forced Wait + Similarity Valid X Valid Y Deadline T Time T : Transaction X,Y : Data t0t0 Begin T t1t1 R T (Y) t2t2 t4t4 R T (X) t5t5 t3t3 Wait? Commit? t6t6 Valid X Valid Y Forced wait is employed when a data is read Similarity is employed at commit time

16 Summary of Experimental Results: Temporal Consistency Maintenance Data-Deadline based policies alone do not improve performance significantly Forced Wait improves performance significantly (reduces missed deadline percentage up to 50% ) Similarity improves performance (reduces missed deadline percentage up to 30%) When combined with Similarity, Forced Wait plays a dominant role in enhancing performance

17 Proposed Solutions & Results Maintaining Temporal Consistency Assign Deadlines & Periods to RT Update Transactions

18 Assign Periods & Deadlines -- Problem & Goals Problem domain: –maintaining temporal validity of real-time data by periodic update transactions Goals: assigning periods and deadlines s.t. –update transactions can be guaranteed to complete by their deadlines –the imposed workload is minimized Problems with traditional approaches Proposed solution and performance results Summary

19 Problem : Maintaining Temporal Validity of Real-Time Data V t+V t V : Validity length t’+V t’ V Real-time data refreshed by periodic update sensor transactions – X has to be refreshed before its validity interval expires – validity duration updated upon refresh How to maintain the validity of data while minimizing the workloads due to update transactions ?

20 Traditional Approach: Half-Half -- Sample at twice the rate of change: P = D = V/2 Definition: X : Real-Time Data V : Validity Interval Length T : Trans Updating X P : Period of T D : Deadline of T C : Computation Time of T V Problem : Imposes unnecessarily high workload t P=D t+V/2 t +V t Observation : Data validity can be guaranteed if Period + Deadline <= Validity Length Workload : C / P = 2C / V P=D D t t+V/2 t +V t P P more than V/2 & D less than V/2 !

21 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

22 For a set of transactions {T i } 1 <= i <= m Validity Constraint (to ensure data validity) : Period + Deadline <= Validity Length More-Less Principle: Definition Deadline Constraint (to reduce workload) : Computation Time <= Deadline <= Period Schedulability Constraint (by deadline monotonic) : Response time of the 1 st instance <= Deadline Note: 1 st instance response time is the longest response time if all transactions start at same time Question: Is More-Less always better than Half-Half ?

23 More-Less Principle: P & D T1 T2 C V Parameters Half-Half T1 T2 D P Utilization : 1/ /10 = More-Less (priority order: T1 > T2) T1 T2 D P Utilization : 1/2 + 2/16 = < Determining deadline and period of a transaction in More-Less: Deadline: D = Response time of the 1st instance; Period : P = Validity Length - Deadline; Does the priority order T2 > T1 produce same P and D? Is more-less always better than half-half ?

24 More-Less Better than Half-Half Theorem: {T i } can be scheduled by (Half-Half, any fixed priority scheduling alg)  {T i } can be scheduled by (More-Less, Deadline Monotonic scheduling) The reverse is not true Question: How to determine transaction priority order s.t. load is minimized under More-Less ?

25 Shortest Validity First Shortest Validity First (SVF) –assign orders to transactions in the inverse order of validity interval length resolve ties in favor of a transaction with less slack (V - C) –is optimal under certain restrictions

26 Shortest Validity First: Summary Restrictions: 1)  C i <= min (V j /2) 2) C 2 - C 1 <= 2(V 2 - V 1 ) (i.e., the increase of computation time is less than twice the increase in validity interval length), If restrictions (1) & (2) hold, SVF is optimal If only restriction (1) holds, SVF is near optimal In general, SVF is a good heuristic (shown in experiments)

27 Applications & Experimental Results Application of More-Less: Avionics Systems Experimental Parameters : C i = [5,15] ms & V i = [4000,8000] ms Experimental results show that More-Less provides lower CPU workload and better schedulability than Half-Half No. of Sensor Transactions CPU Workload More-Less can deal with 30% more load !!!

28 Experiments: Coscheduling of Mixed Workloads -- Performance of Sensor Transactions No. of Sensor Transactions Missed Deadline Ratio Mixed Workloads: Sensor Transaction Class &Triggered Transaction Class Transaction Scheduling: High priority class: Sensor -- Deadline monotonic scheduling Low priority class:Triggered -- Earliest deadline first scheduling

29 Experiments: Coscheduling of Mixed Workloads -- Performance of Triggered Transactions No. of Sensor Transactions (Triggered Trans Arrival Rate = 10 trans/s) Missed Deadline Ratio More-Less improves perf. of triggered transactions by 80%!

30 Conclusions Development and evaluation of efficient and novel approaches to temporal consistency maintenance –concept of data-deadline and related scheduling algorithms –forced-wait –similarity Development, analysis, and evaluation of More-Less, an efficient principle for maintaining real-time data validity