News for hackers. Stuff that matters.
Re:Why Intel Added Cache Partitioning by e5f34f89 on Monday October 05, 2015 @11:58PM (#10336688)
As a CPU architect, I can confirm that all those except possibly 2) will not yield significant benefits. Prefetching hints will only be useful when the particular code fragment is highly memory-bound because most wide superscalar microarchitectures will easily hide L1/L2 miss latencies.
Re:Why Intel Added Cache Partitioning by fanf2 on Thursday October 08, 2015 @02:52AM (#10351259)
My qp trie code <http://dotat.at/prog/qp/> got a performance boost of about 20% by adding prefetch hints in the obvious places. The inner loop is fetch / compute / fetch / compute, chaining down into the true. The next fetch will (usually) be some small offset from a pointer we can get immediately after its preceding fetch, so prefetch the base pointer, then compute to work out the exact offset.
Re:Why Intel Added Cache Partitioning by tkinom on Tuesday October 06, 2015 @11:18AM (#10339439)
If a DDR stall is 50+ cpu cycles, (probably a lot more with today's 2, 3GHz CPU), I am not sure if superscalar microarchitectures would help too much.

At lease in my case of networking packet forwarding app, I had the profiling data to prove that was an issue.

The app code is not that long ~2000 lines of code after clean up. But it have a lot of table looks up (DDR stall) and branches for error condition checks.