Oct. 1st, 2018

Prefetchw

Oct. 1st, 2018 10:31 am
izard: (Default)
Prefetchw can be found in linux kernel source and windows kernel, but there is a trick: it was first added to AMD CPUs, and then once it appeared in Intel CPUs, it just stopped raising SIGILL, but nothing else happened.

Then eventually it was implemented properly, but I still get questions from customers on when it can be faster. Here is my last answer from an email:

On write, the cache line status turns to Modified, and turning to Modified from Exclusive state is faster than turning from Shared to Modified. PREFETCHW prefetches data to Exlusive state, so then when write happens later it can be faster. So if the cache line is fetched from DRAM, there is no difference.

Profile

izard: (Default)
izard

September 2025

S M T W T F S
 1 23456
78910111213
14151617181920
21222324252627
282930    

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 18th, 2025 07:13 pm
Powered by Dreamwidth Studios