Changes

Jump to: navigation, search

Team False Sharing

58 bytes added, 20:11, 14 December 2017
What is False Sharing?
=What is False Sharing?=
In Symmetric Multiprocessor (SMP)systems , each processor has a local cache. The local cache is a smaller, faster memory which stores copies of data from frequently used main memory locations It is closer to the CPU than the main memory and intended to make memory access more efficient. In a shared memory multiprocessor system with a separate cache memory for each processor, it is possible to have many copies of shared data: one copy in the main memory and one in the local cache of each processor that requested it. When one of the copies of data is changed, the other copies must reflect that change. Cache coherence is the discipline which ensures that the changes in the values of shared operands(data) are propagated throughout the system in a timely fashion.
[[File:Coherent.gif|500px|left]]<br style="clear:both" />
False sharing occurs when threads on different processors modify variables that reside on the same cache line. This invalidates the cache line and forces an update, which hurts performance.
96
edits

Navigation menu