Memory-Aware Scheduling of Large Task Graphs
Ioannis Lamprou, Panagiotis Xanthopoulos, Etienne Filhol, Zhen Zhang, Denis Barthou, Yujie Yuan, Teng Su, Dimitrios Soudris
Abstract
In modern applications like deep learning and scientific workflows, memory scarcity is a persistent issue. Current task graph scheduling solutions are either case-specific or computationally expensive, thus creating a need for a general, fast, and efficient approach. In this paper, we consider task graph scheduling on architectures with limited shared memory. We design an algorithm that uses carefully maintained memory consumption information; any schedule it returns provably fits in memory. Our memory-aware adaptive scheduling algorithm runs in polynomial time and requires neither a precomputed sequential schedule nor any search. We compare it to MASTAG, the state of the art for scientific workflows, on 341 task graphs. On the 339 where MASTAG's sequential solver returns a schedule, our main task ordering comes within 0.01% of its memory while being 5.5 times faster, on median. On 4 and 8 processors, a small portfolio of variants schedules 63% of the instances under a memory limit equal to the sequential peak of MASTAG, and 95% to 96% under one that exceeds it by less than 0.4% on median. The portfolio is, on median, 7 to 12 times faster than MASTAG, and 2.9 to 4.1 times faster without MASTAG's optional refinement, with makespans within 0.2% to 8.1% of MASTAG's over all limits we test. In training AI foundation models, we achieve up to 1.10x speedup over the default, manually fine-tuned schedule of the MindSpore framework with at most 3.62% more memory, and even memory savings up to 18%. On seven training graphs of large language models with up to 115,528 tasks, our Python implementation computes a sequential schedule in at most 33 seconds. With the time limit of its experiments, MASTAG's sequential solver takes 13 minutes to 2.2 hours on five of them and returns no schedule within a day on the two largest.
Create a lesson
Metadata
- Comments
- 42 pages, 10 figures, 20 tables
Related papers
BudgetGT: Distributed Full-Graph Transformer on Large Graphs with Budgeted Attention and Memory
Shared title terminologycs.DCChu Zhao, Yuan Fang, Yuhai Zhao et al.
RankServe: Rank-Aware CPU-GPU Scheduling for Memory-Constrained MoE Serving
Shared title terminologycs.DCHengyi Zhu, Zhendong Mi, Pu Zhao et al.
Dependency-Aware Task Decomposition and Parallel Multi-LLM Execution on Serverless Workflows
Shared title terminologycs.DCJackson Beem, Amine Barrak
Presage: Server-Aware Configuration and Predictive Scheduling for LLM Agent Serving
Shared title terminologycs.DCBotao Zhu, Xiaoyi Fan, Yifei Zhu
Chase: Arbitrage-Aware Scheduling for Geo-Distributed AI Infrastructure
Shared title terminologycs.DCMatej Sandor, Yao Fu, Chi Xing et al.
CGSpec: Consistency-Guided Speculative Decoding with Overlap-Aware Verification Scheduling for Edge-Cloud Inference
Shared title terminologycs.DCYuanbing Ouyang, Xiaoli Liu, Shirong Wei et al.