My colleague Igor Ostrovsky has written a useful summary of seven cache memory effects that every advanced developer should know about because of their performance impact, particularly as we strive to keep invisible bottlenecks out of parallel code.
I’ve covered variations of Igor’s examples #1, #2, #3, and #6 in my Machine Architecture talk and several of my articles. His article provides a crisp and concise summary of these and three more kinds of cache effects along with simple and clear sample code and intriguing measurements (for example, see the detail in the graph for #5 and its analysis).
Recommended.
Hi Herb,
The slides for your Machine Architecture talk don’t seem to be available anymore, http://www.nwcpp.org/Downloads/2007/Machine_Architecture_-_NWCPP.pdf is a 404. Can you fix the link or upload it somewhere else please?
Thanks