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

程序的cache使用效率分析
引用本文:刘方爱. 程序的cache使用效率分析[J]. 计算机工程与应用, 2004, 40(5): 19-21
作者姓名:刘方爱
作者单位:山东师范大学信息管理学院计算机系,济南,250014
基金项目:山东省自然科学基金(编号:Y2002G03)
摘    要:评价程序的存储效率是提高用户程序性能的重要手段。该文首先提出了程序的装入因子的概念,并据此分析了矩阵乘法;其次,根据时间局部化原则,提出了一种“最小时间差方法”,该方法可以有效地减少cacheline的装入数目;最后,为了评价程序的存储延迟,提出了程序数据相关性的概念,据此给出了计算装入因子的公式,用于分析程序的存储效率。这样就可以用big-O模型来表达程序的时间复杂性,并用装入因子来表达程序的存储访问复杂性。

关 键 词:cache  存储延迟  性能评价  装入因子  存储复杂性
文章编号:1002-8331-(2004)05-0019-03

The Cache Performance Analysis of Algorithms
Liu Fang''''ai. The Cache Performance Analysis of Algorithms[J]. Computer Engineering and Applications, 2004, 40(5): 19-21
Authors:Liu Fang''''ai
Abstract:How to evaluate and improve the program's memo ry access efficiencies is a key question and is discussed widely in the world.In this paper,the concept of loading factor is introduced.Based on this concept ,the matrix multiplication is analyzed,which shows that the loading factor is a suitable parameter to evaluate the program's performance.After that,focusin g on data locality,a method is given,which can reduce the number of cache line s loaded into caches and improve the performances of algorithms.At last,a met hod to calculate the loading factor is introduced.By this way,we can use big-O notation to represent algorithm's time complexity and use the loading fact or to represent algorithm's memory access complexity.
Keywords:Cache line  Me mory access latency  Performance evaluation  Cache hit  Loading factor  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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