skip to main content
article
Free Access

Performance evaluation of cautious waiting

Published:01 September 1992Publication History
Skip Abstract Section

Abstract

We study a deadlock-free locking-based concurrency control algorithm, called cautious waiting, which allows for a limited form of waiting. The algorithm is very simple to implement. We present an analytical solution to its performance evaluation based on the mean-value approach proposed by Tay et al. [18]. From the modeling point of view, we are able to do away with a major assumption used in Tay's previous work, and therefore capture more accurately both the restart and the blocking rates in the system. We show that to solve for this model we only need to solve for the root of a polynomial. The analytical tools developed enable us to see that the cautious waiting algorithm manages to achieve a delicate balance between restart and blocking, and therefore is superior (i.e., has higher throughput to both the no-waiting (i.e., immediate restart) and the general waiting algorithms under a wide range of system parameters. The study substantiates the argument that balancing restart and blocking is important in locking systems.

References

  1. 1 AGRAWAL, R., CAREY, M. J., AND LIVNY, M. Concurrency control performance modeling: Alternatives and implications. ACM Trans. Database Syst. 12, 4 (Dec. 1987). Google ScholarGoogle Scholar
  2. 2 AGRAWAL, R., AND CAREY, M. J. Performance of alternative strategies for dealing with deadlocks in DBMSs. Submitted for publication.Google ScholarGoogle Scholar
  3. 3 BALTER, R., BERARD, P., AND DECITRE, P. Why control of concurrency level in distributed systems is more fundamental than deadlock management. In Proceedings of the ACM PODC (Ottawa, Aug. 1982), pp. 183 193. Google ScholarGoogle Scholar
  4. 4 BERNSTEIN, P. A., SHIPMAN, D. W., AND ROTHNIE, J.B. Concurrency control in a system for distributed databases (SDD-1). ACM Trans. Database Syst. 5, 1 (Mar. 1980), 18-51. Google ScholarGoogle Scholar
  5. 5 CAREY, M., AND STONEBRAKER, M. The performance of concurrency control algorithms for database management systems. In Proeeedtngs of the lOth VLDB (Singapore, Aug. 1984). Google ScholarGoogle Scholar
  6. 6 CHBSNAIS, A., GELENBE, E., AND MITRANI, I. On the modeling of parallel access to shared data. Commun. ACM 26, 3 (Mar. 1983), 196 202. Google ScholarGoogle Scholar
  7. 7 FRANASZEK, P., AND ROBINSON, J.T. Limitations of concurrency in transaction processing. ACM Trans. Database Syst. 10, 1 (Mar. 1985), 1-28. Google ScholarGoogle Scholar
  8. 8 ESWARAN, K. P., GRAY, J. N, LORIE, R. A., AND TRA1GER, I.L. The notions of consistency and predicate locks in a database system. Commun. ACM 19, 11 (Nov. 1976), 624-633. Google ScholarGoogle Scholar
  9. 9 GRAY, J. N. Notes on database operating systems. In Operating Systems--An Advanced Course. R. Bayer, R. M. Graham, B. G. Seegmuller, Eds. Springer-Verlag, New York, 1978, pp. 393-481. Google ScholarGoogle Scholar
  10. 10 IRANI, K., AND LIN, H. Queuing network models for concurrent transaction processing in a database system. In Proceedings of the ACM-SYGMOD. ACM, New York, 1979. Google ScholarGoogle Scholar
  11. 11 KUMAR, V. An analysis of the roll-back and blocking operations of three concurrency control mechanisms. In Procee&ngs of Natzonal Computer Conference. 1987.Google ScholarGoogle Scholar
  12. 12 KUNG, H. T., AND ROBINSON, J. On optimistic methods for concurrency control. ACM Trans. Database Syst. 6, 2 (June 1981). Google ScholarGoogle Scholar
  13. 13 PAPADIMI~RIOU, C. The serializability of concurrent database updates. J. ACM 26, 4 (Oct. 1979). Google ScholarGoogle Scholar
  14. 14 POTIER, D., AND LEBLANC, P. Analysis of locking policies in database management systems. Commun. ACM 23, 10 (Oct. 1980). Google ScholarGoogle Scholar
  15. 15 ROSENKRANTZ, D. J., STEARNS, R. E., AND LEWIS, P.M. System level concurrency control for distributed database systems. ACM Trans Database Syst. 3, 2 (June 1978), 178 198 Google ScholarGoogle Scholar
  16. 16 TAY, Y.C. A mean value performance model for locking in databases. Ph.D. thesis, Harvard Univ., Cambridge, Mass, Feb. 1984. Google ScholarGoogle Scholar
  17. 17 TAY, Y. C, Sum, R., AND GOODMAN, N. A mean value performance model for locking in databases: The no waiting case. J. ACM 32, 3 (July 1985), 618-651. Google ScholarGoogle Scholar
  18. 18 TAY, Y. C., Sum, R., AND GOODMAN, N. Locking performance in centralized databases. ACM Trans. Database Syst. 10, 4, (Dec. 1985), 415-462. Google ScholarGoogle Scholar
  19. 19 THOMASIAN, A., AND RYU, I. A decomposition solution to the queuing network model of the centrahzed DBMS with statm locking. In Proceedzngs of the ACM-SIGMETRICS Conference on Measurement and Modeling of Computer systems (Minneapohs, Aug. 1983). Google ScholarGoogle Scholar

Index Terms

  1. Performance evaluation of cautious waiting

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in

        Full Access

        • Published in

          cover image ACM Transactions on Database Systems
          ACM Transactions on Database Systems  Volume 17, Issue 3
          Sept. 1992
          176 pages
          ISSN:0362-5915
          EISSN:1557-4644
          DOI:10.1145/132271
          Issue’s Table of Contents

          Copyright © 1992 ACM

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 1 September 1992
          Published in tods Volume 17, Issue 3

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • article

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader