Open main menu

CDOT Wiki β

Changes

GPU621/False Sharing

21 bytes added, 19:11, 4 December 2021
m
What is False Sharing?
=== What is False Sharing? ===
Now that we understand the basics of a cache, how does this relate to the concept of false sharing? [[File:CPUCacheline.png|thumb|400px|Cache line sharing.]]
False sharing occurs when multiple processors modify data that resides on the same cache line. When this data is written back to memory, the shared cache lines are marked as invalid or dirty. Processors must fetch an updated copy introducing significant delays due to memory access speeds. As you increase the number of processors, this quickly spirals out of control as there is an increasing chance the cache line is invalid.
<br><br><br><br>
 
=== Example ===
83
edits