|
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.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
 |
1
|
|
 |
2
|
|
 |
3
|
Forest Baskett , K. Mani Chandy , Richard R. Muntz , Fernando G. Palacios, Open, Closed, and Mixed Networks of Queues with Different Classes of Customers, Journal of the ACM (JACM), v.22 n.2, p.248-260, April 1975
[doi> 10.1145/321879.321887]
|
| |
4
|
BEERI, C., AND OBERMARCK, R. A resource class independent deadlock detection algorithm. In Proceedings of the International Conference on Very Large Data Bases (Cannes, France, Sept. 1981), pp. 166-178.
|
 |
5
|
|
| |
6
|
|
| |
7
|
|
| |
8
|
CHAMBERLIN, D. D., BO~CE, R. F., AND TRAIGER, I.L. A deadlock-free scheme for resource allocation in a database environment. In Info. Proc. 74, North-Holland, Amsterdam, 1974, 340-343.
|
 |
9
|
|
| |
10
|
|
 |
11
|
|
| |
12
|
DENNING, P. J., KAHN, K. C., LEROUDIER, J., POTIER, D., AND SURI, R. Optimal multiprogramming. Acta In}:. 7, 2 (1976), 197-216.
|
| |
13
|
DEVOR, C., AND CARLSON, C.a. Structural locking mechanisms and their effect on database management system performance. Inf. Syst. 7, 4 (1982), 345-358.
|
 |
14
|
|
| |
15
|
GALLER, B. I., AND BOS, L. A model of transaction blocking in databases. Performance Eval. 3 (1983), 95-122.
|
| |
16
|
|
| |
17
|
|
| |
18
|
GRAY, J., HOMAN, P., KORTH, H., AND OBERMARCK, R. A straw man analysis of the probability of waiting and deadlock in a database system. Tech. Rep. RJ3066, IBM Research Lab., San Jose, Calif., Feb. 1981.
|
 |
19
|
|
| |
20
|
|
| |
21
|
|
 |
22
|
|
| |
23
|
LIN, W. K., AND NOLTE, J. Performance of two phase locking. In Proceedings of the 6th Berkeley Workshop on Distributed Data Management and Computer Networks (Berkeley, Calif., Feb. 1982), pp. 131-160.
|
| |
24
|
MITRA, D. Probabilistic models and asymptotic results for concurrent processing with exclusive and non-exclusive locks. SIAM J. Comput. To be published.
|
| |
25
|
MORRIS, R. J. T., AND WONG, W.S. Performance analysis of locking and optimistic concurrency control algorithms. Tech. Rep., AT&T Bell Lab.
|
 |
26
|
|
 |
27
|
|
| |
28
|
|
| |
29
|
Rvu, I. K., AND THOMASIAN, A. Analysis of database performance with dynamic locking. In preparation.
|
| |
30
|
SEVClK, K.C. Comparison of concurrency control methods using analytic models. In in{o. Proc. 83, R. E. A. Mason, Ed. North-Holland, Amsterdam, 1983, pp. 847-858.
|
| |
31
|
SHUM, A. W., AND SP|RAKIS, P.G. Performance analysis of concurrency control methods in database systems. Performance 81, F. J. Kylstra, Ed. North-Holland, Amsterdam, 1981, pp. 1- 19.
|
| |
32
|
SURI, R., AND DIEHL, G.W. A variable buffer-size model and its use in analyzing closed queuing networks with blocking. Submitted for publication.
|
| |
33
|
|
| |
34
|
TAY, Y. C., GOODMAN, N., AND SUm, R. Performance evaluation of locking in databases: A survey. Tech. Rep. TR 17-84, Aiken Computation Lab., Harvard Univ., Cambridge, Mass., Oct. 1984.
|
 |
35
|
|
| |
36
|
THOMAS|AN, A. An iterative solution to the queuing network model of a DBMS with dynamic locking. In Proceedings of the 13th Computer Measurement Group Conference (San Diego, Calif., Dec. 1982), pp. 252-261.
|
 |
37
|
|
 |
38
|
|
CITED BY 58
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
D. Agrawal , A. El Abbadi , R. Jeffers, An approach to eliminate transaction blocking in locking protocols, Proceedings of the eleventh ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.223-235, June 02-05, 1992, San Diego, California, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Michael J. Carey , Sanjay Krishnamurthi , Miron Livny, Load control for locking: the “half-and-half” approach, Proceedings of the ninth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.72-84, April 02-04, 1990, Nashville, Tennessee, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sameh Elnikety , Erich Nahum , John Tracey , Willy Zwaenepoel, A method for transparent admission control and request scheduling in e-commerce web sites, Proceedings of the 13th international conference on World Wide Web, May 17-20, 2004, New York, NY, USA
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gerhard Weikum , Axel Moenkeberg , Christof Hasse , Peter Zabback, Self-tuning database technology and information services: from wishful thinking to viable engineering, Proceedings of the 28th international conference on Very Large Data Bases, p.20-31, August 20-23, 2002, Hong Kong, China
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|