
内存一致性与缓存一致性入门
A primer on memory consistency and cache coherence
Daniel J. Sorin · 初版 2011 年
6人推荐
7位读者提及
8次提及
许多现代计算机系统和大多数 multicore chips(chip multiprocessors)都在硬件层面支持 shared memory。在 shared memory 系统中,每个处理器核心都可以对单个共享地址空间进行读写。对于 shared memory 计算机而言,memory consistency model 定义了其内存系统在体系结构上可见的行为。一致性定义规定了关于 loads and stores(即内存读取与写入)及其如何作用于内存的规则。作为支持 memory consistency model 的一部分,许多机器还提供了 cache coherence protocols,以确保多个缓存
Hacker News 上怎么说
正在加载完整评论……
我知道,你这评论显然是在半开玩笑,但万一(off by one 的概率)你是认真的,直接看这本就对了:《A Primer on Memory Consistency and Cache Coherence》(https://www.amazon.com/gp/product/1608455645/);当然,顺便你也可能想翻翻《UNIX Systems for Modern Architectures: Symmetric Multiprocessing and Caching》……
i know, this was a tongue-firmly-in-cheek kind of comment, but on the off by one chance that you are serious, look no further than: 'A Primer on Memory Consistency and Cache Coherence' (https://www.amazon.com/gp/product/1608455645/) and ofcourse, while you are at it, you might want to check out 'UNIX Systems for Modern Architectures: Symmetric Multiprocessing and Caching' as well,…
我推荐《A Primer on Memory Consistency and Cache Coherence》第二版——Synthesis Lectures on Computer Architecture 15:1 (2020)——Vijay Nagarajan、Daniel J. Sorin、Mark D. Hill、David A. Wood 著——(开源,免费获取):https://doi.org/10.2200/S00962ED2V01Y201910CAC049…
I'd recommend "A Primer on Memory Consistency and Cache Coherence, Second Edition" - Synthesis Lectures on Computer Architecture 15:1 (2020) - Vijay Nagarajan, Daniel J. Sorin, Mark D. Hill, David A. Wood - (open access, freely available): https://doi.org/10.2200/S00962ED2V01Y201910CAC049…
……感知机预测器(perceptron predictor),也是 AMD Zen 2 里的分支预测单元之一,http://web.archive.org/web/20231213180041/https://en.wikichi...)。还有更多专门针对特定主题的极佳读物,比如《A Primer on Memory Consistency and Cache Coherence》第二版;Synthesis Lectures on Computer Architecture 15:1 (2020);Vijay Nagarajan、Daniel J. Sorin、Mark D. Hill、David A. Wood;开源免费获取地址:https://doi.org/10.2200/S00962ED2V01Y201910CAC049…
…perceptron predictor that's one of the branch predictor units in AMD Zen 2, http://web.archive.org/web/20231213180041/https://en.wikichi...). There are more, topic-specific texts that are very good, e.g., A Primer on Memory Consistency and Cache Coherence, Second Edition; Synthesis Lectures on Computer Architecture 15:1 (2020); Vijay Nagarajan, Daniel J. Sorin, Mark D. Hill, David A. Wood; open access (freely available) at https://doi.org/10.2200/S00962ED2V01Y201910CAC049…
如果你关心 cache coherence(缓存一致性),我强烈推荐《A Primer on Memory Consistency and Cache Coherence》这本书。站在更宏观的视角去理解一致性的细节,比东看一篇博客西看一篇博客的零敲碎打要容易得多。我觉得这本书可读性极高,而且澄清了大部分误解……
If cache coherence is relevant to you, I strongly recommend the book “A Primer on Memory Consistency and Cache Coherence”. It’s much easier to understand the details of coherency from a broader perspective, than an incremental read-a-bunch-of-blogs perspective. I found that book very readable, and it cleared up most misconceptions…
只回答后一个问题:《A Primer on Memory Consistency and Cache Coherence》第二版 https://www.morganclaypool.com/doi/10.2200/S00962ED2V01Y2019...(免费在线书)应该会有帮助
Answering only the latter question: A Primer on Memory Consistency and Cache Coherence, Second Edition https://www.morganclaypool.com/doi/10.2200/S00962ED2V01Y2019... (free online book) would help
如果作为并发编程的入门,我可能会推荐《The Art of Multiprocessor Programming》(Herlihy 和 Shavit 著)。另外还有《A Primer on Memory Consistency and Cache Coherence》(Nagarajan 等著),如果你想更深入研究 memory consistency 和 coherence 之间的相互影响的话。
I would probably recommend the art of multiprocessor programming (herlihy and shavitz) as a good starting point for concurrent programming. There is also " A primer on memory consistency and cache coherence" (Nagarajan et al) if you want to get more into the interaction between memory consistency and coherence.