通过共享缓存分析降低因果-效应链的端到端延迟
Reducing End-to-End Latency of Cause-Effect Chains with Shared Cache Analysis
AI总结:
本文提出一种针对多核平台共享缓存的端到端延迟分析框架,通过提取调度信息和结构特性,优化共享缓存分析以提高WCET估计精度,从而降低因果-效应链的端到端延迟。
摘要:
因果-效应链作为一种在实时嵌入式系统中广泛使用的建模方法,被广泛应用于各种安全关键领域。端到端延迟作为因果-效应链的关键实时属性,在许多应用中至关重要。但对具有共享缓存的多核平台上的因果-效应链端到端延迟分析仍是一个未解决的问题。传统方法通常假设因果-效应链中每个任务的最坏执行时间(WCET)是已知的。然而,在没有调度信息的情况下,这些方法通常假设所有共享缓存访问都会导致缺失,导致WCET的高估,从而影响端到端延迟的准确性。然而,有效地将调度信息整合到因果-效应链的WCET分析过程中可能会带来两个挑战:第一,如何利用因果-效应链的结构特性来优化共享缓存分析;第二,如何在避免状态空间爆炸的同时提高分析精度。为了解决这些问题,本文提出了一种新的端到端延迟分析框架,用于多链系统在具有共享缓存的多核平台上的分析。该框架提取因果-效应链的调度信息和结构特性,在基本块级别构建细粒度且可扩展的跨核心内存访问上下文,以进行时间敏感的共享缓存分析。这导致了更准确的WCET(TSC-WCET)估计,然后用于推导端到端延迟。最后,我们在双核和四核系统上进行了各种缓存配置的实验,结果表明,在某些设置下,因果-效应链的平均最大端到端延迟可减少高达34%和26%。
英文摘要:
Cause-effect chains, as a widely used modeling method in real-time embedded systems, are extensively applied in various safety-critical domains. End-to-end latency, as a key real-time attribute of cause-effect chains, is crucial in many applications. But the analysis of end-to-end latency for cause-effect chains on multicore platforms with shared caches still presents an unresolved issue. Traditional methods typically assume that the worst-case execution time (WCET) of each task in the cause-effect chain is known. However, in the absence of scheduling information, these methods often assume that all shared cache accesses result in misses, leading to an overestimation of WCET and, consequently, affecting the accuracy of end-to-end latency. However, effectively integrating scheduling information into the WCET analysis process of the chains may introduce two challenges: first, how to leverage the structural characteristics of the chains to optimize shared cache analysis, and second, how to improve analysis accuracy while avoiding state space explosion. To address these issues, this paper proposes a novel end-to-end latency analysis framework designed for multi-chain systems on multicore platforms with shared caches. This framework extracts scheduling information and structural characteristics of cause-effect chains, constructing fine-grained and scalable inter-core memory access contexts at the basic block level for time-sensitive shared cache analysis. This results in more accurate WCET (TSC-WCET) estimates, which are then used to derive the end-to-end latency. Finally, we conduct experiments on dual-core and quad-core systems with various cache configurations, which show that under certain settings, the average maximum end-to-end latency of cause-effect chains is reduced by up to 34% and 26%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。