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

一种基于强化学习的HPC批作业回填策略

A Reinforcement Learning Based Backfilling Strategy for HPC Batch Jobs

Elliot Kolker-Hicks, Di Zhang, Dong Dai

AI总结:

针对HPC批作业调度中回填算法的精度与机会权衡问题,提出基于强化学习的RLBackfilling算法,通过作业轨迹试错学习策略,性能较EASY回填最高提升59%。

摘要:

高性能计算(HPC)系统被广泛应用于各学科,用于开展大规模复杂计算。HPC系统通常一次会收到数以万计的计算任务,俗称作业。这些作业需要被尽可能优化地调度,才能在合理的时间范围内完成。HPC调度系统常采用一种名为回填(backfilling)的技术:将低优先级作业提前调度,以利用那些正在等待待处理高优先级作业的空闲资源。要让回填机制生效,很大程度上需要依赖作业运行时间来计算待调度作业的开始时间,避免延误这些作业。人们普遍认为,更准确的作业运行时间估计会带来更好的回填效果和更高效的调度。然而我们的实验得出了不同结论:预测精度与回填机会之间存在被忽视的权衡关系。为了探究如何实现最优权衡,我们认为可以有效利用强化学习(RL)。强化学习依赖智能体通过观察环境做出决策,并根据决策质量获得奖励或惩罚。基于这一思路,我们设计了RLBackfilling——一种基于强化学习的回填算法。我们展示了RLBackfilling如何通过在现有作业轨迹上反复试错,学习到有效的回填策略。我们的评估结果显示:基于平均有界作业减速指标,与使用用户提供作业运行时间的EASY回填算法相比,调度性能最高提升59%;与使用理想预测作业运行时间(即实际作业运行时间)的EASY算法相比,性能提升30%。

英文摘要:

High Performance Computing (HPC) systems are used across a wide range of disciplines for both large and complex computations. HPC systems often receive many thousands of computational tasks at a time, colloquially referred to as jobs. These jobs must then be scheduled as optimally as possible so they can be completed within a reasonable timeframe. HPC scheduling systems often employ a technique called backfilling, wherein low-priority jobs are scheduled earlier to use the available resources that are waiting for the pending high-priority jobs. To make it work, backfilling largely relies on job runtime to calculate the start time of the ready-to-schedule jobs and avoid delaying them. It is a common belief that better estimations of job runtime will lead to better backfilling and more effective scheduling. However, our experiments show a different conclusion: there is a missing trade-off between prediction accuracy and backfilling opportunities. To learn how to achieve the best trade-off, we believe reinforcement learning (RL) can be effectively leveraged. Reinforcement Learning relies on an agent which makes decisions from observing the environment, and gains rewards or punishments based on the quality of its decision-making. Based on this idea, we designed RLBackfilling, a reinforcement learning-based backfilling algorithm. We show how RLBackfilling can learn effective backfilling strategies via trial-and-error on existing job traces. Our evaluation results show up to 59% better scheduling performance (based on average bounded job slowdown) compared to EASY backfilling using user-provided job runtime and 30% better performance compared with EASY using the ideal predicted job runtime (the actual job runtime).

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

↑