Locking performance in centralized databases
Yong Chiang Tay, Nathan Goodman, R. Suri · ACM Transactions on Database Systems · 1985
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.
Cited by 146 works. doi:10.1145/4879.4880 Open-access PDF
Authors
References
- The notions of consistency and predicate locks in a database system
- Notes on data base operating systems
- Open, Closed, and Mixed Networks of Queues with Different Classes of Customers
- Concurrency Control in Distributed Database Systems
- Approximating block accesses in database organizations
- The Operational Analysis of Queueing Network Models
- Proceedings of the International Conference on Very Large Data Bases
- A transaction model
- Analysis of locking policies in database management systems
- Models for studying concurrency control performance