A Runtime System for Mitigating Crossbar Port Contention on SM-Partitioned GPUs
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
A Runtime System for Mitigating Crossbar Port Contention on SM-Partitioned GPUs Ziwen Wang1 , Qi Luo1 , Kunlin Li1 , Changxi Liu1,* , Dongsheng Wang2 , Yun Chen1,*
The Hong Kong University of Science and Technology (Guangzhou) 2 Tsinghua University {zwang578, qluo615, kli082}@connect.hkust-gz.edu.cn, {changxiliu, yunchen}@hkust-gz.edu.cn, wds@tsinghua.edu.cn
arXiv:2611.24458v1 [cs.DC] 18 Nov 2026
1
Abstract—To avoid scheduling delays when running concurrent workloads on a GPU, Streaming Multiprocessor (SM) partitioning mechanisms such as CUDA Green Contexts restrict each workload to separate SMs. Despite this partitioning, concurrent workloads still significantly slow down latency-critical workloads, which recent studies attribute to shared L2 cache and memory contention. However, contention also occurs at the crossbar ports connecting each Graphics Processing Cluster (GPC) of SMs to the L2 cache, as all SMs in a GPC share one port. Green Contexts spread workloads across GPCs, placing concurrent workloads in the same GPCs and forcing latency-critical memory requests to queue behind background requests. Packing workloads into separate GPCs avoids this contention, but forces latency-critical memory requests through fewer ports, limiting memory bandwidth. Consequently, neither spreading nor packing is always faster across workloads and GPUs. Based on these observations, we present GPCPlace, a runtime system that dynamically selects between spreading and packing by profiling workloads on the target GPU to estimate both slowdowns, and hooks kernel launches in the CUDA driver to set SM masks without application modifications. Across 14 GPUs and 112 workload cases, GPCPlace speeds up latencycritical workloads by up to 1.15× on average and 2.38× maximum over Green Contexts without degrading throughput.
I. I NTRODUCTION Modern applications increasingly run multiple workloads concurrently on a single GPU to improve hardware utilization. However, concurrent workloads share all Streaming Multiprocessors (SMs), so a large throughput-oriented kernel can occupy the entire GPU and delay the scheduling of latency-critical workloads. To avoid such scheduling delays, SM partitioning mechanisms, such as CUDA Green Contexts [15], libsmctrl [1], and nvtaskset [2], partition the GPU’s SMs by restricting each workload to a separate subset of SMs, ensuring that latency-critical workloads always have SMs available to execute immediately. Such SM partitioning is now supported by mainstream deep learning and inference frameworks and widely adopted in LLM serving, fine-tuning, and real-time processing [4], [10], [14], [18], [23], [24]. Despite this SM partitioning, recent studies find that latency-critical workloads can still be significantly slowed down by concurrent workloads [4], [8], [18], [22], [24]. These studies attribute the slowdown to contention for the shared L2 cache and GPU memory. Consequently, to mitigate this contention, existing systems adjust the number of SMs allocated to each workload [4], [14], [17], [23], [24], [28], delay background kernels to avoid concurrent execution [18], or modify background kernels to limit their memory accesses [24]. However, beyond the shared L2 cache and GPU memory, contention also occurs at the crossbar ports that connect each Graphics Processing Cluster (GPC) of SMs to the L2 cache. Specifically, a GPU organizes its SMs into multiple GPCs, and all SMs within a GPC share a single crossbar port to access the L2 cache. Therefore, when SMs of latency-critical and background workloads are placed in the same GPC, intensive memory requests from the background * Corresponding authors: Changxi Liu and Yun Chen.
workload flood the shared crossbar port and force latency-critical requests to queue behind them, significantly slowing down the latency-critical workload. We find that CUDA Green Contexts spread each workload’s SMs across multiple GPCs, which places concurrent workloads in the same GPCs and causes this contention. To avoid this contention, latency-critical and background workloads can be packed into separate GPCs. However, packing the latency-critical workload into fewer GPCs forces its memory requests to go through fewer crossbar ports, which limits its memory bandwidth and thus slows it down. Consequently, neither spreading nor packing is always faster, and the better placement depends on which of the two slowdowns is smaller, which varies across concurrent workloads and GPUs. Based on these observations, we present GPCPlace, which dynamically selects between spreading and packing a latency-critical workload to reduce its latency. Specifically, GPCPlace profiles the workloads on the target GPU to estimate both the shared-port queueing delay and the bandwidth slowdown from fewer crossbar ports, and selects the placement with the smaller slowdown. At runtime, GPCPlace hooks kernel launches in the CUDA driver and sets each kernel’s SM mask to the selected GPCs, requiring no modifications to applications. Moreover, because GPCPlace keeps the number of SMs allocated to each workload unchanged, it can be directly combined with existing contention-mitigation methods. We evaluate GPCPlace across 14 NVIDIA GPUs spanning four architectures on 112 cases of concurrent latency-critical and background workloads from real-world GPU sharing scenarios. Compared with CUDA Green Contexts, GPCPlace speeds up latency-critical workloads by up to 1.15× on average and up to 2.38× on individual cases without degrading total system throughput. In summary, this paper makes the following contributions: We uncover GPC crossbar port contention under SM partitioning and show that spreading workloads across GPCs (as in CUDA Green Contexts) causes shared-port queueing, whereas packing them into separate GPCs avoids this contention but limits memory bandwidth through fewer ports, making the better placement depend on the concurrent workloads and the GPU. • We propose GPCPlace, a runtime system that dynamically selects between spreading and packing a latency-critical workload by profiling workloads on the target GPU to estimate both slowdowns, and transparently applies the placement in the CUDA driver without application modifications. • We evaluate GPCPlace across 14 NVIDIA GPUs and 112 realworld workload cases, demonstrating up to 1.15× average and 2.38× maximum latency speedup over CUDA Green Contexts without throughput degradation. •
background
TPC
GPC 1
GPC 2
GPC 3
SM
SM
SM
SM
SM
SM
SM
SM
SM
SM
SM
SM
SM
SM
SM
SM
slice
slice
slice
1
channel
channel
channel
3
4
5
6
7
2.42×
decode (per step) probe (per access)
2.5 2.0
2.00× 1.5 1.0 0
1
2
3
4
GPC 0 GPC 1 GPC 2 GPC 3
slice
slice
slice
DRAM channel
2
requests to slice 7
L2 cache slice
SM SM SM SM
0
Crossbar slice
requests from GPC 3
channel
channel
(a) Background TPCs in each GPC of decode arbiter slice 7
Fig. 1. Architecture of a GPU shared by two concurrent workloads, with one input port and one output port of the crossbar enlarged.
II. BACKGROUND AND M OTIVATION A. GPU Architecture and SM Partitioning Fig. 1 shows the architecture of an NVIDIA GPU. Its compute resources are organized into multiple Graphics Processing Clusters (GPCs), each containing several Texture Processing Clusters (TPCs) of two Streaming Multiprocessors (SMs). All SMs share an on-chip L2 cache consisting of multiple slices and off-chip DRAM consisting of multiple channels. An on-chip crossbar connects the GPCs to the L2 slices, with one crossbar port for each GPC and one for each L2 slice, through which SMs send memory requests across all L2 slices. Because each GPC port sends at most one request per cycle and a busy L2 slice cannot accept every request immediately, each GPC port maintains a separate queue for each L2 slice to hold pending requests from the SMs in that GPC. When multiple GPC ports have pending requests for the same L2 slice, an arbiter selects requests equally across their queues and forwards at most one request per cycle to that slice. SM partitioning mechanisms, such as the most widely used CUDA Green Contexts [15], partition a GPU’s SMs across concurrent workloads by restricting each workload’s kernels to a disjoint set of SMs. Specifically, these mechanisms allocate SMs at the granularity of TPCs. For example, when a latency-critical workload runs concurrently with a background workload, each workload is assigned to a separate set of TPCs so that they do not contend for compute resources (Fig. 1). However, even with SM partitioning, concurrent workloads still contend for the shared L2 slices and DRAM [4], [8], [18], [22], [24], [28]. Moreover, because all TPCs in a GPC share one crossbar port, workloads placed in the same GPC also contend for that GPC’s crossbar port, so whether this contention occurs depends on how their TPCs are assigned across GPCs. B. Green Contexts’ Spread Placement Causes Requests to Queue at Shared Ports When creating a Green Context, an application specifies only the number of SMs it needs, leaving the CUDA driver to decide which TPCs across the GPCs to assign. To examine how the CUDA driver assigns TPCs across GPCs, we create Green Contexts with different SM counts across 14 NVIDIA GPUs spanning four architectures (Section IV) and record the assigned TPCs. Across all 14 GPUs, instead of filling one GPC before moving to the next, the driver spreads each workload across multiple GPCs. Because this spread placement leaves remaining TPCs in each occupied GPC, when a latency-critical workload runs concurrently with a background workload under Green Contexts, the driver assigns those remaining
Relative to alone (×)
latency-critical
GPC 0
Relative to 0 (×)
GPU
5 4 3 2 1 0
port queue L2 / DRAM alone
4.78
1.98 1.00 none
other GPCs
same GPCs
(b) Where the background runs
Fig. 2. Time of decoding and of a probe’s memory accesses as background TPCs join decoding’s GPCs (a), and decoding time relative to running alone 1 (b).
TPCs to the background workload and places both workloads in the same GPCs. However, because all TPCs in a GPC send their memory requests through the same crossbar port and its queues (Section II-A), placing latency-critical and background workloads in the same GPCs causes latency-critical memory requests to queue behind background requests at each shared port, even though they do not share any SMs. To evaluate the impact of sharing GPCs, we run a latency-critical LLM decoding workload (spread across GPCs with 1 TPC per GPC) concurrently with a memory-intensive background vector addition workload on RTX 4090, and vary the number of background TPCs sharing each GPC with decoding from 0 to 4 while keeping the total number of background TPCs on the GPU constant. To quantify the queueing delay at the shared crossbar port, we place a single-thread pointer-chase probe kernel in the same GPC as the decoding workload and measure the latency of each memory access sent through that port. As shown in Fig. 2a, as the number of background TPCs per shared GPC increases from 0 to 4, the probe’s memory access latency increases from 193 ns to 386 ns (2.00×) and each decoding step slows down from 65.9 ms to 159.3 ms (2.42×). Moreover, as shown in Fig. 2b, compared with running alone (33.3 ms per step), decoding slows down by 1.98× when the background workload runs in other GPCs due to shared L2 cache and DRAM contention, and by 4.78× when sharing GPCs with 4 background TPCs per GPC, showing that shared-port queueing further slows down the workload beyond L2 cache and DRAM contention. Observation 1: Green Contexts spread workloads across GPCs, placing latency-critical and background workloads in the same GPCs and causing latency-critical memory requests to queue behind background requests at shared crossbar ports. C. Packing Workloads into Dedicated GPCs Limits Bandwidth Through Fewer Ports To avoid queueing at shared crossbar ports (Section II-B), a latency-critical workload can be isolated from background workloads by packing its TPCs into dedicated GPCs. However, doing so forces its memory requests through fewer crossbar ports, which limits its memory bandwidth and slows down the workload. To evaluate this limitation, we run the same LLM decoding workload alone on RTX 4090, and compare packing 1 to 6 TPCs into a single GPC with spreading them across 1 to 6 GPCs at 1 TPC per GPC. As shown in Fig. 3a, packing and spreading achieve the same speed at 1 to 2 TPCs, but as the number of TPCs increases from 3 to 6, the speedup of the packed workload falls behind the near-linear scaling of the spread workload, reaching only 4.4× over 1 TPC at 6 TPCs compared with 5.6× when spread, confirming that restricting the workload to fewer crossbar ports slows it down by limiting its memory bandwidth [11].
4
4.4×
3 2 1 1
2
3
4
5
300
33.7
29.2
28.8
28.5
135
156
158
160
1
2
3
6
200 100 0
6
bandwidth time per step
40 20
Time per step (ms)
5
Bandwidth (GB/s)
Speed vs. 1 TPC (×)
5.6×
spread packed
6
0
(b) Next to background: GPCs of decode
(a) Alone: TPCs of decode
Fig. 3. Decoding alone, packed into one GPC or spread across GPCs (a), and next to a background workload with its six TPCs in 1 to 6 GPCs (b).
1.00
0.98 0.80 0.80 1.01
Ada
Hopper
Blackwell
Ampere
Spark
5070
0.94 0.85 1.00 0.94
5090
H20
1.00 0.96 0.97 1.00
Prefill 0.91 0.97 0.81 0.86 0.88
L4
1.00
4090
0.93 0.61 0.90 0.66
4080
1.15 1.05 1.32 1.10
Vector search 0.98 1.02 0.99 0.99 1.02
A40
1.28 1.56 1.45 1.11
1.00
3090
0.98
1.22 1.04 1.14 1.17
A6000
1.42 1.26 1.30 1.31
3060
Add 1.13 1.26 1.43 1.39 1.43 AdamW step 0.99 1.14 1.14 1.13 1.14
A800
5000 Ada
PRO 6000
1
Fig. 4. Speedup of packing LLM decoding into dedicated GPCs over spreading it across GPCs, next to four background workloads on 14 GPUs 1 (above 1, in blue: packing is faster).
Moreover, when a latency-critical workload runs concurrently with a background workload and multiple GPC ports have pending requests for the same L2 slice, the slice’s arbiter selects requests equally across these ports (Section II-A). Consequently, packing the latency-critical workload into fewer dedicated GPCs gives it fewer ports in this arbitration, reducing the memory bandwidth it receives from the L2 slices and slowing it down. To evaluate this limitation, we run the 6-TPC LLM decoding workload concurrently with the background vector addition workload placed in other GPCs on RTX 4090, and distribute the decoding workload’s 6 TPCs across 1, 2, 3, or 6 dedicated GPCs. As shown in Fig. 3b, when the decoding workload is packed into 1 dedicated GPC, it receives only 135 GB/s of memory bandwidth and takes 33.7 ms per step, whereas distributing its 6 TPCs across 2 to 6 dedicated GPCs increases its bandwidth to 156–160 GB/s and reduces each step to 29.2–28.5 ms. Observation 2: Packing a latency-critical workload into dedicated GPCs avoids shared-port queueing, but restricts the workload to fewer crossbar ports, limiting its memory bandwidth through these ports and slowing down the workload. D. Whether Spreading or Packing Is Faster Depends on the Workloads and the GPU Spreading a latency-critical workload across GPCs causes its requests to queue at shared ports (Section II-B), whereas packing it into dedicated GPCs limits its memory bandwidth through fewer ports (Section II-C). Consequently, neither spreading nor packing is always faster for the latency-critical workload, and which placement achieves lower latency depends on both the concurrent workloads and the GPU. To evaluate how this trade-off varies across workloads and GPUs, we run the LLM decoding workload concurrently with four background workloads (vector addition, an AdamW optimizer step, vector search, and LLM prefill) across 14 GPUs, and measure the speedup of packing decoding into dedicated GPCs over spreading it across GPCs (Fig. 4). As shown across the four rows of Fig. 4, which placement is faster depends strongly on the concurrent workloads. With memory-intensive Add or AdamW step, which generate
heavy DRAM traffic and cause severe queueing at shared crossbar ports (Section II-B), packing avoids this queueing and speeds up decoding over spreading on nearly all GPUs (1.11×–1.56× with Add on 13 GPUs and 1.04×–1.32× with AdamW step on 12 GPUs). Conversely, Prefill is compute-bound with minimal memory traffic, so spreading causes negligible shared-port queueing while packing limits decoding’s memory bandwidth through fewer ports (Fig. 3a), slowing it down on most GPUs (down to 0.80×–0.81× on RTX 3090, RTX 5090, and RTX PRO 6000). Similarly, Vector search keeps the L2 slices busy without saturating individual GPC ports, so packing gives decoding fewer ports in L2 slice arbitration (Fig. 3b) and slows it down to 0.61×–0.66× on RTX 4090 and RTX 5000 Ada. Moreover, as shown across the 14 columns of Fig. 4, even for the same concurrent workloads, the effect of packing versus spreading varies significantly across GPUs. For example, with Add and AdamW step, packing provides little speedup on H20 and A800 (0.98×– 1.13×) due to their high HBM bandwidth, but speeds up decoding by up to 1.45×–1.56× on RTX PRO 6000 and RTX 5090. Similarly, with Vector search and Prefill, packing slows down decoding to 0.61×–0.80× on RTX 4090, RTX 5000 Ada, and RTX 5090, while having little effect on H20 and DGX Spark (0.98×–1.01×). Overall, the difference between packing and spreading across GPUs roughly increases with the ratio of compute request rate (SMs × clock frequency) to memory bandwidth. Observation 3: Neither spreading nor packing is always faster for a latency-critical workload: which placement achieves lower latency depends on both the concurrent workloads and the GPU. III. GPCP LACE A. Overview Based on the observations in Section II, we design GPCPlace, a runtime system that keeps each workload’s SM count unchanged and dynamically selects between spreading and packing a latencycritical workload to reduce its latency. As shown in Fig. 5, GPCPlace operates in three steps. First, before deployment, GPCPlace profiles 1 to estimate the sharedthe workloads on the target GPU (⃝) port queueing delay caused by concurrent background workloads (Observation 1) and the bandwidth slowdown from packing the latency-critical workload into fewer GPCs (Observation 2). Second, GPCPlace packs the latency-critical workload into dedicated GPCs if the estimated queueing delay exceeds the packing slowdown, or spreads it across GPCs otherwise (Observation 3), and assigns 2 Third, at the remaining TPCs to the background workloads (⃝). runtime, GPCPlace hooks kernel launches in the CUDA driver and 3 requiring no sets each kernel’s SM mask to the selected GPCs (⃝), modifications to applications. B. Profiling and Placement Policy When a latency-critical workload is spread across GPCs, its memory requests queue behind background requests at shared crossbar ports (Observation 1). To estimate this queueing delay, GPCPlace profiles the latency-critical workload on 1 TPC under three settings 1 top): (i) alone, where the for each background workload (Fig. 5 ⃝, latency-critical workload runs alone on 1 TPC with latency talone ; (ii) separate, where the background workload runs on G − 1 TPCs in another GPC (where G is the number of TPCs per GPC) while the latency-critical workload runs with latency tseparate ; and (iii) shared, where the background workload runs on the other G − 1 TPCs in the same GPC as the latency-critical workload, which runs with latency tshared . Because the shared and separate runs have the same G − 1
latency-critical
1
Profile alone
GPC 0
GPC 1
GPC 0
GPC 1
shared
GPC 0
GPC 1
I¯ ≥ T ? no
X = tseparate /talone packed
GPC 0
GPC 1
I = tshared /tseparate
idle
TPC
Place
2 separate
background
yes
3 max(1, L/X̄) if X̄ < Xm T= max(1, L/X̄) · D if X̄ ≥ Xm
GPC 1
GPC 2
GPC 3
spread
GPC 0
GPC 1
L = tpacked /tspread
Crossbar
GPC 0
GPC 1
spread
GPC 0
GPC 1
GPC 0
GPC 1
GPC 2
background
launch
launch
callback
callback
write QMD ... TPC mask 0 0 0 0 1 1 1 1
write QMD ... TPC mask 1 1 1 1 0 0 0 0
GPC 0
GPC 2
GPU
spread packed
latency-critical CUDA Driver
packed GPC 0
Launch
GPC 3
GPC 1
GPC 3
vector search
D = Ir · tpacked /tspread Crossbar
Crossbar
1 selects between spreading and packing (⃝), 2 and sets the TPC mask on each kernel launch Fig. 5. Overview of GPCPlace: it profiles the workloads (⃝), 3 (⃝).
background TPCs contending for the L2 cache and DRAM and differ only in whether they share a crossbar port, GPCPlace estimates the shared-port queueing delay avoided by packing as I=
tshared . tseparate
Meanwhile, GPCPlace also measures how much the background workload slows down the latency-critical workload through the shared L2 slices and DRAM: tseparate X= . talone When multiple background workloads run concurrently, GPCPlace averages I and X across them into I¯ and X̄, weighting each background workload by its number of TPCs because a spread latencycritical workload shares more GPCs with a background workload that occupies more TPCs. Packing a latency-critical workload into dedicated GPCs restricts it to fewer crossbar ports (Observation 2), which slows down the workload due to both limited port bandwidth (Fig. 3a) and reduced arbitration share at busy L2 slices (Fig. 3b). First, to measure the slowdown from limited port bandwidth, GPCPlace runs the latencycritical workload with its allocated TPCs alone under packed and 1 middle), measures its latencies tpacked spread placements (Fig. 5 ⃝, and tspread , and computes the standalone packing slowdown L: L=
tpacked . tspread
When running concurrently with background workloads, a spread workload is slowed down by X̄ at the shared L2 slices and DRAM. Meanwhile, a packed workload is bounded by the tighter bottleneck between its fewer crossbar ports (L) and the shared L2 slices and DRAM (X̄), so it is slowed down by max(L, X̄). Dividing the two gives the port-bandwidth slowdown of packing over spreading under concurrent execution, max(L, X̄)/X̄ = max(1, L/X̄). Second, to measure the slowdown D from reduced arbitration share at busy L2 slices, GPCPlace runs the latency-critical workload with its allocated TPCs under packed and spread placements while a reference background workload occupies the remaining TPCs, and measures its latencies tpacked and tspread under this reference 1 bottom). In general, the ratio tpacked /tspread workload (Fig. 5 ⃝,
under a concurrent background workload also reflects the two effects above: shared-port queueing, which slows down the spread run, and limited port bandwidth, which slows down the packed run. We use vector search as the reference background workload because under it almost only D remains: it keeps the L2 slices busy, yet its X value (Xr ) satisfies Xr > L so limited port bandwidth causes no slowdown, and its I value (Ir ) is near 1 (Ir ≤ 1.03) so shared-port queueing is minimal. GPCPlace therefore multiplies tpacked /tspread by Ir to remove the small shared-port queueing in the spread run and obtain D: tpacked D = Ir · . tspread Because GPU workloads execute the same kernels across iterations, GPCPlace profiles only a few iterations of each workload. Finally, GPCPlace packs the latency-critical workload into dedicated GPCs if the shared-port queueing delay exceeds the total packing slowdown, I¯ ≥ T , and spreads it across GPCs otherwise 2 where (Fig. 5 ⃝), ( max 1, L/X̄ if X̄ < Xm , T = max 1, L/X̄ · D if X̄ ≥ Xm . The arbitration slowdown D occurs only when the background workloads keep the L2 slices busy. To identify whether the L2 slices are busy, GPCPlace uses two reference background workloads: vector search, which keeps the L2 slices busy, and LLM prefill, which does not. GPCPlace includes D in T only when X̄ ≥ Xm , where Xm is the average X value of these two reference workloads. After placing the latency-critical workload, GPCPlace assigns the remaining TPCs to the background workloads. C. Runtime Placement Although CUDA Green Contexts partition SMs across workloads, they allow specifying only the number of SMs and provide no interface to select which GPCs or TPCs are assigned (Section II-B). To implement the placement determined in Section III-B, GPCPlace leverages the Queue Metadata Descriptor (QMD) [5], [16] in the CUDA driver. When launching a kernel, the CUDA driver populates a QMD to describe the kernel’s execution configuration for the GPU hardware. This QMD contains a TPC mask with one bit per TPC,
5000 Ada
H20
5070
5090
1.02 1.01 0.98 1.00
L4
0.97 1.00
1.15 1.14
1.13 1.14
4090
1.03 1.03 0.95 1.00
4080
1.07 1.06
A40
0.99 0.99 0.94 1.00
A6000
1.00 0.99 1.00 1.00
3090
1.00 1.00
3060
1.11 1.09
1.12 1.12 1.04 1.03 1.00 1.00
A800
1.00 1.00
1.03 1.02 1.00 0.99
0.9
1.02 1.01 1.00 1.00
1.0
1.02 1.02 1.00 1.00
1.1
GPCPlace STP
1.01 1.00
Random latency
1.00 1.00
All Packed latency
1.01 1.00 1.00 1.00
vs. Green Contexts (×)
GPCPlace latency 1.2
PRO 6000
Spark
Fig. 6. Latency speedup of GPCPlace, All Packed, and Random over Green Contexts on each GPU, and GPCPlace’s STP. 1
TABLE I S PECIFICATIONS OF THE 14 EVALUATED NVIDIA GPU S , ORDERED BY SM S × CLOCK / MEMORY BANDWIDTH WITHIN EACH ARCHITECTURE . Arch.
A800 RTX 3060 RTX 3090 RTX A6000 A40
Ampere Ampere Ampere Ampere Ampere
7 3 7 7 7
7–8 4–5 5–6 6 6
108 28 82 84 84
1.41 1.78 1.70 1.80 1.74
2039 / HBM2e 360 / GDDR6 936 / GDDR6X 768 / GDDR6 696 / GDDR6
RTX 4080 RTX 4090 L4 RTX 5000 Ada
Ada Ada Ada Ada
7 11 5 10
4–6 5–6 5–6 5
76 128 58 100
2.51 2.52 2.04 2.55
717 / GDDR6X 1008 / GDDR6X 300 / GDDR6 576 / GDDR6
H20
Hopper
7
5–6
78
1.98 4000 / HBM3
5 11 12 4
4–5 7–8 7–8 6
48 170 188 48
2.51 2.41 2.43 2.42
RTX 5070 Blackwell RTX 5090 Blackwell RTX PRO 6000 Blackwell DGX Spark Blackwell
GPCs TPCs/GPC SMs
Clock Memory (GHz) (GB/s)
GPU
672 / GDDR7 1792 / GDDR7 1597 / GDDR7 273 / LPDDR5x
an AdamW optimizer step [19], [23], [29], a BERT-large encoder layer [13], [28], large-batch decoding [7], vector search [12], three cuBLAS/Triton GEMMs, vector addition, row-wise sum, matrix transpose, and GEMV. On each GPU, we allocate TPC counts equal to 1 and 3 GPCs to the latency-critical workload (with the background workload occupying the remaining TPCs), plus 4 cases with two concurrent background workloads at the 1-GPC count. Baselines and metrics. We compare GPCPlace with three baselines: (i) Green Contexts [15], which spread each workload across multiple GPCs; (ii) All Packed [2], which packs each workload into dedicated GPCs; and (iii) Random, which assigns TPCs to each workload randomly. To evaluate how effectively GPCPlace reduces the latency of latency-critical workloads without degrading total system throughput, we report two metrics: (1) the execution latency of the latency-critical P s a workload, and (2) the total system throughputs STP = i ri /ri [21] across all concurrent workloads, where ri and ria are the throughput of workload i when running concurrently and when running alone. All results are the median of five runs. B. Overall Performance
and the hardware dispatches the kernel’s thread blocks only to the TPCs enabled by this mask [1]. Following prior work [1], at runtime, GPCPlace registers a launch callback in the CUDA driver that hooks each kernel launch before its QMD is submitted and sets the QMD’s TPC mask to the TPCs assigned to the launching workload (Fig. 5 3 requiring no modifications to applications. ⃝), However, NVIDIA does not document the mapping from the bits in the TPC mask to the physical TPCs on the GPU, leaving it unknown which GPC each bit controls, and prior work [1] only partitions TPCs by count without identifying their GPCs. Therefore, on each target GPU, we test each bit in the TPC mask by disabling only that bit, launching a small kernel that reads the SM and GPC IDs from hardware special registers, and identifying which TPC and GPC the kernel no longer executes on. Repeating this across all bits yields the mapping from TPC mask bits to GPCs on each target GPU, which GPCPlace uses to implement the selected placement at runtime. IV. E VALUATION A. Experimental Setup Platforms. We evaluate GPCPlace across 14 NVIDIA GPUs spanning the Ampere, Ada, Hopper, and Blackwell architectures, covering consumer, workstation, and datacenter GPUs (Table I). Workloads. To cover common GPU sharing scenarios, we construct and evaluate 112 cases of concurrent latency-critical and background workloads on each GPU. We use 4 latency-critical workloads: LLM decoding (8 Llama-3-8B layers with Triton or cuBLAS GEMMs, and attention-only decoding with FlashAttention, all at batch size 16 and context length 2048) and an embedding lookup followed by a feed-forward network. We pair them with 12 background workloads from prior studies: LLM prefill [3], [4], [6],
Fig. 6 shows the latency speedup of GPCPlace over Green Contexts across all 112 cases on each GPU. Across the 14 GPUs, GPCPlace speeds up latency-critical workloads by up to 1.15× on average and up to 2.38× on individual cases over Green Contexts. Consistent with Section II-D, GPUs with a higher ratio of compute request rate (SMs × clock frequency) to memory bandwidth experience stronger shared-port queueing under Green Contexts and achieve larger average speedups under GPCPlace: 1.11×–1.15× across the four Ada GPUs, up to 1.07× on the Blackwell GPUs, and 1.02×–1.04× across the four GDDR Ampere GPUs, compared with 1.00×–1.01× on the high-bandwidth HBM GPUs (A800 and H20). Meanwhile, across all 14 GPUs, GPCPlace maintains a median STP of 1.00× over Green Contexts, confirming that reducing latency does not degrade total system throughput. Fig. 6 also compares GPCPlace with All Packed and Random. Because All Packed always packs every workload into dedicated GPCs, it suffers from limited port bandwidth and reduced L2 slice arbitration share when running concurrently with computebound or L2-saturating background workloads, slowing down the latency-critical workload to as low as 0.58× of Green Contexts on RTX 4090 and 0.66× on RTX 5000 Ada. By spreading the latencycritical workload when the packing slowdown exceeds the sharedport queueing delay (I¯ < T ), GPCPlace avoids these slowdowns and speeds up the workload by up to 1.68× over All Packed on RTX 4090, 1.52× on RTX 5000 Ada, 1.48× on A40, and 1.34× on RTX PRO 6000. Similarly, because Random assigns TPCs across GPCs randomly, it fails to isolate the latency-critical workload from shared-port queueing, allowing GPCPlace to speed up the workload over Random by up to 1.15× on average (1.11×–1.15× on the Ada GPUs and RTX 5090) and up to 2.32× on individual cases.
D. Overhead
Vector add AdamW step GEMV Triton GEMM (2048) Transpose Large-batch decode cuBLAS GEMM Prefill Encoder Row-wise sum Vector search Triton GEMM (4096) Two backgrounds
Average of 14 GPUs Fastest GPU 1.0
1.2
1.4
1.6
1.8
2.0
Latency speedup (×)
Fig. 7. Latency speedup of GPCPlace over Green Contexts for each background workload. 1
Fig. 7 shows the latency speedup of GPCPlace over Green Contexts for each background workload. When running concurrently with memory-intensive background workloads such as vector addition, the AdamW step, and GEMV, the latency-critical workload experiences severe shared-port queueing under Green Contexts, so GPCPlace avoids this queueing by packing the workload into dedicated GPCs, achieving average speedups of 1.09×–1.27× across the 14 GPUs and up to 1.42×–1.90× on the fastest GPU. Conversely, when running concurrently with compute-bound workloads (such as LLM prefill, the encoder layer, and large GEMMs) or L2-saturating vector search, where packing slows down the latency-critical workload due to limited port bandwidth and reduced L2 slice arbitration share, GPCPlace spreads the workload across GPCs and matches Green Contexts (1.00×). C. Ablation Study To evaluate the contribution of each component in GPCPlace’s placement policy (Section III-B), we compare full GPCPlace with three ablated variants of the packing slowdown T across the cases where each component changes the placement: (1) ignoring the slowdown from limited port bandwidth (max(1, L/X̄)); (2) ignoring the slowdown from reduced arbitration share at busy L2 slices (D); and (3) always applying D without checking whether the L2 slices are busy (X̄ ≥ Xm ). First, without max(1, L/X̄), GPCPlace underestimates the packing slowdown when running concurrently with compute-bound background workloads (such as LLM prefill and the encoder layer) and packs the latency-critical workload into dedicated GPCs even when fewer ports restrict its bandwidth (Fig. 3a), slowing it down to an average of 0.83× of Green Contexts on RTX 3090 and 0.90× on RTX 4090 and RTX 5090 where a single GPC limits port bandwidth, whereas full GPCPlace spreads the workload (0.99×–1.01×). Second, omitting D causes GPCPlace to pack the latency-critical workload when running concurrently with L2-saturating background workloads such as vector search, where fewer ports reduce the bandwidth it receives from busy L2 slices (Fig. 3b). On GPUs where vector search heavily saturates the L2 slices (such as A40, RTX 4090, and RTX 5000 Ada), this variant slows down the workload to 0.80×, 0.81×, and 0.89× of Green Contexts on average, compared with 0.99×–1.00× under full GPCPlace. Third, always applying D regardless of X̄ ≥ Xm overestimates the packing slowdown when L2 contention is low (X̄ < Xm ) and spreads the latency-critical workload across GPCs even when shared-port queueing is severe, leaving it at 0.99×–1.00× of Green Contexts on GPUs with a large D (such as RTX 4090 and RTX 5000 Ada) rather than achieving the 1.04× average speedup of full GPCPlace.
GPCPlace incurs negligible overhead both offline and at runtime. First, identifying the mapping from TPC mask bits to GPCs (Section III-C) is a one-time procedure per target GPU that completes within 3 s across all 14 GPUs. Second, when profiling workloads before deployment (Section III-B), measuring I and X takes about 2– 3 s per background workload, and measuring L and D takes less than 1.5 s per latency-critical workload. Because these profiled metrics are recorded once and reused across deployments, this one-time cost is negligible for long-running serving systems. Third, at runtime, setting the QMD’s TPC mask in the CUDA driver launch callback (Section III-C) adds less than 1 µs to the end-to-end kernel launch latency and requires no additional ioctl calls or GPU memory. V. R ELATED W ORK GPU sharing systems. Existing systems partition SMs across concurrent workloads to share a GPU, including LLM prefill and decoding [3], [4], [6], [10], [14], [17], multimodal stages [13], [28], multiple models [7], [18], [27], inference and fine-tuning [23], and real-time tasks [20], [24], [26]. To mitigate the remaining slowdown from shared L2 cache and memory contention [8], [22], existing systems adjust SM counts [4], [14], [17], [20], [23], [24], [27], [28], delay or slice co-running kernels [18], [19], [25], [29], or limit background memory accesses [24]. For example, MuxWise [4] sizes the prefill and decoding partitions with an offline-profiled contention margin, Mosaic [18] admits background kernels based on predicted interference, and Beaver [24] throttles the HBM accesses of corunning ML kernels. GPCPlace instead mitigates contention at shared GPC crossbar ports by deciding whether to spread or pack SMs across GPCs, and keeps each workload’s SM count unchanged so that it can be combined with these systems. SM partitioning mechanisms and placement. Existing SM partitioning mechanisms isolate TPCs without dynamically selecting between spreading and packing across GPCs: CUDA Green Contexts [15] accept only SM counts and spread each workload across GPCs by default, while libsmctrl [1], nvtaskset [2], and LithOS [5] expose per-TPC masks, and the first two recommend packing into dedicated GPCs to reduce intra-GPC interference or support thread block clusters. Zhao et al. [30] study assigning SMs across GPCs in a simulator, but always spread concurrent workloads across all GPCs to avoid limiting port bandwidth, overlooking that spreading causes latency-critical requests to queue behind background requests at shared ports. Fan et al. [9] select physical GPCs on large-die GPUs to handle unequal GPC sizes and NUMA locality rather than crossbar port contention. In contrast, GPCPlace profiles both slowdowns on the target GPU and dynamically selects between spreading and packing based on the concurrent workloads and the GPU. VI. C ONCLUSION In this paper, we showed that CUDA Green Contexts always spread workloads across multiple GPCs and cause latency-critical memory requests to queue behind background requests at shared crossbar ports, whereas packing a latency-critical workload into dedicated GPCs avoids this queueing but limits its memory bandwidth through fewer ports, making the faster placement depend on both the concurrent workloads and the GPU hardware. Based on these observations, we presented GPCPlace, a runtime system that profiles the workloads on the target GPU to estimate the shared-port queueing delay and the packing slowdown, dynamically selects between spreading and packing a latency-critical workload, and implements the placement at runtime by hooking kernel launches in the CUDA driver. Across
14 NVIDIA GPUs spanning four architectures on 112 concurrent workload cases, GPCPlace speeds up latency-critical workloads by up to 1.15× on average and up to 2.38× on individual cases over Green Contexts without degrading total system throughput. R EFERENCES [1] J. Bakita and J. H. Anderson, “Hardware compute partitioning on NVIDIA GPUs,” in IEEE Real-Time and Embedded Technology and Applications Symposium (RTAS), 2023. [2] J. Bakita and J. H. Anderson, “Hardware compute partitioning on NVIDIA GPUs for composable systems,” in Euromicro Conference on Real-Time Systems (ECRTS), 2025. [3] W. Chen and H. Zhang, “ConfluxServe: Reconciling resource utilization and parallelism efficiency across prefill and decode in LLM serving,” arXiv:2610.37810, 2026. [4] Y. Chen et al., “Towards high-goodput LLM serving with prefill-decode multiplexing (MuxWise),” in International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS), 2026. [5] P. H. Coppock et al., “LithOS: An operating system for efficient machine learning on GPUs,” in ACM Symposium on Operating Systems Principles (SOSP), 2025. [6] W. Cui, Y. Chen, X. Fan et al., “PD-Multiplexing: Unlocking highgoodput LLM serving with GreenContext,” LMSYS blog, https://lmsys. org/blog/2025-09-28-pdmux, 2025. [7] J. Duan et al., “MuxServe: Flexible spatial-temporal multiplexing for multiple LLM serving,” in International Conference on Machine Learning (ICML), 2024. [8] P. Elvinger, F. Strati, N. Enright Jerger, and A. Klimovic, “Understanding GPU resource interference one level deeper,” in ACM Symposium on Cloud Computing (SoCC), 2025. [9] X. Fan et al., “Dissecting how die scaling breaks GPU fine-grained scheduling,” arXiv:2609.24270, 2026. [10] L. Gao, C. Jiang, H. Entezari Zarch, D. Wong, M. Hill, and M. Annavaram, “DuetServe: Harmonizing prefill and decode for LLM serving via adaptive GPU multiplexing,” arXiv:2511.04791, 2025. [11] Z. Jin et al., “Uncovering real GPU NoC characteristics: Implications on interconnect architecture,” in IEEE/ACM International Symposium on Microarchitecture (MICRO), 2024. [12] J. Kim and D. Mahajan, “VectorLiteRAG: Latency-aware and finegrained resource partitioning for efficient RAG,” in International Symposium on High-Performance Computer Architecture (HPCA), 2026. [13] Z. Li et al., “SpaceServe: Spatial multiplexing of complementary encoders and decoders for multimodal LLMs,” in Advances in Neural Information Processing Systems (NeurIPS), 2025. [14] Z. Lin et al., “Bullet: Boosting GPU utilization for LLM serving via dynamic spatial-temporal orchestration,” in International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS), 2026. [15] NVIDIA, “CUDA driver API: Green contexts,” CUDA Toolkit documentation, 2025. [16] NVIDIA, “Open GPU documentation: Compute class and QMD headers,” https://github.com/NVIDIA/open-gpu-doc, 2025. [17] X. Shi, C. Cai et al., “Nexus: Proactive intra-GPU disaggregation of prefill and decode in LLM serving,” arXiv:2507.06608, 2025. [18] F. Strati et al., “Mosaic: GPU sharing with latency guarantees through kernel-level interference prediction,” arXiv:2610.07504, 2026. [19] F. Strati, X. Ma, and A. Klimovic, “Orion: Interference-aware, finegrained GPU sharing for ML applications,” in European Conference on Computer Systems (EuroSys), 2024. [20] S. Subramaniyan and X. Wang, “DySM: Dynamic scaling of GPU streaming multiprocessor in spatially shared real-time embedded GPU systems,” in Euromicro Conference on Real-Time Systems (ECRTS), 2026. [21] Z. Wang, J. Yang, R. Melhem, B. Childers, Y. Zhang, and M. Guo, “Simultaneous multikernel GPU: Multi-tasking throughput processors via fine-grained sharing,” in International Symposium on High-Performance Computer Architecture (HPCA), 2016. [22] X. Xiang, R. Joshi, Y. Liu, J. Yao et al., “ShadowServe: Interference-free KV cache fetching for distributed prefix caching,” arXiv:2509.16857, 2025.
[23] A. Xu, H. Zhao, W. Cui, Q. Chen et al., “Harli: SLO-aware co-location of LLM inference and PEFT-based finetuning on model-as-a-service platforms,” arXiv:2511.11729, 2025. [24] Y. Yao, Z. Qi, J. Zheng, C.-H. Tung et al., “Beaver: Elastic GPU sharing between ML and latency-critical vRAN workloads,” arXiv:2610.02522, 2026. [25] Y. Yu, F. Yu, Z. Tian, and X. Chen, “GACER: Granularity-aware concurrency regulation for multi-tenant deep learning,” in IEEE/ACM International Conference on Computer-Aided Design (ICCAD), 2024. [26] H.-E. Zahaf, I. Sañudo Olmedo, J. Singh, N. Capodieci, and S. Faucou, “Contention-aware GPU partitioning and task-to-partition allocation for real-time workloads,” in International Conference on Real-Time Networks and Systems (RTNS), 2021. [27] S. Zhang, Q. Chen et al., “Improving GPU sharing performance through adaptive bubbleless spatial-temporal sharing,” in European Conference on Computer Systems (EuroSys), 2025. [28] Y. Zhang and D. Yuan, “HorizonServe: Coordinating request scheduling with GPU sharing for omni-model serving,” arXiv:2608.01785, 2026. [29] W. Zhao et al., “Tally: Non-intrusive performance isolation for concurrent deep learning workloads,” in International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS), 2025. [30] X. Zhao, H. Wang, A. Huang, D. Wang, and G. Zhang, “Cluster-aware scheduling in multitasking GPUs,” Real-Time Systems, vol. 60, 2024.
Related documents
- A Runtime System for Mitigating Crossbar Port Contention on SM-Partitioned GPUs#1708894
- What Irregularity Costs: CUDA C++, Rust, and Triton on a Hash-Blocked GPU Workload#441766
- The Landscape of GPU-Centric Communication#160824
- Beaver: Elastic GPU Sharing between ML and Latency-Critical vRAN Workloads#1186836
- Beaver: Elastic GPU Sharing between ML and Latency-Critical vRAN Workloads#1181594
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive