跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 分布式、并行与集群计算

arXiv:2501.07503 (cs)
[提交于 2025年1月13日 (v1),最后修订于 2026年12月3日 (此版本, v2)]

标题:Big Atomics

作者:Daniel Anderson, Guy E. Blelloch, Zak Kent, Siddhartha Jayanti
查看论文《Big Atomics》的 PDF
查看中文 PDF 查看原文 PDF EasyResearch 阅读
摘要:Atomic operations, such as load, store, and compare-and-swap (CAS), on single words form the basis of multiprocessor programming. Atomics on multiple adjacent words, i.e., Big Atomics, are a powerful construct with wide utility in concurrent programming and algorithm design. Unfortunately, there are no existing algorithms for big atomics that are simultaneously efficient in theory and practice. Algorithms based on sequence locks work well in practice when processes are not interrupted, but are blocking, and hence not theoretically efficient, nor efficient in practice under contention and oversubscription. On the other hand, theoretically efficient non-blocking solutions (wait-free or lock-free) require a level of indirection and suffer a significant practical cost. In this paper, we present two new algorithms for big atomics, which are non-blocking, but avoid indirection in most cases. The first algorithm is wait-free and supports operations in time proportional to the size of the atomic, but requires storing two copies of each object. The second is lock-free and its memory usage is optimal within low-order terms. Both use a practical caching scheme, in which updated values are temporarily stored using a level of indirection and then are replaced with the direct value. We experimentally evaluate our algorithms, comparing them to traditional locks, sequence locks, hardware transactional memory (HTM), and indirection (wait-free). Comparisons are across a broad set of workloads. Our experiments show that our algorithms, and our lock-free memory-efficient algorithm in particular, perform competitively with the best blocking solution (sequence lock) in friendly conditions, but are significantly better when there are more software threads than hardware threads (oversubscription). We also measure the performance of big atomics as part of ParlayHash, a state-of-the-art concurrent hash map.
主题: 分布式、并行与集群计算 (cs.DC); 数据结构与算法 (cs.DS)
引用方式: arXiv:2501.07503 [cs.DC]
  (或者 arXiv:2501.07503v2 [cs.DC] 对于此版本)
  https://doi.org/10.48550/arXiv.2501.07503
相关 DOI: https://doi.org/10.1145/3816782.3819220

提交历史

来自:Daniel Anderson
[v1] 2025年1月13日 星期一 17:19:38 UTC (1,376 KB)
[v2] 2026年12月3日 星期四 16:21:39 UTC (354 KB)
全文链接:

访问论文:

  • 查看中文 PDF
  • 查看原文 PDF
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.DC
< 上一篇   |   下一篇 >
最新 | 近期 | 2026-12
切换浏览方式为:
cs
cs.DS

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站