缓存在你想要的地方!可预测性和一致性缓存
Cache Where you Want! Reconciling Predictability and Coherent Caching
摘要:
实时和网络物理系统需要在可预测的时间内与其物理环境进行交互并做出响应。虽然多核平台提供了令人难以置信的计算能力和吞吐量,但它们也引入了新的不可预测性来源。访问多个核心之间共享的数据的延迟的大幅波动是整体执行时间可变性的重要贡献者。除了缓存所带来的时间不可预测性之外,具有跨多个核心共享的数据的并行应用程序还由于数据一致性而付出额外的延迟开销。分析数据一致性对实时应用程序的最坏情况执行时间的影响是具有挑战性的,因为制造商只透露了很少的实现细节。本文介绍了应用程序级控制缓存数据在不同级别的缓存层次结构。基本原理是,通过仅在共享缓存中缓存数据,可以绕过私有缓存。对高速缓存中存在的数据的访问延迟变得与其一致性状态无关。我们讨论现有的架构支持,以及所需的硬件和操作系统的修改,以支持建议的缓存控制。我们评估系统的建筑模拟器。我们表明,最坏情况下的执行时间为一个单一的内存写入请求减少了52%。基准测试结果表明,所提出的技术对平均性能的影响最小。
英文摘要:
Real-time and cyber-physical systems need to interact with and respond to their physical environment in a predictable time. While multicore platforms provide incredible computational power and throughput, they also introduce new sources of unpredictability. Large fluctuations in latency to access data shared between multiple cores is an important contributor to the overall execution-time variability. In addition to the temporal unpredictability introduced by caching, parallel applications with data shared across multiple cores also pay additional latency overheads due to data coherence. Analyzing the impact of data coherence on the worst-case execution-time of real-time applications is challenging because only scarce implementation details are revealed by manufacturers. This paper presents application level control for caching data at different levels of the cache hierarchy. The rationale is that by caching data only in shared cache it is possible to bypass private caches. The access latency to data present in caches becomes independent of its coherence state. We discuss the existing architectural support as well as the required hardware and OS modifications to support the proposed cacheability control. We evaluate the system on an architectural simulator. We show that the worst case execution time for a single memory write request is reduced by 52%. Benchmark evaluations show that proposed technique has a minimal impact on average performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。