A little padding just makes you run faster
December 4, 2008
Herb Sutter posted an excellent new effective concurrency article; Measuring Parallel Performance: Optimizing a Concurrent Queue. Its surprising to see how much scalability can be gained by wasting space on padding, to make sure independent variables get to live on different cache lines.
December 4, 2008 at 7:14 pm
Another post about false sharing between independent variables in same cache lines
http://msdn.microsoft.com/en-us/magazine/cc872851.aspx