arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.11554math.OCcs.ARcs.DCcs.OS
收藏

面向多核实时系统的多目标内存带宽调节与缓存划分

Multi-Objective Memory Bandwidth Regulation and Cache Partitioning for Multicore Real-Time Systems

Binqi Sun, Zhihang Wei, Andrea Bastoni, Debayan Roy, Mirco Theile, Tomasz Kloda, Rodolfo Pellizzoni, Marco Caccamo

AI总结:

本文针对多核实时系统任务-资源协同分配难题,提出0-1线性规划模型和多目标多层启发式算法,在保证EDF调度可调度性的同时最小化资源使用,实验验证其性能优于现有方法。

摘要:

内存带宽调节与缓存划分是实时计算系统中实现可预测时序的常用技术。结合分区调度时,由于任务执行时间高度依赖分配到的可用资源,这些方法需要对任务与核心资源进行精细的协同分配。为解决这一挑战,本文提出了一种用于任务-资源协同分配的0-1线性规划模型,以及一种多目标启发式算法,该算法旨在在抢占式EDF调度策略下保证可调度性的同时,最小化资源使用量。我们的启发式算法采用多层框架:外层使用帕累托剪枝搜索探索资源分配方案,内层通过动态规划求解背包问题来优化任务分配。为评估所提优化算法的性能,我们在嵌入式AMD UltraScale+ ZCU102平台上对真实基准测试程序进行了性能剖析,借助Jailhouse虚拟机监控程序实现细粒度资源划分,并利用缓存组划分和MemGuard进行内存带宽调节。基于基准测试结果的实验表明,所提的0-1线性规划模型在相同时间限制内能找到更优的解,性能优于现有的混合整数规划模型。此外,所提的多目标多层启发式算法在可调度性、资源使用量、非支配解数量和计算效率方面,始终优于当前最先进的多资源-任务协同分配算法。

英文摘要:

Memory bandwidth regulation and cache partitioning are widely used techniques for achieving predictable timing in real-time computing systems. Combined with partitioned scheduling, these methods require careful co-allocation of tasks and resources to cores, as task execution times strongly depend on available allocated resources. To address this challenge, this paper presents a 0-1 linear program for task-resource co-allocation, along with a multi-objective heuristic designed to minimize resource usage while guaranteeing schedulability under a preemptive EDF scheduling policy. Our heuristic employs a multi-layer framework, where an outer layer explores resource allocations using Pareto-pruned search, and an inner layer optimizes task allocation by solving a knapsack problem using dynamic programming. To evaluate the performance of the proposed optimization algorithm, we profile real-world benchmarks on an embedded AMD UltraScale+ ZCU102 platform, with fine-grained resource partitioning enabled by the Jailhouse hypervisor, leveraging cache set partitioning and MemGuard for memory bandwidth regulation. Experiments based on the benchmarking results show that the proposed 0-1 linear program outperforms existing mixed-integer programs by finding more optimal solutions within the same time limit. Moreover, the proposed multi-objective multi-layer heuristic performs consistently better than the state-of-the-art multi-resource-task co-allocation algorithm in terms of schedulability, resource usage, number of non-dominated solutions, and computational efficiency.

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

↑