Locking performance in centralized databases
- 1 December 1985
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Database Systems
- Vol. 10 (4) , 415-462
- https://doi.org/10.1145/4879.4880
Abstract
An analytic model is used to study the performance of dynamic locking. The analysis uses only the steady-state average values of the variables. The solution to the model is given by a cubic, which has exactly one valid root for the range of parametric values that is of interest. The model's predictions agree well with simulation results for transactions that require up to twenty locks. The model separates data contention from resource contention, thus facilitating an analysis of their separate effects and their interaction. It shows that systems with a particular form of nonuniform access, or with shared locks, are equivalent to systems with uniform access and only exclusive locks. Blocking due to conflicts is found to impose an upper bound on transaction throughput; this fact leads to a rule of thumb on how much data contention should be permitted in a system. Throughput can exceed this bound if a transaction is restarted whenever it encounters a conflict, provided restart costs and resource contention are low. It can also be exceeded by making transactions predeclare their locks. Raising the multiprogramming level to increase throughput also raises the number of restarts per completion. Transactions should minimize their lock requests, because data contention is proportional to the square of the number of requests. The choice of how much data to lock at a time depends on which part of a general granularity curve the system sees.Keywords
This publication has 19 references indexed in Scilit:
- A mean value performance model for locking in databasesJournal of the ACM, 1985
- A model of transaction blocking in databasesPerformance Evaluation, 1983
- On the modeling of parallel access to shared dataCommunications of the ACM, 1983
- Structural locking mechanisms and their effect on database management system performanceInformation Systems, 1982
- Concurrency Control in Distributed Database SystemsACM Computing Surveys, 1981
- Analysis of locking policies in database management systemsCommunications of the ACM, 1980
- The Operational Analysis of Queueing Network ModelsACM Computing Surveys, 1978
- Approximating block accesses in database organizationsCommunications of the ACM, 1977
- The notions of consistency and predicate locks in a database systemCommunications of the ACM, 1976
- Open, Closed, and Mixed Networks of Queues with Different Classes of CustomersJournal of the ACM, 1975