arXiv Science⌕ Search

arXiv · 2611.36304

Memory-Aware Scheduling of Large Task Graphs

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Ioannis Lamprou, Panagiotis Xanthopoulos, Etienne Filhol, Zhen Zhang, Denis Barthou, Yujie Yuan, Teng Su, Dimitrios Soudris. 2026-11-26. Memory-Aware Scheduling of Large Task Graphs. https://arxiv.science/abs/2611.36304

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Gutenberg: Taming Latency-Critical Online Datacenter Services with Near-Data-Processing

Latency-critical online datacenter services place growing pressure on memory while requiring isolation, fairness, and predictable QoS. Servers that pair a host CPU with near-data processing (NDP) units can relieve this pressure by executing requests next to memory, but three problems stand in the way. First, prior NDP schedulers often optimize solely for throughput, ignoring tail-latency SLOs. Second, uneven and shifting compute and memory traffic can overload a few NDP units and increase tail latency. Third, when the CPU and an NDP unit share writable hot data, keeping these data coherent on every write significantly increases service times on both sides. We present Gutenberg, a management system that combines the complementary strengths of the host CPU and the NDP units. A lightweight sketch tracks how often each group of co-accessed data is requested and written, and Gutenberg uses these statistics at two levels. At the request level, SLO-aware routing sends each request to the CPU or to an NDP unit according to its remaining deadline. At the memory level, Gutenberg manages data at the granularity of hot groups: it balances work across the NDP units and the CPU, keeps write-heavy data on a single side, and guards against shifts in the read/write mix, the data placement, and the bottleneck. Per-tenant pacing isolates co-located tenants. Cycle-accurate simulation results show that Gutenberg improves service capacity--throughput while meeting tail-latency SLO--by up to 65% (28% on geometric mean) over the best baselines across five services and three NDP hardware regimes. Under a shifting workload it misses the SLO for only 0.04% of requests, compared to at least 1.85% for baselines, and it sustains two co-located services at 50% of their standalone load, versus 30% for the baselines.

cs.DC↗

A Match Made in Hell: Perpetual Exploration with a Gray Hole and Byzantine Agents

Mobile agents can monitor a network by revisiting its nodes to assess changing local conditions. We study how a team of such agents can monitor a ring with at most $f$ \emph{Byzantine} agents, which are controlled by an adversary and may deviate arbitrarily from the algorithm; the other agents are honest. The agents act in common rounds, agree on a clockwise direction, and start together at a safe home node. The ring has one \emph{gray hole}, a node that the same adversary may activate in any round to destroy every honest agent on it; all other nodes are safe. The goal of \emph{perpetual exploration} is that every safe node is visited infinitely often by at least one honest agent. A Byzantine agent can deliberately fail to return, and its absence is then indistinguishable from the destruction of an honest agent. We consider the \emph{whiteboard} model, in which agents communicate through whiteboards at the nodes, and the \emph{face-to-face} model, in which agents communicate only when they meet. In the whiteboard model, $2f+3$ agents are necessary and sufficient when the ring size $n\ge4$ is known. On a triangle ($n=3$), $2f+2$ agents are necessary and sufficient. When $n$ is unknown, $3f+3$ or fewer agents do not suffice, whereas $3f+5$ agents suffice. In the face-to-face model, $2f+2$ or fewer agents do not suffice for $n\ge4$, whereas $3f+3$ agents suffice when $n$ is known. For $f=0$ and known $n\ge4$, three agents are necessary and sufficient, improving the upper bound of four agents of Bhattacharya et al.\ [DISC~2025]. On known rings of four or five nodes, five agents tolerate one Byzantine agent, which is optimal. When $n$ is unknown and all agents are honest, five agents are necessary and sufficient - two more than for known $n\ge4$. Finally, with up to $f$ Byzantine agents and unknown $n$, $3f+3$ or fewer agents do not suffice, whereas $5f+5$ agents suffice.

cs.DC↗

SmartIntent: A Serverless Edge Intelligence Architecture with Local LLMs for Building Automation

Building automation increasingly requires edge systems that can interpret ambiguous, multilingual, and context-dependent requests while checking structured outputs before device dispatch. We present SmartIntent, a serverless edge-intelligence architecture combining local large language model (LLM) intent services, device-state aggregation, a context-grounded JSON interface, deterministic pre-dispatch checks, orchestration, and device microservices. We adapt two compact LLMs with LoRA and evaluate them against compact, medium, and large local models and remote API baselines on a 2,000-instance Chinese-English-French test set. We distinguish offline structured-intent metrics from deployment-level validity, latency, and energy. The strongest adapted model, Qwen3.5-4B+LoRA, improves over its base model by 22.8, 20.9, and 13.1 percentage points in clarification handling, device identification, and action-parameter correctness, respectively. It matches or exceeds Qwen3.6-27B in format compliance and clarification handling and remains 1.0 and 1.9 percentage points below it in device and action-parameter correctness, respectively. In a local K3s/Knative deployment, it improves valid-output rate over its base model by 10.0--14.9 percentage points and reduces baseline-adjusted run-level energy by 5.2--18.4%, with a latency increase of 10.9--16.6%. For Qwen3.5-4B+LoRA, thinking mode adds at most 1.6 percentage points to output validity but increases latency by 58.2--118.2% and energy by 78.5--152.2%. These results show that compact local LLM services with deterministic output checks can support structured intent generation for execution-oriented building automation under controlled edge-deployment conditions while exposing clear validity-latency-energy trade-offs.

cs.DC↗