Analyzing Contention and Backoff in Asynchronous Shared Memory

N. Ben-David, G. Blelloch
{"title":"Analyzing Contention and Backoff in Asynchronous Shared Memory","authors":"N. Ben-David, G. Blelloch","doi":"10.1145/3087801.3087828","DOIUrl":null,"url":null,"abstract":"Randomized backoff protocols have long been used to reduce contention on shared resources. They are heavily used in communication channels and radio networks, and have also been shown to greatly improve the performance of shared memory algorithms in real systems.However, while backoff protocols are well understood in many settings, their effect in shared memory has never been theoretically analyzed. This discrepency may be due to the difficulty of modeling asynchrony without eliminating the advantage gained by local delays. In this paper, we introduce a new cost model for contention in shared memory. Our model allows for adversarial asynchrony, but also provides a clear notion of time, thus enabling easy calculation of contention costs and delays. We then consider a simple use case in which n processes try to update a single memory location. Using our model, we first show that a naive protocol, without any backoff, requires \\Omega(n^3) work until all processes successfully update that location. We then analyze the commonly used exponential delay protocol, and show that it requires \\Theta(n^2 \\log n) work with high probability. Finally, we show that the exponential delay protocol is suboptimal, by introducing a new backoff protocol based on adaptive probabilities and showing that, for the same use case, it requires only O(n^2) work with high probability.","PeriodicalId":324970,"journal":{"name":"Proceedings of the ACM Symposium on Principles of Distributed Computing","volume":"18 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2017-07-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"9","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the ACM Symposium on Principles of Distributed Computing","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3087801.3087828","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 9

Abstract

Randomized backoff protocols have long been used to reduce contention on shared resources. They are heavily used in communication channels and radio networks, and have also been shown to greatly improve the performance of shared memory algorithms in real systems.However, while backoff protocols are well understood in many settings, their effect in shared memory has never been theoretically analyzed. This discrepency may be due to the difficulty of modeling asynchrony without eliminating the advantage gained by local delays. In this paper, we introduce a new cost model for contention in shared memory. Our model allows for adversarial asynchrony, but also provides a clear notion of time, thus enabling easy calculation of contention costs and delays. We then consider a simple use case in which n processes try to update a single memory location. Using our model, we first show that a naive protocol, without any backoff, requires \Omega(n^3) work until all processes successfully update that location. We then analyze the commonly used exponential delay protocol, and show that it requires \Theta(n^2 \log n) work with high probability. Finally, we show that the exponential delay protocol is suboptimal, by introducing a new backoff protocol based on adaptive probabilities and showing that, for the same use case, it requires only O(n^2) work with high probability.
异步共享内存中的争用和回退分析
长期以来,随机回退协议一直用于减少共享资源上的争用。它们在通信信道和无线网络中被大量使用,并且在实际系统中也被证明可以极大地提高共享内存算法的性能。然而,虽然后退协议在许多情况下都得到了很好的理解,但它们在共享内存中的影响从未从理论上进行过分析。这种差异可能是由于在不消除本地延迟所带来的优势的情况下对异步建模的困难。本文引入了一种新的共享内存争用代价模型。我们的模型允许对抗异步,但也提供了一个清晰的时间概念,因此可以轻松计算争用成本和延迟。然后我们考虑一个简单的用例,其中n个进程试图更新单个内存位置。使用我们的模型,我们首先展示了一个朴素的协议,没有任何后退,需要\Omega (n^3)工作,直到所有进程成功更新该位置。然后,我们分析了常用的指数延迟协议,并表明它需要\Theta (n^2 \log n)的高概率工作。最后,我们通过引入一个基于自适应概率的新退退协议来证明指数延迟协议是次优的,并表明,对于相同的用例,它只需要高概率的O(n^2)工作。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信