x86 Hardware Prefetch Disable

I wrote some code that is able to disable hardware prefetching under Linux on many Intel x86 processors, starting with the Core2. It works by writing to the documented Intel MSR register.

I wrote this when trying to figure out the effect of the hardware prefetcher on L1 dcache hit rates using perf counters. Running this program sometimes (but not always) changed the results. So use at your own risk.

Currently the best place to get this code is from the following git repository: https://github.com/deater/uarch-configure in the "intel-prefetch" directory.
Back to my projects page