Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Google Research 6 min read Research hardMaster

Scheduling in a changing world: Maximizing throughput with time-varying capacity

Non-preemptive scheduling under a time-varying capacity profile, where leftover capacity after high-priority tasks fluctuates, gets its first constant-factor approximation algorithms for throughput maximization. Offline, an earliest-finish Greedy achieves a 1/2-approximation for unit-weight jobs and a primal-dual method gives 1/4 for weighted jobs. Online, Greedy with interrupt-and-restart stays 1/2-competitive, while without restarts no algorithm is constant-competitive in general. For jobs sharing a common deadline, an add/replace/interrupt/discard algorithm achieves 1/11, leaving a gap to the 1/2 upper bound.

Related posts

  • Same Cluster, 33 Points More Utilization: What Changed Was the Order

    Hugging Face hardMaster

    A constraint-aware GPU allocator beat a FIFO scheduler on identical hardware and workloads across seven scenarios, raising utilization by up to 33 percentage points and priority-weighted output by up to 105%. FIFO loses capacity in two ways: it reserves peak real-time inference demand all day, and it places batch work in arrival order. The allocator instead treats real-time demand as a per-timestep curve and plans contiguous power-of-two GPU blocks by priority across the whole horizon. Its rules come from a formal model with five constraints and an objective that weights unmet real-time demand 5–10× above batch allocation, so it returns valid grids in 1–15 ms. Specialized forecasters for training variants, quantization and weekly inference demand supply the inputs, and receding-horizon commitment limits the damage when forecasts are wrong.

  • Linear programming for fun and profit

    Modal mediumAdept

    Modal provisions GPU and CPU capacity across multiple clouds with a "resource solver" that formulates demand, prices, availability and per-instance limits as a linear program. It solves that program with Google's GLOP simplex solver from OR-Tools and outputs a delta of instances to spin up or down. Cheap preprocessing heuristics, such as pruning instance types, keep solves to fractions of a second rather than minutes, trading a little optimality for predictable scaling latency. Background workers make the actual cloud requests and feed observed capacity-limit failures back into later solves. The approach lets Modal exploit price arbitrage, such as H200s priced below H100s, and saves millions per year.

  • Cache-aware prefill–decode disaggregation (CPD) for up to 40% faster long-context LLM serving

    Together AI hardMaster

    Cache-aware prefill–decode disaggregation (CPD) extends standard PD serving with a dedicated pre-prefill tier for low-reuse (cold) long prompts, a router that estimates prefix-cache reuse per request, and a three-level KV cache hierarchy (GPU memory, host DRAM, RDMA-connected distributed cache). Cold prefills compute new context and write KV state to the distributed cache, so warm requests on normal prefill nodes fetch KV blocks instead of queueing behind multi-second prefills. On B200 GPUs with a synthetic coding-agent workload, CPD raised sustainable throughput from about 0.75–0.8 to 1.1–1.15 QPS per GPU (~40%) and kept median TTFT far lower near saturation, without worsening p90 tail latency. The gains come from scheduling and cache reuse on the prefill path, not faster model execution.

  • The future of AI needs more flexible GPU capacity

    Modal easyNovice

    Inference and many other GPU workloads are highly volatile: Poisson noise, daily and weekly cycles, viral spikes and bursty batch jobs, which pushes fixed-reservation GPU clusters below 50% utilization. A service at 1 req/s with 10s requests needs 12-15 GPUs rather than 10 just to absorb noise. Utilization improves through demand pooling across tenants (provision for the peak of the sum, not the sum of peaks), supply pooling across regions, GPU types and clouds, fast container and model startup, and shifting latency-insensitive work to off-peak hours. GPU spend is expected to skew toward inference served from on-demand, serverless capacity, with long-term reservations no longer the default.

  • Prefill and Decode for Concurrent Requests - Optimizing LLM Performance

    Hugging Face mediumAdept

    LLM token generation splits into a compute-bound prefill phase, which processes all prompt tokens in parallel to produce the first token, and a memory-bandwidth-bound decode phase, which produces later tokens one at a time. These map to time to first token and time per output token. Static batching leaves the GPU underutilized and delays new requests. Prefill-first continuous batching (vLLM, TGI) minimizes time to first token but pauses running decodes. Chunked prefill interleaves prefill chunks with decode steps, trading a small time-to-first-token increase for smoother decoding. At TNG it raised total throughput by about 50%, and the default chunk size is recommended when load patterns are unpredictable.

The quest for software engineering knowledge.

Look:
Layout: