Friday 1 March 2019

kernel - In FreeBSD, how can I disable hardware prefetching?

I just finished reading
How to Choose between Hardware and Software Prefetch on 32-Bit Intel® Architecture
and made the decision that I need to disable hardware prefetching for my use case.



In particular the following applies exactly to me:




Generally, prefer software-controlled prefetch in situations where all the following are true: irregular access patterns are present, short arrays must be prefetched, and making changes to existing application code is acceptable.





I found a number of answers that reference Linux specifically (see this SO answer). However, for performance reasons I am using FreeBSD.



Even if this ends up being a bad idea, I want to benchmark by application without h/w prefetching.

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...