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

July 2025

S M T W T F S
  12345
67 8 91011 12
13141516171819
20212223242526
27 28293031  

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 13th, 2025 08:50 pm
Powered by Dreamwidth Studios