导读:
一、将 cache 清空可以:
1、invd 指令刷新 cache
2、wbinvd 指令刷新 cache 并回写 memory
3、clflush 指令刷新 cache line
二、用随机产生数据填满 cache 可以:
1、先在 memory 中产生随机数据
2、使用 prefecth 系列指令加载到 cache 中
本文转自
http://linux.chinaunix.net/bbs/archiver/tid-915639.html
一、将 cache 清空可以:
1、invd 指令刷新 cache
2、wbinvd 指令刷新 cache 并回写 memory
3、clflush 指令刷新 cache line
二、用随机产生数据填满 cache 可以:
1、先在 memory 中产生随机数据
2、使用 prefecth 系列指令加载到 cache 中
本文转自
http://linux.chinaunix.net/bbs/archiver/tid-915639.html