Software Tuning, Performance Optimization & Platform Monitoring
Discussion regarding monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform updating.

Effect of CLWB instruction on replacement policy

Johnnyjax
Beginner
439 Views

Hello,

 

Please does the cache line writeback instruction (clwb) influence the replacement policy since it retains the block in the cache. Or does it not have an effect?

 

Thanks.

0 Kudos
1 Reply
McCalpinJohn
Honored Contributor III
325 Views

Unless you can find an Intel writeup that specifically describes the behavior, you need to consider this to be "implementation-dependent".   The influence (if any) of execution of CLWB on the replacement policy could probably be measured using https://github.com/andreas-abel/nanoBench/tree/master/tools/CacheAnalyzer or a variation on that code.

0 Kudos
Reply