Intel memory ordering, fence instructions, and atomic operations (2009)
peeterjoot.wordpress.com
peeterjoot.wordpress.com
As a person who lives in these trenches, I cannot stop myself from pushing others to read the fantastic X86-TSO paper by Sewell et al [2]. It gives a clear, easily understood view of the memory model. Their earlier, more in-depth paper, is here [3].
[1] http://www.mpdiag.com/intel_arch.html [2] http://www.cl.cam.ac.uk/~pes20/weakmemory/cacm.pdf [3] http://www.cl.cam.ac.uk/~pes20/weakmemory/x86tso-paper.pdf
Just yesterday I did not know almost anything about memory models, cache coherence, etc. Then I've read this book/lecture [1], got interested and later found the same great articles by Peter Sewell[2], you've mentioned
And today I see it on hacker news :)
[1] http://www.morganclaypool.com/doi/abs/10.2200/S00346ED1V01Y2...