Changes

Jump to: navigation, search

GPU621/False Sharing

88 bytes removed, 23:44, 7 December 2021
m
Presentation
'''- the cache line only contains one piece of data with the rest being completely emptypadding'''
This is incredibly inefficient. The whole point of the cache is to improve performance by contain relevant data We want to minimize cache misses. In practice, but by hogging valuable cache space this reduces the scheduler will be juggling many threads with their own data that may or may not be related to this program. By padding out effectiveness of the cache line. If we had a more complex program, we are hogging this valuable space and are forcing could have tons of other data the thread could have fit on the same cache misses to occurline.
Identifying false sharing requires detailed code inspection as everything will appear to work normally on the surface. However, when left unchecked false sharing will be detrimental to the program's performance and scalability. This article discussed the relation between the cache and false sharing. In addition, using a simple example, we explained how you can use padding, synchronization, and thread local variables to reduce the frequency of false sharing.
 
== Presentation ==
PDF [[File:kchou_false_sharing.pdf]]
== References ==
83
edits

Navigation menu