首页 | 本学科首页   官方微博 | 高级检索  
     

一种基于重用距离预测与流检测的高速缓存替换算法
引用本文:林隽民,王炜,乔林,汤志忠.一种基于重用距离预测与流检测的高速缓存替换算法[J].计算机研究与发展,2012,49(5):1049-1060.
作者姓名:林隽民  王炜  乔林  汤志忠
作者单位:清华大学计算机科学与技术系 北京 100084
基金项目:国家自然科学基金项目,国家"八六三"高技术研究发展计划基金项目,国家"九七三"重点基础研究发展计划基金项目
摘    要:传统的缓存替换算法由于不能适应应用程序的流式访问行为而导致缓存性能不佳.设计基于周期检测的预测方法,分析程序访存重用距离的规律性和流式访问的复杂性,提出用重用距离预测能同时适应简单流和复杂流访问模式的RDP算法.RDP的基本思想是预测重用距离并动态维护重用距离计数,动态调整缓存数据的替换顺序,通过流采样缩减存储开销.实验结果表明,RDP算法能够很好地适应程序中多样化的流访问模式,其总体性能优于LRU算法和DIP算法,在32MB缓存上比传统LRU算法平均减少了27.5%的缓存缺失.

关 键 词:高速缓存  缓存颠簸  替换算法  重用距离  流检测

A Cache Replacement Policy Based on Reuse Distance Prediction and Stream Detection
Lin Junmin , Wang Wei , Qiao Lin , Tang Zhizhong.A Cache Replacement Policy Based on Reuse Distance Prediction and Stream Detection[J].Journal of Computer Research and Development,2012,49(5):1049-1060.
Authors:Lin Junmin  Wang Wei  Qiao Lin  Tang Zhizhong
Affiliation:(Department of Computer Science and Technology,Tsinghua University,Beijing 100084)
Abstract:Traditional cache replacement policy fails to accommodate the special streaming access patterns exhibited by many modern applications,leading to decreased cache performance,which is known as cache thrashing.This paper proposes a new reuse distance prediction mechanism based on period detection,which is able to capture the periodic regularity in reuse distance sequences.Then it analyzes the regularity in reuse distances and the complexity in streaming access sequences exposed by applications.Finally,a new replacement algorithm,RDP in short,is presented to accommodate both simple and complicate streaming access patterns with the proposed reuse distance prediction mechanism.The basic idea of RDP is to predict the reuse distance in memory accesses,maintain the reuse distance counters dynamically,and thus adjust the replacement priority of cache blocks dynamically according to the prediction results,against traditional replacement decision.In addition,it reduces storage overhead with stream sampling.The experiments show that RDP adapts well to diverse streaming access patterns in programs,and outperforms both LRU and DIP policies.On large last-level caches,RDP improves the cache performance across one class of programs with strong streaming access patterns significantly.For example,on a 32 MB cache,RDP reduces the cache misses by 27.5% on average over LRU policy.
Keywords:cache  cache thrashing  replacement policy  reuse distance  stream detection
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号