skip to main content
10.1145/1073814.1073861acmconferencesArticle/Chapter ViewAbstractPublication PagespodcConference Proceedingsconference-collections
Article

Advanced contention management for dynamic software transactional memory

Published:17 July 2005Publication History

ABSTRACT

The obstruction-free Dynamic Software Transactional Memory (DSTM) system of Herlihy et al@. allows only one transaction at a time to acquire an object for writing. Should a second require an object currently in use, a contention manager must determine which may proceed and which must wait or abort.We analyze both new and existing policies for this contention management problem, using experimental results from a 16-processor SunFire machine. We consider both visible and invisible versions of read access, and benchmarks that vary in complexity, level of contention, tendency toward circular dependence, and mix of reads and writes. We present fair proportional-share prioritized versions of several policies, and identify a candidate default policy: one that provides, for the first time, good performance in every case we test. The tradeoff between visible and invisible reads remains application-specific: visible reads reduce the overhead for incremental validation when opening new objects, but the requisite bookkeeping exacerbates contention for the memory interconnect.

References

  1. T. E. Anderson. The Performance of Spin Lock Alternatives for Shared-Memory Multiprocessors. IEEE Trans. on Parallel and Distributed Systems, 1(1):6--16, Jan. 1990.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. K. M. Chandy and J. Misra. The Drinking Philosophers Problem. ACM Trans. on Programming Languages and Systems, 6(4):632--646, Oct. 1984.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. K. Fraser. Practical Lock-Freedom. Ph.17emD. dissertation, UCAM-CL-TR-579, Computer Laboratory, University of Cambridge, Feb. 2004.]]Google ScholarGoogle Scholar
  4. T. Harris and K. Fraser. Language Support for Lightweight Transactions. In OOPSLA 2003 Conf. Proc., Anaheim, CA, Oct. 2003.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. B. He, W. N. Scherer III, and M. L. Scott. Preemption Adaptivity in Time-Published Queue-Based Spin Locks. TR 867, Computer Science Dept., Univ. of Rochester, May 2005.]]Google ScholarGoogle Scholar
  6. M. Herlihy, V. Luchangco, and M. Moir. Obstruction-Free Synchronization: Double-Ended Queues as an Example. In Proc. of the 23rd Intl. Conf. on Distributed Computing Systems, Providence, RI, May, 2003.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. M. Herlihy, V. Luchangco, M. Moir, and W. N. Scherer III. Software Transactional Memory for Dynamic-sized Data Structures. In Proc. of the 22nd ACM Symp. on Principles of Distributed Computing, pages 92--101, Boston, MA, July 2003.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. M. Herlihy and J. E. Moss. Transactional Memory: Architectural Support for Lock-Free Data Structures. In Proc. of the 20th Intl. Symp. on Computer Architecture, pages 289--300, San Diego, CA, May 1993. Expanded version available as CRL 92/07, Dec. Cambridge Research Laboratory, Dec. 1992.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. D. Lea. Concurrency JSR-166 Interest Site. http://gee.cs.oswego.edu/dl/concurrency-interest/.]]Google ScholarGoogle Scholar
  10. V. J. Marathe, M. L. Scott, and W. N. Scherer III. Adaptive Software Transactional Memory. TR 868, Computer Science Dept., Univ. of Rochester, May 2005.]]Google ScholarGoogle Scholar
  11. J. T. Robinson and M. V. Devarakonda. Data Cache Management Using Frequency-Based Replacement. In Proc. of ACM SIGMETRICS, pages 134--142, 1990.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. W. N. Scherer III and M. L. Scott. Contention Management in Dynamic Software Transactional Memory. In Proc. of the ACM PODC Workshop on Concurrency and Synchronization in Java Programs, St. John's, NL, Canada, July, 2004.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. N. Shavit and D. Touitou. Software Transactional Memory. In Proc. of the 14th ACM Symp. on Principles of Distributed Computing, pages 204--213, Ottawa, Canada, Aug. 1995.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. E. Tune, D. Liang, D. M. Tullsen, and B. Calder. Dynamic Prediction of Critical Path Instructions. In Proc. of the 7th Intl. Symp. on High Performance Computer Architecture, pages 185--196, Jan. 2001.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. C. A. Waldspurger and W. E. Weihl. Lottery Scheduling: Flexible Proportional-Share Resource Management. In Proc. of the 1st Symp. on Operating Systems Design and Implementation, Monterey, CA, Nov. 1994.]] Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Advanced contention management for dynamic software transactional memory

      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
      • Published in

        cover image ACM Conferences
        PODC '05: Proceedings of the twenty-fourth annual ACM symposium on Principles of distributed computing
        July 2005
        364 pages
        ISBN:1581139942
        DOI:10.1145/1073814

        Copyright © 2005 ACM

        Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 17 July 2005

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • Article

        Acceptance Rates

        Overall Acceptance Rate740of2,477submissions,30%

        Upcoming Conference

        PODC '24

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader