Transactions – T4.3 Title: Concurrency Control Performance Modeling: Alternatives and Implications Authors: R. Agarwal, M. J. Carey, M. Livny ACM TODS,

Slides:



Advertisements
Similar presentations
1 Concurrency Control Chapter Conflict Serializable Schedules  Two actions are in conflict if  they operate on the same DB item,  they belong.
Advertisements

Principles of Transaction Management. Outline Transaction concepts & protocols Performance impact of concurrency control Performance tuning.
Concurrency Control II. General Overview Relational model - SQL  Formal & commercial query languages Functional Dependencies Normalization Physical Design.
Concurrency Control Part 2 R&G - Chapter 17 The sequel was far better than the original! -- Nobody.
Lecture 11 Recoverability. 2 Serializability identifies schedules that maintain database consistency, assuming no transaction fails. Could also examine.
1 Supplemental Notes: Practical Aspects of Transactions THIS MATERIAL IS OPTIONAL.
Database Systems, 8 th Edition Concurrency Control with Time Stamping Methods Assigns global unique time stamp to each transaction Produces explicit.
Concurrency Control Nate Nystrom CS 632 February 6, 2001.
Data and Database Administration Chapter 12. Outline What is Concurrency Control? Background Serializability  Locking mechanisms.
CS 582 / CMPE 481 Distributed Systems Concurrency Control.
CS 3013 & CS 502 Summer 2006 Scheduling1 The art and science of allocating the CPU and other resources to processes.
Chapter 15 Transaction Management. McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved. Outline Transaction basics Concurrency.
Chapter 6: Database Evolution Title: AutoAdmin “What-if” Index Analysis Utility Authors: Surajit Chaudhuri, Vivek Narasayya ACM SIGMOD 1998.
Transaction Management and Concurrency Control
Chapter 10: Stream-based Data Management Title: Design, Implementation, and Evaluation of the Linear Road Benchmark on the Stream Processing Core Authors:
Chapter 1.3: Data Models and DBMS Architecture Title: Anatomy of a Database System Authors: J. Hellerstein, M. Stonebraker Pages:
Chapter 3: Data Storage and Access Methods
ICS (072)Concurrency Control1 Transaction Processing and Concurrency Control Dr. Muhammad Shafique Chapter March 2008.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 15 Transaction Management.
Client-Server Caching James Wann April 4, Client-Server Architecture A client requests data or locks from a particular server The server in turn.
1 PERFORMANCE EVALUATION H Often in Computer Science you need to: – demonstrate that a new concept, technique, or algorithm is feasible –demonstrate that.
Chapter 4: Transaction Management
Two Techniques For Improving Distributed Database Performance ICS 214B Presentation Ambarish Dey Vasanth Venkatachalam March 18, 2004.
Wk 2 – Scheduling 1 CS502 Spring 2006 Scheduling The art and science of allocating the CPU and other resources to processes.
Benchmarks Title: A Measure of Transaction Processing Power Authors: Anon Et. Al. Datamation, 1985.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 10 Transaction Management and Concurrency Control.
Distributed Systems Fall 2009 Distributed transactions.
DBMS2001Notes 9: Transaction Processing1 Principles of Database Management Systems 9: More on Transaction Processing Pekka Kilpeläinen (Partially based.
Academic Year 2014 Spring Academic Year 2014 Spring.
INTRODUCTION TO TRANSACTION PROCESSING CHAPTER 21 (6/E) CHAPTER 17 (5/E)
Computer System Lifecycle Chapter 1. Introduction Computer System users, administrators, and designers are all interested in performance evaluation. Whether.
A New Method for Concurrency Control in Centralized Database Systems Victor T.S. Shi and William Perrizo Computer Science, North Dakota State University.
Presented by Dr. Greg Speegle April 12,  Two-phase commit slow relative to local transaction processing  CAP Theorem  Option 1: Reduce availability.
Performance Evaluation of Computer Systems Introduction
HPDCS Research Group Research Focus STM Systems Dependability of STM Performance Modelling of STM EURO-TM | 1 st Plenary.
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 10 Transaction Management.
1 Wenguang WangRichard B. Bunt Department of Computer Science University of Saskatchewan November 14, 2000 Simulating DB2 Buffer Pool Management.
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.
ICS (072)Concurrency Control Techniques1 Concurrency Control Techniques Chapter 18 Dr. Muhammad Shafique.
SCUJoAnne Holliday11–1 Schedule Today: u Transaction concepts. u Read Sections Next u Authorization and security.
1 Challenges in Scaling E-Business Sites  Menascé and Almeida. All Rights Reserved. Daniel A. Menascé Department of Computer Science George Mason.
Queueing Models with Multiple Classes CSCI 8710 Tuesday, November 28th Kraemer.
II.I Selected Database Issues: 2 - Transaction ManagementSlide 1/20 1 II. Selected Database Issues Part 2: Transaction Management Lecture 4 Lecturer: Chris.
Computer Science Lecture 13, page 1 CS677: Distributed OS Last Class: Canonical Problems Election algorithms –Bully algorithm –Ring algorithm Distributed.
A Survey on Optimistic Concurrency Control CAI Yibo ZHENG Xin
Concurrency Control and Reliable Commit Protocol in Distributed Database Systems Jian Jia Chen 2002/05/09 Real-time and Embedded System Lab., CSIE, National.
Page 1 Concurrency Control Paul Krzyzanowski Distributed Systems Except as otherwise noted, the content of this presentation.
Chapter 20 Transaction Management Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation and Management, 4 th Edition,
Transaction Management Overview. Transactions Concurrent execution of user programs is essential for good DBMS performance. – Because disk accesses are.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
CS333 Intro to Operating Systems Jonathan Walpole.
1 CSE232A: Database System Principles More Concurrency Control and Transaction Processing.
1 Lecture 4: Transaction Serialization and Concurrency Control Advanced Databases CG096 Nick Rossiter [Emma-Jane Phillips-Tait]
9 1 Chapter 9_B Concurrency Control Database Systems: Design, Implementation, and Management, Rob and Coronel.
Switch off your Mobiles Phones or Change Profile to Silent Mode.
10 1 Chapter 10_B Concurrency Control Database Systems: Design, Implementation, and Management, Rob and Coronel.
©Bob Godfrey, 2002, 2005 Lecture 17: Transaction Integrity and Concurrency BSA206 Database Management Systems.
Chapter 9: Web Services and Databases Title: NiagaraCQ: A Scalable Continuous Query System for Internet Databases Authors: Jianjun Chen, David J. DeWitt,
On Transactional Memory, Spinlocks and Database Transactions Khai Q. Tran Spyros Blanas Jeffrey F. Naughton (University of Wisconsin Madison)
18 September 2008CIS 340 # 1 Last Covered (almost)(almost) Variety of middleware mechanisms Gain? Enable n-tier architectures while not necessarily using.
Chapter 13 Managing Transactions and Concurrency Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
OPERATING SYSTEMS CS 3502 Fall 2017
Transaction Management and Concurrency Control
Predictive Performance
Chapter 10 Transaction Management and Concurrency Control
AVOIDANCE OF SYSTEM DEADLOCKS IN REAL TIME CONTROL OF FLEXIBLE MANUFACTURING SYSTEMS By Richard A. Wysk.
CS 333 Introduction to Operating Systems Class 7 - Deadlock
Introduction of Week 13 Return assignment 11-1 and 3-1-5
CONCURRENCY Concurrency is the tendency for different tasks to happen at the same time in a system ( mostly interacting with each other ) .   Parallel.
Distributed Optimistic Algorithm
Presentation transcript:

Transactions – T4.3 Title: Concurrency Control Performance Modeling: Alternatives and Implications Authors: R. Agarwal, M. J. Carey, M. Livny ACM TODS, 12(4), 1987

Outline Problem –Problem Statement –Why is this problem important? –Why is this problem hard? Approaches –Approach description, key concepts –Contributions (novelty, improved) –Assumptions

Problem Statement Given –Alternative Concurrency Control Algorithms (CCAs) –Transaction Processing Systems Find –Relative performance of CCAs, e.g. dominance zones Objective –Compare CCAs on throughput, response time Constraints –Transaction conflicts –Database system’s resources, models of transaction restarts –Amount of information about transaction reference strings

Why is this problem important? –Applications: Transaction Processing – online, batch Airline reservation system Banking ATM E-commerce Why is this problem hard? –CCA performance depends on many issues Workload – degree of conflict among transactions Resources, e.g. CPUs, I/O architecture –Seemingly contradictory results in prior work, p. 610 para 2 Blocking vs. restarts - [2, 15] vs. [6, 50, 51] Locks vs. optimistic – [20] vs. [2, 15]

Key Concepts - CCAs BlockingLocks – read lock, write lock Block a transaction if lock request is denied Deadlock detection and resolution – wait-for graphs Ex. – Dynamic two-phase locking Immediate Restart Locks – read lock, write lock Abort and restart a transaction if lock request is denied Restart delay = O(expected transaction response time) OptimisticValidate only after commit point Restart transaction if validation fails, e.g. if a transaction read an object written by another transaction committed during its lifetime

Key Concepts – Queueing Model

Experiment Design - Parameters

Contributions – Experimental Results 1. Infinite Resources –Optimistic >> Blocking Blocking thrashes (Fig. 5) as multi-programming increases increase in number of times a transaction blocks –Standard deviation (response time) less for Blocking (Fig. 7) Lock waiting time << Restart time 2. Resource-Limited Situation (1 CPU, 2 Disks) –All exhibit thrashing (Fig. 8) as multi-programming increases Disk is the bottleneck (Fig. 9) –Blocking CCA has highest throughput (Fig. 8) And lowest mean response time (Fig. 10) 3. Multiple (5 – 50) Resources –5 – 10 resources – behavior similar to resource limited –25 resources – Optimistic has max. throughput (Fig. 18, 19) Disk utilization is better for optimistic (80%) than Blocking (35%) –50 resources – similar to infinite resources

Contributions – Experimental Results 4. Interactive Workloads – read; think; write –Large think time => low resource contention –Optimistic >> Blocking –Behavior similar to infinite resources Summary Conclusions Based on Resources –Resource Level Medium to High resource utilization – Blocking (2PL) is better Low utilization – Restart methods are better –Control Multi-programming level To avoid thrashing

Validation Methodology –Simulation using a queueing model of transaction processing –A large number of parameters –Characterize dominance zones Validation of Simulation Results –Physical justification of queueing model –Experimental results Comparison with previous work Explanation including alternative causes –Further experiments to identify causes

Assumptions Queueing model is a accurate model of OLTP systems Parameter Choices –CCAs Write locks are acquired only after read locks (promotion) –Parameters

Rewrite today Update with current benchmarks, e.g. TPC –Parameter values – e.g. reflect current database sizes –Throughput  TPS including response time constraint –Candidates  Newer locking protocols, e.g. granularity –Transactions  Use DebitCredit, TPC-A, TPC-C, … –Queueing model  Complete OLTP systems Consider Alternatives –Analytical solutions –Trace driven workload characterization and simulation See page 79 of A. Thomasian, Concurrency control: methods, performance, and analysis, ACM Computing Surveys, March 1998.A. Thomasian, Concurrency control: methods, performance, and analysis, ACM Computing Surveys, March 1998.