arXiv Science⌕ Search

arXiv subjects

Panagiotis Xanthopoulos

Publications and source records attributed to Panagiotis Xanthopoulos.

2 recordsLinked to original sources

Memory-Aware Scheduling of Large Task Graphs

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.

cs.DC↗

Futureproof Static Memory Planning

The NP-complete combinatorial optimization task of assigning offsets to a set of buffers with known sizes and lifetimes so as to minimize total memory usage is called dynamic storage allocation (DSA). Existing DSA implementations bypass the theoretical state-of-the-art algorithms in favor of either fast but wasteful heuristics, or memory-efficient approaches that do not scale beyond one thousand buffers. The "AI memory wall", combined with deep neural networks' static architecture, has reignited interest in DSA. We present idealloc, a low-fragmentation, high-performance DSA implementation designed for million-buffer instances. Evaluated on a novel suite of particularly hard benchmarks from several domains, idealloc ranks first against four production implementations in terms of a joint effectiveness/robustness criterion.

cs.OS↗