作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2006, Vol. 32 ›› Issue (13): 47-48.

• 软件技术与数据库 • 上一篇    下一篇

Cache Profiling技术

周 谦;冯晓兵;张兆庆   

  1. 中国科学院计算技术研究所,北京 100080
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2006-07-05 发布日期:2006-07-05

Cache Profiling

ZHOU Qian;FENG Xiaobing;ZHANG Zhaoqing   

  1. Institute of Computing Technology, Chinese Academy of Sciences, Beijing 100080
  • Received:1900-01-01 Revised:1900-01-01 Online:2006-07-05 Published:2006-07-05

摘要: 如何减少和隐藏cache失效的延迟,是人们关注的热点。编译器为了得到cache访问命中的情况,往往使用模拟器去跑一遍来得到结果,这样的速度很慢。为了克服以上缺点,提出了在编译器中作cache profiling来获取cache访问的信息。类似于value profiling和stride profiling,cache profiling对访存指令作插装,可以有效地提高速度,并且只需要编译器的支持即可。Cache profiling获得的信息可以用来改进指令调度、软件预取、生成cache hint和辅助线程等。

关键词: Profiling, Cache profiling, Cache hint, 编译器

Abstract: How to reduce and hide the latency of cache misses is the focus. To get the information of cache references, we often need to run simulators, which is very slow. To overcome this, this paper introduces cache profiling in compile without need of simulator. Similar to value profiling and stride profiling, cache profiling instruments instruct referencing memories, which can improve the speed significantly and only need the support of compiler. The information getting from cache profiling can be used to improve instruction scheduling, software prefetching, generating cache hints and helper threads.

Key words: Profiling, Cache profiling, Cache hint, Compiler

中图分类号: