随着芯片集成制造工艺的日益发展,拥有多级Cache的片上多处理器(CⅧ)已成为桌面应用和高端计算的主流平台.为了优化程序在CMP下运行性能,文中以Pin工具软件为基础,提出并设计了一个面向CMP体系架构的多级Cache访问模拟器——CCSm.该模拟器不仅可以模拟同构CMP下传统方式的Cache访问,而且还可以对CMP中最后一级共享Cache的竞争访问以及非传统方式的Barcelona式Cache访问模式进行模拟分析.
With the growing of chip integrated technology, chip multi-processors (CMP), with multi-level caches are very popular in desktop applications and high-end computing. For the purpose of optimizing program runtime performance within CMP, in this paper, a new cache simulator for CMP architecture, named CCSim, has been implemented upon Pin software system. This simulator not only can simulate the traditional cache accesses for homogeneous CMP, but also can simulate the competitions for the last level shared cache in CMP, and the unconventional Barcelona-like cache access mode in CMP.