按年被提到
20172017 · 1 次2026
系统、数据库与网络›计算机体系结构与硬件·arXiv:1707.05923 · cs.PL

Weak Memory Models: Balancing Definitional Simplicity and Implementation Flexibility

Sizhuo Zhang, Muralidaran Vijayaraghavan, Arvind · 2017
开始阅读 ↗PDFalphaXiv 讨论
被提及 · 2 人首次 2017-11-02 · 最近 2022-11-27
2不同的人
2活跃月份
2讨论串
9被引(OpenAlex)
arXiv 摘要(候选层不写导读)

The memory model for RISC-V, a newly developed open source ISA, has not been finalized yet and thus, offers an opportunity to evaluate existing memory models. We believe RISC-V should not adopt the memory models of POWER or ARM, because their axiomatic and operational definitions are too complicated. We propose two new weak memory models: WMM and WMM-S, which balance definitional simplicity and implementation flexibility differently. Both allow all instruction reorderings except overtaking of loads by a store. We show that this restriction has little impact on performance and it considerably simplifies operational definitions. It also rules out the out-of-thin-air problem that plagues many definitions. WMM is simple (it is similar to the Alpha memory model), but it disallows behaviors arising due to shared store buffers and shared write-through caches (which are seen in POWER processors). WMM-S, on the other hand, is more complex and allows these behaviors. We give the operational definitions of both models using Instantaneous Instruction Execution (I2E), which has been used in the definitions of SC and TSO. We also show how both models can be implemented using conventional cache-coherent memory systems and out-of-order processors, and encompasses the behaviors of most known optimizations.

候选层:至少 2 个不同的人、在 2 个不同月份提到过,还没到主书架的 3 人 3 个月。没有做立场标注,所以只写“被提及”。

HN 书评

推荐在前,同类按时间 · 每篇最多保留 20 条,统计用全部提及
评论bshanks · 2017-11

“I wonder how the memory model in https://people.mpi-sws.org/~dreyer/papers/promising/paper.pdf compares to the WMM and WMM-S memory models given in https://arxiv.org/pdf/1707.05923.pdf; and if there are other research memory models out there that should also be considered?”

What every systems programmer should know about lockless concurrency [pdf]原评论 ↗
评论namibj · 2022-11

“> For better or for worse, modern CPU design is about doing things thread-unsafe by default. If the programmer recognizes a problem may occur, it is the responsibility of the programmer to put the memory barriers in the right place. This so much. I truly wish RISC-V had decided on the weak memory model (WMM)[0] that allowed load-value speculation in the …”

Cache invalidation is one of the hardest problems in computer science原评论 ↗