Skip to main content
Log in

Analysis of locking behavior in three real database systems

  • Published:
The VLDB Journal Aims and scope Submit manuscript

Abstract.

Concurrency control is essential to the correct functioning of a database due to the need for correct, reproducible results. For this reason, and because concurrency control is a well-formulated problem, there has developed an enormous body of literature studying the performance of concurrency control algorithms. Most of this literature uses either analytic modeling or random number-driven simulation, and explicitly or implicitly makes certain assumptions about the behavior of transactions and the patterns by which they set and unset locks. Because of the difficulty of collecting suitable measurements, there have been only a few studies which use trace-driven simulation, and still less study directed toward the characterization of concurrency control behavior of real workloads. In this paper, we present a study of three database workloads, all taken from IBM DB2 relational database systems running commercial applications in a production environment. This study considers topics such as frequency of locking and unlocking, deadlock and blocking, duration of locks, types of locks, correlations between applications of lock types, two-phase versus non-two-phase locking, when locks are held and released, etc. In each case, we evaluate the behavior of the workload relative to the assumptions commonly made in the research literature and discuss the extent to which those assumptions may or may not lead to erroneous conclusions.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Institutional subscriptions

Similar content being viewed by others

Author information

Authors and Affiliations

Authors

Additional information

Edited by H. Garcia-Molina. Received April 5, 1994 / Accepted November 1, 1995

Rights and permissions

Reprints and permissions

About this article

Cite this article

Singhal, V., Smith, A. Analysis of locking behavior in three real database systems . The VLDB Journal 6, 40–52 (1997). https://doi.org/10.1007/s007780050032

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1007/s007780050032

Navigation