Reversing the Next-Page Prefetcher in Skylake-X
A researcher empirically reverse-engineers the next-page prefetcher in Intel Skylake-X processors, discovering it is triggered specifically by memory accesses crossing the 52nd cache line.
read it It provides hands-on methodology and concrete assembly-level experiments for reverse-engineering CPU hardware prefetchers.
summary
The author investigates whether Intel's Skylake-X microarchitecture includes a next-page prefetcher using custom Linux performance monitoring experiments. By systematically altering memory access patterns and tracking STLB misses, they test various slice lengths and hole placements within 4KB pages. The results demonstrate that Skylake-X does feature a next-page prefetcher, which specifically triggers when sequential loads cross from the 52nd to the 53rd cache line. Furthermore, the experiments reveal that store instructions fail to trigger this prefetch behavior.
key points
- Skylake-X features a next-page prefetcher that preloads future page table entries into the data TLB.
- The prefetcher is specifically triggered when sequential load accesses cross the boundary between the 52nd and 53rd cache lines of a 4KB page.
- Store instructions do not trigger the next-page prefetcher, requiring load operations to engage the mechanism.
who should read it
Systems programmers, hardware security researchers, and computer architects interested in CPU microarchitecture and performance tuning.
Generated by an LLM from the article and thread. Check the sources before relying on it.