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

Ponder:面向科学工作流的任务内存需求在线预测

Ponder: Online Prediction of Task Memory Requirements for Scientific Workflows

Fabian Lehmann, Jonathan Bader, Ninon De Mecquenem, Xing Wang, Vasilis Bountris, Florian Friederici, Ulf Leser, Lauritz Thamsen

AI总结:

针对科学工作流内存分配保守浪费资源、现有预测方法假设在真实场景不成立的问题,提出可适配不同内存需求模式的在线任务配置策略Ponder,在真实工作流测试中显著提升内存分配质量、缩短完工时间并减少任务失败。

摘要:

科学工作流被用于分析海量数据。这类工作流包含大量任务,其中许多任务会被反复执行,即针对不同输入运行相同的自定义程序。用户需要为每个任务指定资源分配量,该分配量必须足以适配所有输入以避免任务失败。这导致任务内存分配往往过于保守,浪费了宝贵的集群资源,限制了整体并行度,还会延长工作流的完工时间(makespan)。\n 在本文中,我们首先在来自nf-core工作流仓库的4个真实工作流上对一种当前最优(state-of-the-art)方法进行了基准测试。分析结果显示,现有预测方法的某些底层假设——这类方法通常仅在模拟工作流上被评估——在真实工作流和实际执行场景中普遍无法成立。随后我们提出了Ponder,这是一种全新的在线任务资源配置策略,它会针对不同的内存需求模式,在多种预测方法间进行考量和选择。我们为Nextflow实现了Ponder,并已公开代码。在一项同时考量内存预测对调度影响的实验评估中,与当前最优方法相比,Ponder将内存分配质量平均提升了71.0%,完工时间缩短了21.8%。此外,Ponder使任务失败率降低了93.8%。

英文摘要:

Scientific workflows are used to analyze large amounts of data. These workflows comprise numerous tasks, many of which are executed repeatedly, running the same custom program on different inputs. Users specify resource allocations for each task, which must be sufficient for all inputs to prevent task failures. As a result, task memory allocations tend to be overly conservative, wasting precious cluster resources, limiting overall parallelism, and increasing workflow makespan. In this paper, we first benchmark a state-of-the-art method on four real-life workflows from the nf-core workflow repository. This analysis reveals that certain assumptions underlying current prediction methods, which typically were evaluated only on simulated workflows, cannot generally be confirmed for real workflows and executions. We then present Ponder, a new online task-sizing strategy that considers and chooses between different methods to cater to different memory demand patterns. We implemented Ponder for Nextflow and made the code publicly available. In an experimental evaluation that also considers the impact of memory predictions on scheduling, Ponder improves Memory Allocation Quality on average by 71.0% and makespan by 21.8% in comparison to a state-of-the-art method. Moreover, Ponder produces 93.8% fewer task failures.

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

↑