Skip to main content
Log in

Tractable low-delay atomic memory

  • Published:
Distributed Computing Aims and scope Submit manuscript

Abstract

Communication cost is the most commonly used metric in assessing the efficiency of operations in distributed algorithms for message-passing environments. In doing so, the standing assumption is that the cost of local computation is negligible compared to the cost of communication. However, in many cases, operation implementations rely on complex computations that should not be ignored. Therefore, a more accurate assessment of operation efficiency should account for both computation and communication costs. This paper focuses on the efficiency of read and write operations in emulations of atomic read/write shared memory in the asynchronous, message-passing, crash-prone environment. The much celebrated work by Dutta et al. presented an implementation in this setting where all read and write operations could complete in just a single communication round-trip. Such operations where characterized for the first time as fast. At its heart, the work by Dutta et al. used a predicate to achieve that performance. We show that the predicate is computationally intractable by defining an equivalent problem and reducing it to Maximum Biclique, a known NP-hard problem. We derive a new, computationally tractable predicate, and an algorithm to compute it in linear time. The proposed predicate is used to develop three algorithms: ccFast, ccHybrid, and OhFast. ccFast is similar to the algorithm of Dutta et al. with the main difference being the use of the new predicate for reduced computational complexity. All operations in ccFast are fast, and particular constraints apply in the number of participants. ccHybrid and OhFast, allow some operations to be “slow”, enabling unbounded participants in the service. ccHybrid is a “multi-speed” version of ccFast, where the reader determines when it is not safe to complete a read operation in a single communication round-trip. OhFast, expedites algorithm OhSam of Hadjistasi et al. by placing the developed predicate at the servers instead of clients and avoiding excessive server communication when possible. An experimental evaluation using NS3 compares algorithms ccHybrid and OhFast to the classic algorithm ABD of Attiya et al., the algorithm Sf of Georgiou et al. (the first “semifast” algorithm, allowing both fast and slow operations), and algorithm OhSam. In summary, this work gives the new meaning to the term fast by assessing both the communication and the computation efficiency of each operation.

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.

Fig. 1
Fig. 2
Fig. 3

Similar content being viewed by others

Notes

  1. Notice that, this is another departure from OhSam as each reader in OhSam returns the smallest discovered timestamp.

References

  1. Attiya, H., Bar-Noy, A., Dolev, D.: Sharing memory robustly in message passing systems. J. ACM 42(1), 124–142 (1996)

    Article  Google Scholar 

  2. Dutta, P., Guerraoui, R., Levy, R.R., Vukolić, M.: Fast access to distributed atomic memory. SIAM J. Comput. 39(8), 3752–3783 (2010)

    Article  MathSciNet  Google Scholar 

  3. Englert, B., Georgiou, C., Musial, P.M., Nicolaou, N., Shvartsman, A.A.: On the efficiency of atomic multi-reader, multi-writer distributed memory. In: Proceedings 13th International Conference On Principle Of DIstributed Systems (OPODIS 09), pp. 240–254 (2009)

  4. Fernández Anta, A., Nicolaou, N., Popa, A.: Making “fast” atomic operations computationally tractable. In Proceedings 19th International Conference on Principle of Distributed Systems (OPODIS 15) (2015)

  5. Fernández Anta, A., Hadjistasi, T., Nicolaou, N.: Computationally light “multi-speed” atomic memory. In: International Conference on Principles Of Distributed Systems, OPODIS’16 (2016)

  6. Garey, M.R., Johnson, D.S.: Computers and intractability. In: A Guide to the Theory of NP-Completeness. W. H. Freeman & Co., USA. ISBN: 0716710455 (1990)

  7. Georgiou, C., Kentros, S., Nicolaou, N.C., Shvartsman, A.A.: Analyzing the number of slow reads for semifast atomic read/write register implementations. In: Proceedings Parallel and Distributed Computing and Systems (PDCS09), pp. 229–236 (2009)

  8. Georgiou, C., Nicolaou, N., Russel, A., Shvartsman, A.A.: Towards feasible implementations of low-latency multi-writer atomic registers. In: 10th Annual IEEE International Symposium on Network Computing and Applications (2011)

  9. Georgiou, C., Nicolaou, N.C., Shvartsman, A.A.: On the robustness of (semi) fast quorum-based implementations of atomic shared memory. In: DISC ’08: Proceedings of the 22nd International Symposium on Distributed Computing, pp. 289–304. Springer, Berlin, Heidelberg (2008)

  10. Georgiou, C., Nicolaou, N.C., Shvartsman, A.A.: Fault-tolerant semifast implementations of atomic read/write registers. J. Parallel Distrib. Comput. 69(1), 62–79 (2009)

    Article  Google Scholar 

  11. Hadjistasi, T., Nicolaou, N., Schwarzmann, A.A.: Brief announcement: oh-ram! one and a half round read/write atomic memory. In: Proceedings of the 2016 ACM Symposium on Principles of Distributed Computing, PODC ’16, pp. 353–355. ACM, New York, NY, USA (2016)

  12. Hadjistasi, T., Nicolaou, N.C., Schwarzmann, A.A.: Oh-ram! one and a half round atomic memory. In: Networked Systems—5th International Conference, NETYS 2017, Marrakech, Morocco, May 17-19, 2017, Proceedings, pp. 117–132 (2017)

  13. Herlihy, M.P., Wing, J.M.: Linearizability: a correctness condition for concurrent objects. ACM Trans. Program. Lang. Syst. (TOPLAS) 12(3), 463–492 (1990)

    Article  Google Scholar 

  14. Lamport, L.: How to make a multiprocessor computer that correctly executes multiprocess progranm. IEEE Trans. Comput. 28(9), 690–691 (1979)

    Article  Google Scholar 

  15. Lynch, N.A.: Distributed Algorithms. Morgan Kaufmann Publishers, Burlington (1996)

    MATH  Google Scholar 

  16. Lynch, N.A., Shvartsman, A.A.: Robust emulation of shared memory using dynamic quorum-acknowledged broadcasts. In: Proceedings of Symposium on Fault-Tolerant Computing, pp. 272–281 (1997)

  17. NS3 network simulator. https://www.nsnam.org/

  18. Xavier, E.C.: A note on a maximum k-subset intersection problem. Inf. Process. Lett. 112(12), 471–472 (2012)

    Article  MathSciNet  Google Scholar 

Download references

Acknowledgements

This work was co-funded by the European Regional Development Fund and the Republic of Cyprus through the Research and Innovation Foundation (Project: POST-DOC/0916/0090), by FP7-PEOPLE-2013-IEF Grant ATOMICDFS No:629088, the Spanish Grant TIN2017-88749-R (DiscoEdge), the Region of Madrid EdgeData-CM program (P2018/TCS-4499), and the NSF of China Grant 61520106005.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Nicolas Nicolaou.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

This work combines results from [4, 5], that appeared in OPODIS’15 and OPODIS’16 respectively.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Anta, A.F., Hadjistasi, T., Nicolaou, N. et al. Tractable low-delay atomic memory. Distrib. Comput. 34, 33–58 (2021). https://doi.org/10.1007/s00446-020-00379-y

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00446-020-00379-y

Navigation