Previous | Next --- Slide 48 of 51
Back to Lecture Thumbnails
superscalar

Adding this sort of padding was one way that we improved the performance of our threadpool in assign2 – interesting to see how an understanding of hardware can lead directly to writing much faster code!

yt1118

perf-c2c is a useful tool to detect false sharing: https://man7.org/linux/man-pages/man1/perf-c2c.1.html.

ammaar

How does one access the size of the cache line? Is it available to the programmer?

jagriti

@ammaar - This link talks about how the size of a cache line maybe be programmatically available on Linux (https://stackoverflow.com/questions/794632/programmatically-get-the-cache-line-size)

Please log in to leave a comment.