释放实时GPU任务中基于抢占式优先级调度的潜力
Unleashing the Power of Preemptive Priority-based Scheduling for Real-Time GPU Tasks
AI总结:
针对GPU实时任务调度的现有局限,提出内核线程法和基于IOCTL的两种抢占式优先级调度方法,结合考虑任务段重叠的响应时间分析,在Nvidia Jetson平台上将可调度性最高提升40%。
摘要:
由于CPU与GPU资源之间的复杂交互,以及GPU软硬件栈的复杂性,调度具备可分析保障的GPU实时任务是一项重大挑战。尽管实时研究领域已开展大量研究,但仍存在若干局限,包括抢占机制缺失或可用性有限、阻塞时间过长,以及/或者需要对程序代码进行大量修改。本文提出两种新技术,即内核线程法和基于IOCTL(输入输出控制)的方法,以实现实时GPU任务的抢占式优先级调度。我们的方法在设备驱动层控制GPU上下文调度,可基于任务优先级实现GPU抢占调度。内核线程法无需修改用户级程序即可实现这一目标,而基于IOCTL的方法仅需在GPU访问段的边界处添加单个宏。此外,我们提供了全面的响应时间分析,该分析考虑了不同任务段之间的重叠,降低了最坏情况估计中的悲观性。通过实证评估和案例研究,我们证明了所提方法在提升任务集可调度性和实时任务时效性方面的有效性。结果显示,与已有工作相比,该方法实现了显著提升,可调度性最高提高40%,同时在Nvidia Jetson嵌入式平台上实现了可预测的最坏情况行为。
英文摘要:
Scheduling real-time tasks that utilize GPUs with analyzable guarantees poses a significant challenge due to the intricate interaction between CPU and GPU resources, as well as the complex GPU hardware and software stack. While much research has been conducted in the real-time research community, several limitations persist, including the absence or limited availability of preemption, extended blocking times, and/or the need for extensive modifications to program code. In this paper, we propose two novel techniques, namely the kernel thread and IOCTL-based approaches, to enable preemptive priority-based scheduling for real-time GPU tasks. Our approaches exert control over GPU context scheduling at the device driver level and enable preemptive GPU scheduling based on task priorities. The kernel thread-based approach achieves this without requiring modifications to user-level programs, while the IOCTL-based approach needs only a single macro at the boundaries of GPU access segments. In addition, we provide a comprehensive response time analysis that takes into account overlaps between different task segments, mitigating pessimism in worst-case estimates. Through empirical evaluations and case studies, we demonstrate the effectiveness of the proposed approaches in improving taskset schedulability and timeliness of real-time tasks. The results highlight significant improvements over prior work, with up to 40\% higher schedulability, while also achieving predictable worst-case behavior on Nvidia Jetson embedded platforms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。