Changes

Jump to: navigation, search

Team False Sharing

691 bytes added, 15:45, 15 December 2017
Identifying False Sharing
=Identifying False Sharing=
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. False sharing is a well-know performance issue on SMP systems, where each processor has a local cache. it occurs when treads on different processors modify varibles that reside on th the same cache line like so.[[File:CPUCacheline.png]]The frequent coordination required between processors when cache lines are marked ‘Invalid’ requires cache lines to be written to memory and subsequently loaded. False sharing increases this coordination and can significantly degrade application performance.
=Eliminating False Sharing=
96
edits

Navigation menu