缓存持久性分析:终于精确
Cache Persistence Analysis: Finally Exact
AI总结:
本文提出首个针对LRU替换策略缓存的精确持久性分析方法,利用单调性抽象和ZDD高效实现,实验证明其性能可与现有近似方法竞争,同时证明该问题是NP完全的。
摘要:
缓存持久性分析是最坏情况执行时间(WCET)分析的重要组成部分。在过去二十年中,它已被广泛研究。尽管付出了这些努力,所有现有的持久性分析都是近似性的,即它们不能保证找到所有持久内存块。在本文中,我们通过引入第一个针对具有最近最少使用(LRU)替换策略的缓存的精确持久性分析来弥补这一差距。为此,我们首先引入一种精确抽象,该抽象利用LRU的单调性特性,显著减少分析为精确持久性分类所需维护的信息。我们展示了如何使用零抑制二叉决策图(ZDDs)高效实现该抽象,并引入了处理数据缓存分析过程中出现的不确定性的新技术。实验评估表明,新的精确分析在内存消耗和分析运行时间方面均能与最先进的不精确分析相竞争,这有些令人惊讶,因为我们证明了持久性分析是NP完全的。我们还观察到,尽管先前的分析在理论上并不精确,但在实践中它们接近精确。
英文摘要:
Cache persistence analysis is an important part of worst-case execution time (WCET) analysis. It has been extensively studied in the past twenty years. Despite these efforts, all existing persistence analyses are approximative in the sense that they are not guaranteed to find all persistent memory blocks. In this paper, we close this gap by introducing the first exact persistence analysis for caches with least-recently-used (LRU) replacement. To this end, we first introduce an exact abstraction that exploits monotonicity properties of LRU to significantly reduce the information the analysis needs to maintain for exact persistence classifications. We show how to efficiently implement this abstraction using zero-suppressed binary decision diagrams (ZDDs) and introduce novel techniques to deal with uncertainty that arises during the analysis of data caches. The experimental evaluation demonstrates that the new exact analysis is competitive with state-of-the-art inexact analyses in terms of both memory consumption and analysis run time, which is somewhat surprising as we show that persistence analysis is NP-complete. We also observe that while prior analyses are not exact in theory they come close to being exact in practice.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。