arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.14837cs.AR
收藏

MESC:重新思考异构MCSs中的算法优先级和/或关键性反转

MESC: Re-thinking Algorithmic Priority and/or Criticality Inversions for Heterogeneous MCSs

Jiapeng Guan, Ran Wei, Dean You, Yingquan Wang, Ruizhe Yang, Hui Wang, Zhe Jiang

AI总结:

针对异构混合关键性系统中协处理器流式执行导致的算法优先级和关键性反转问题,本文提出MESC系统,通过在指令级实现无修改的细粒度抢占,以低于5%的开销实现了250倍和300倍的解决加速。

摘要:

现代混合关键性系统(MCSs)依赖硬件异构性来满足不断增长的计算需求。然而,大多数异构协处理器旨在实现高吞吐量,其微架构以流式方式执行工作负载。这种流式执行通常是非抢占式或有限抢占式的,阻碍了基于任务重要性进行优先级排序,导致算法优先级和/或关键性反转频繁发生。这些问题构成了保证系统实时可预测性的重大障碍,尤其是当协处理器主导工作负载(如DNN和transformers)执行时。与通常通过拆分工作负载/算法来实现粗粒度上下文切换的现有工作不同,我们展示了一种在广泛使用的开源DNN加速器上提供细粒度上下文切换的方法,该方法通过启用指令级抢占实现,且无需任何工作负载/算法修改。作为系统性解决方案,我们构建了一个真实系统,即Make Each Switch Count (MESC),涵盖从SoC和ISA到OS内核。我们还提供了理论模型和分析以提供时间保证。实验结果表明,与使用非抢占式DNN加速器的传统MCSs相比,MESC在解决算法优先级和关键性反转方面分别实现了250倍和300倍的加速,且开销低于5%。据我们所知,这是首项在指令级为MCSs研究算法优先级和关键性反转的工作。

英文摘要:

Modern Mixed-Criticality Systems (MCSs) rely on hardware heterogeneity to satisfy ever-increasing computational demands. However, most of the heterogeneous co-processors are designed to achieve high throughput, with their micro-architectures executing the workloads in a streaming manner. This streaming execution is often non-preemptive or limited-preemptive, preventing tasks' prioritisation based on their importance and resulting in frequent occurrences of algorithmic priority and/or criticality inversions. Such problems present a significant barrier to guaranteeing the systems' real-time predictability, especially when co-processors dominate the execution of the workloads (e.g., DNNs and transformers). In contrast to existing works that typically enable coarse-grained context switch by splitting the workloads/algorithms, we demonstrate a method that provides fine-grained context switch on a widely used open-source DNN accelerator by enabling instruction-level preemption without any workloads/algorithms modifications. As a systematic solution, we build a real system, i.e., Make Each Switch Count (MESC), from the SoC and ISA to the OS kernel. A theoretical model and analysis are also provided for timing guarantees. Experimental results reveal that, compared to conventional MCSs using non-preemptive DNN accelerators, MESC achieved a 250x and 300x speedup in resolving algorithmic priority and criticality inversions, with less than 5\% overhead. To our knowledge, this is the first work investigating algorithmic priority and criticality inversions for MCSs at the instruction level.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑