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

FRAP:一种用于多处理器实时系统的灵活资源访问协议

FRAP: A Flexible Resource Accessing Protocol for Multiprocessor Real-Time Systems

Shuai Zhao, Hanzhi Xu, Nan Chen, Ruoxian Su, Wanli Chang

AI总结:

本文针对FP-FPS多处理器系统提出基于自旋的灵活资源访问协议FRAP,允许任务在任意优先级自旋,并设计了基于MCMF的阻塞分析保证可预测性,显著提升了系统可调度性。

摘要:

完全分区固定优先级调度(FP-FPS)多处理器系统广泛存在于实时应用中,其中常部署基于自旋的协议来管理共享资源的互斥访问。遗憾的是,现有方法要么对资源访问强制执行严格的自旋优先级规则,要么在可调度性分析中带有显著的悲观性,无论任务执行紧迫性如何或是否存在资源过度配置,都会施加大量的阻塞时间。本文提出了FRAP,一种用于FP-FPS系统的基于自旋的灵活资源访问协议。在FRAP下,任务可以在某个范围内的任意优先级进行自旋以访问资源,从而允许灵活且细粒度的资源控制,并具有可预测的最坏情况行为。在灵活自旋下,我们证明了现有的分析技术会导致不正确的时间界限,并提出了一种新颖的基于MCMF(最小费用最大流)的阻塞分析,为FRAP提供可预测性保证。我们报告了一种自旋优先级分配方案,该方案充分利用灵活自旋来减少高紧迫性任务的阻塞时间,从而提升FRAP的性能。实验结果表明,FRAP在可调度性上平均优于现有基于自旋的协议15.20%-32.73%,最高可达65.85%。

英文摘要:

Fully-partitioned fixed-priority scheduling (FP-FPS) multiprocessor systems are widely found in real-time applications, where spin-based protocols are often deployed to manage the mutually exclusive access of shared resources. Unfortunately, existing approaches either enforce rigid spin priority rules for resource accessing or carry significant pessimism in the schedulability analysis, imposing substantial blocking time regardless of task execution urgency or resource over-provisioning. This paper proposes FRAP, a spin-based flexible resource accessing protocol for FP-FPS systems. A task under FRAP can spin at any priority within a range for accessing a resource, allowing flexible and fine-grained resource control with predictable worst-case behaviour. Under flexible spinning, we demonstrate that the existing analysis techniques can lead to incorrect timing bounds and present a novel MCMF (minimum cost maximum flow)-based blocking analysis, providing predictability guarantee for FRAP. A spin priority assignment is reported that fully exploits flexible spinning to reduce the blocking time of tasks with high urgency, enhancing the performance of FRAP. Experimental results show that FRAP outperforms the existing spin-based protocols in schedulability by 15.20%-32.73% on average, up to 65.85%.

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

↑