提升缓存存储系统仿真区间的代表性
Improving the Representativeness of Simulation Intervals for the Cache Memory System
AI总结:
针对现有仿真区间未充分考虑缓存行为易致性能评估偏差的问题,提出基于末级缓存活动的仿真策略,在仿真时间基本不变的前提下提升缓存行为代表性与评估公平性。
摘要:
精确的仿真技术对于高效提出新型存储或架构方案而言不可或缺。由于在真实系统中实现新硬件概念通常并不可行,业界普遍采用周期精确仿真器搭配特定基准测试程序开展研究。然而,详细仿真器运行这些程序直至完成可能耗费过多时间,因此通常会采用多种旨在缩短该耗时的技术。这类方案会选取被认为能够代表整个应用行为的源代码片段——主要从性能角度考量,但并未充分考虑各级缓存的行为——并且仅对这些区间进行仿真。我们的假设是,当前评估微架构方案(尤其是涉及末级缓存(LLC)的方案)时所采用的各类仿真窗口,无法复现整个执行过程中的整体缓存行为,可能导致对所评估方案真实性能得出错误结论。在本研究中,我们首先通过采用多种典型仿真方法评估不同缓存替换策略,验证了这一假设。随后,我们还提出了一种基于应用LLC活动的仿真策略,该策略对缓存整体行为的拟合程度远高于传统仿真区间。我们的方案能够让缓存相关方案之间的比较更加公平:相较于完整仿真,该方案报告的所评估策略相对排序变化数量平均比传统策略低30%以上,同时基本保持仿真时间不变,且不会损失性能方面的精度,对于内存密集型应用效果尤为显著。
英文摘要:
Accurate simulation techniques are indispensable to efficiently propose new memory or architectural organizations. As implementing new hardware concepts in real systems is often not feasible, cycle-accurate simulators employed together with certain benchmarks are commonly used. However, detailed simulators may take too much time to execute these programs until completion. Therefore, several techniques aimed at reducing this time are usually employed. These schemes select fragments of the source code considered as representative of the entire application's behaviour -- mainly in terms of performance, but not plenty considering the behaviour of cache memory levels -- and only these intervals are simulated. Our hypothesis is that the different simulation windows currently employed when evaluating microarchitectural proposals, especially those involving the last level cache (LLC), do not reproduce the overall cache behaviour during the entire execution, potentially leading to wrong conclusions on the real performance of the proposals assessed. In this work, we first demonstrate this hypothesis by evaluating different cache replacement policies using various typical simulation approaches. Consequently, we also propose a simulation strategy, based on the applications' LLC activity, which mimics the overall behaviour of the cache much closer than conventional simulation intervals. Our proposal allows a fairer comparison between cache-related approaches as it reports, on average, a number of changes in the relative order among the policies assessed -- with respect to the full simulation -- more than 30\% lower than that of conventional strategies, maintaining the simulation time largely unchanged and without losing accuracy on performance terms, especially for memory-intensive applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。