fstlib icon indicating copy to clipboard operation
fstlib copied to clipboard

Scan multi-threaded code for false sharing

Open MarcusKlik opened this issue 7 years ago • 0 comments

See for example here. To lower memory requirements, fstlib allocates larger blocks of memory that are written to by several threads. In such cases, cache line pollution must be avoided.

A solution is to make sure each sub-block has a size that is a multiple of the cache line size (64 bytes on most modern Intel processors).

MarcusKlik avatar Mar 20 '18 14:03 MarcusKlik