arXiv:2610.07504cs.DCOct 2026

Manuscript Offprint

arXiv:2610.07504

Mosaic: GPU Sharing with Latency Guarantees through Kernel-Level Interference Prediction

Foteini Strati, Ethan Graham, Leo Stephan, Paul Elvinger, Ana Klimovic

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

GPUs are increasingly in demand for AI workloads, yet often remain substantially underutilized, motivating workload colocation. However, colocation introduces interference that can degrade latency-critical workloads. Existing approaches mitigate interference using either heuristic-based scheduling or interference predictors. Heuristics rely on coarse-grained metrics that overlook important interference sources, while predictors often depend on simulator-specific or similarly coarse metrics. However, GPU interference is complex and arises from multiple mechanisms, including thread-block placement, memory hierarchy contention, and intra-SM resource contention. We present Mosaic, a kernel-level interference predictor that explicitly models these mechanisms using a combination of analytical and lightweight learned models. Across four GPU architectures, Mosaic reduces prediction error by up to an order of magnitude compared to prior predictors. We integrate Mosaic into a scheduler, MosaicSched, that performs online kernel admission control and selects between full-GPU colocation and SM partitioning to maximize best-effort throughput while satisfying latency SLOs. Across all workloads, MosaicSched keeps the p99 latency below or very close to the target SLO.

Ana Klimovic

ETH Zurich

Switzerland

1 Introduction

Graphics Processing Units (GPUs) are widely used to train and serve modern AI models. As AI adoption continues to grow, so does the demand for GPU resources. Paradoxically, despite their high demand, GPUs are often substantially underutilized. A week-long study of a production ads inference service at Meta shows that the GPU utilization remained between 20%-40% over the entire period [5]. Microsoft reports less than or equal to 50% GPU utilization across 400 training and inference jobs [11]. GPU underutilization can arise from various factors, such as communication and data-processing overheads, checkpointing, stragglers, small batch sizes, and varying resource demands across a workload [13, 15, 33, 34, 50]. Such underutilization results in significant cost and energy inefficiencies, as GPUs that are not fully utilized, still consume a significant amount of power, often quite close to their Thermal Design Power (TDP) [19].

Figure

Figure 1. P99 latency of ResNet50 inference as a high-priority job, colocated with different best-effort jobs under Orion and Green-Context-based scheduling. Current GPU scheduling approaches try to minimize interference, but cannot provide performance guarantees for latency-critical jobs.

A common approach to improve GPU utilization is to spatially colocate multiple workloads on the same GPU, allowing them to execute concurrently. However, concurrent execution introduces contention for shared GPU resources, which can significantly degrade application performance. This has motivated the design of GPU schedulers that control the colocation of latency-critical and best-effort workloads [5, 15, 16, 34].

There are two main approaches that GPU schedulers use to try to minimize interference. The first is relying on heuristics to guide scheduling decisions, using coarse resource characteristics such as Streaming Multiprocessor (SM) occupancy, memory bandwidth, or overall compute and memory resource usage [15, 32, 34]. While effective in some cases, these heuristics capture only a subset of GPU interference mechanisms and can therefore lead to suboptimal scheduling decisions [8]. For example, Figure 1 shows the p99 latency of a high-priority job (ResNet50 inference) running under different colocation scenarios with best-effort jobs using the Orion scheduler [34] and a Green-Context-based scheduler that partitions the GPU SMs across the jobs and allocates more GPU SMs to the high-priority (HP) job. Neither approach preserves the high-priority job's performance across all colocation scenarios: p99 latency can be as high as 3.4×3.4\times compared to the ideal (no-colocation) scenario.

∗^{*}Work done while at ETH Zurich

The second approach is explicitly predicting the slowdown caused by colocation and using these predictions to guide scheduling [14, 37, 43, 47, 49]. While this should enable more informed scheduling decisions, it is challenging to accurately predict interference. Today’s predictors are inaccurate because they either rely on simulator-specific metrics that do not generalize in real GPUs [37, 47, 49] or they use coarse-grained hardware statistics that fail to capture the diverse sources of GPU interference [14].

The above mechanisms are suboptimal because GPU interference is a complex phenomenon. GPU interference arises from multiple distinct mechanisms—including thread-block placement, memory hierarchy contention, and intra-SM resource contention—that existing heuristics and predictors either ignore or conflate [8]. Accurately modeling these mechanisms is essential for practical interference-aware GPU scheduling.

We present Mosaic, a kernel-level interference predictor that explicitly decomposes GPU interference into its different sources and models each separately. Mosaic enables GPU schedulers to provide guarantees such as p99 latency SLOs. The Mosaic predictor design is guided by three key observations. First, accurately predicting slowdown requires capturing how kernels overlap in space and time, which in turn requires modeling thread-block placement across SMs. Second, aggregate hardware metrics such as memory bandwidth are often insufficient, as slowdown depends on finer-grained properties such as memory access behavior and latency-hiding capability. Third, while some interference mechanisms can be modeled analytically, others are better captured with lightweight learned models. Mosaic combines both to predict slowdown for kernels running on default CUDA streams or Green-Context-based streams that partition GPU SMs. Across four GPU types (H100, A100, V100, and RTX-3090), Mosaic reduces prediction error by up to an order of magnitude compared to prior predictors.

Using the Mosaic predictor, we build MosaicSched, a GPU scheduler that performs online admission control for best-effort kernels, in order to maintain p99 latency guarantees for the high-priority job. For every kernel submitted by the best-effort job, MosaicSched queries the predictor to get the estimated slowdown on the colocated high-priority kernel and admits the best-effort kernel only if and when the predicted end-to-end latency of the high-priority workload remains within a user-specified service level objective (SLO). MosaicSched also optimizes performance by automatically selecting between two colocation modes: 1) full-GPU colocation, where both workloads can use all SMs and therefore dynamically share GPU resources, and 2) SM partitioning with CUDA Green Contexts [24], where each workload is restricted to a dedicated subset of SMs, reducing interference at the cost of limiting available resources. Across all workloads and SLO targets, MosaicSched keeps the p99 latency below or very close to the target SLO.

Our experiments also reveal important insights about GPU sharing. First, neither colocation mode is universally optimal. The tradeoff between full-GPU and SM partitioning colocation depends on the resource characteristics of both the high-priority and best-effort workloads. While full-GPU execution offers more resources to best-effort kernels, it can also lead to stronger interference, reducing admission opportunities for the best-effort kernels. Conversely, SM partitioning reduces interference but limits the throughput attainable by the admitted best-effort kernels, and the optimal partition depends strongly on the workloads' compute and memory characteristics. Second, maximizing GPU utilization does not necessarily minimize deployment cost. While beneficial for many workload pairs, GPU sharing may require throttling the best-effort workload so extensively to meet the high-priority latency target that its completion time increases substantially, eliminating the cost advantage of sharing a single GPU.

References (8)