Back to blog

SKNK Technical Guide

How to Test GPU Isolation for Shared Inference

Compare GPU passthrough, MIG and vGPU, then test whether shared inference meets latency and reliability targets under concurrent load.

In a USENIX ATC 2025 experiment, researchers ran Llama 3.1 8B serving and fine-tuning on the same RTX 3090. Compared with inference alone, the researchers reported up to 13.2× the p99 time to first token and up to 3.6× the p99 time per output token. How much traffic can an inference service handle once a second job starts on the same GPU? He et al., USENIX ATC 2025, Figure 1 and §1

Set the service limits before testing

Start with the traffic you expect the service to handle. Two runs at the same average request rate can expose different bottlenecks if one has longer prompts or sharper bursts. Use a representative mix of input and output lengths, and preserve arrival timing when bursts matter. DistServe, USENIX OSDI 2024, §§2 and 4 · NVIDIA AIPerf Benchmarking Guide

  • Latency. Set the limits for response startup and streaming, and the fraction of requests that must meet both. Report time to first token (TTFT) and per-request time per output token (TPOT) with the client’s metric definitions. If reasoning streams separately, specify whether startup latency ends at the first streamed token or the first non-reasoning output token. DistServe, evaluation methodology · AIPerf Metrics · vLLM Benchmark CLI
  • Successful capacity. Record completed requests per second and failures. With per-request thresholds, report goodput, the number of requests per second meeting all thresholds, and the fraction of attempted requests that met them. Include failures in that fraction. Track undispatched requests separately. AIPerf Metrics, Goodput and Good Request Fraction
  • Repeatability. Before testing, set the load levels, measurement window, acceptable deviation from the planned send counts and timing, and how many repeats must pass. Keep the results of each run so variation remains visible. AIPerf Multi-Run Statistics

Choose where workloads share resources

White-Face Xiaolu lowers a divider into a shared tray with two compartments.

A partition assigns resources within the same physical GPU.

If you need… Configuration to evaluate
One physical GPU for one VM Whole-GPU passthrough gives one VM exclusive device access. Collect GPU performance telemetry inside the guest. NVIDIA GPU Pass-Through Guide
Separate GPU memory resources on one device Separate MIG GPU Instances have assigned compute and memory resources. Compute Instances inside one GPU Instance still share the parent’s memory and engines. Check the GPU Instance profile and supported placement. NVIDIA MIG Concepts
Several VMs on one GPU NVIDIA vGPU for Compute supports time-sliced and MIG-backed modes on specified platforms. A vGPU occupying an entire MIG GPU Instance gets exclusive access to that instance’s engines. Where time-sliced MIG-backed vGPU is supported, vGPUs in the same instance take turns using its engines. NVIDIA Inference Mode Guide · vGPU Architecture
Oversubscribed GPU access for Kubernetes pods GPU Operator time-slicing exposes replicas of a GPU resource. The replicas lack memory and fault isolation from one another. Requesting more replicas gives no guarantee of a proportional compute share. NVIDIA GPU Operator Time-Slicing Guide

Check the GPU, profile, hypervisor, and host and guest software against the support documentation for your target release. For vGPU for Compute, verify the licence inside the guest before testing. Performance can degrade when licensing remains unavailable beyond the applicable grace period. NVIDIA AI Enterprise Support Matrix · vGPU for Compute Licensing

For independent tenants, review platform access, networking, and storage separately. On Kubernetes, role-based access control and network policies address different boundaries from GPU partitioning. The tenancy model may also call for dedicated nodes or clusters. Kubernetes Multi-tenancy

Change the allocation, then add the neighbouring workload

White-Face Xiaolu feeds a card into a machine while a parcel moves along a neighbouring conveyor.

Run the protected workload alone, then repeat it while the neighbouring job is active.

Use these three conditions for each planned load level. SKNK’s test design draws on published co-location measurements and NVIDIA’s guidance for repeatable load sweeps. He et al., Figure 1 · AIPerf Parameter Sweeps and Multi-Run Statistics

Condition Inference allocation Neighbouring workload
A. Dedicated reference Dedicated GPU Inactive
B. Candidate alone Proposed shared allocation Inactive
C. Candidate under contention Same as B Active during measurement

Compare A with B to see what changes when inference moves to the proposed allocation. Compare B with C to see what else changes when the workloads run together. Keep the model, serving settings, traffic, warmup, and prefix-cache policy comparable. Record what the neighbouring job actually did during condition C, such as its request rate if it is another inference service. Record any necessary differences. If latency rises, use device or MIG telemetry to help locate the bottleneck. AIPerf Benchmarking Guide · vLLM Benchmark CLI, prefix-cache caveats · NVIDIA DCGM Profiling

Check what the load generator actually sent

White-Face Xiaolu uses a hand counter to tally tiles that pass through a gate.

Count requests that were sent and compare their timing with the plan.

A slow run can keep enough requests in flight to hit the load generator’s concurrency ceiling. In AIPerf, that ceiling can delay scheduled requests even during fixed-schedule replay. Two runs may end with the same request count after sending those requests at different times. AIPerf Load Generator Options

In AIPerf v0.14.0, use the profiling records in profile_export.jsonl. For an absolute timing check, record the planned replay start separately. Convert the client start timestamps (metadata.request_start_ns) to elapsed time from the replay start, then compare them with the trace on that same time axis. Count planned and actual sends in the same intervals so a delayed burst shows up even if the final totals match. AIPerf’s built-in replay lag can show relative drift, but it cannot show a delay common to the entire run. If any condition misses the agreed send-count or timing tolerance, mark that comparison inconclusive. AIPerf Profile Export Files · Replay Schedule Lag Metrics

Keep the replay window and the throughput denominator in separate fields. AIPerf’s built-in rates use the elapsed time from the first send to the last response, which may extend beyond the planned traffic window. AIPerf Benchmark Duration

Check what a GPU reset would interrupt

NVIDIA introduced memory error containment with Ampere data-centre GPUs. For contained uncorrectable ECC errors, unaffected applications can continue. An uncontained error can affect workloads across the device. On an A100 with MIG enabled, NVIDIA’s triage guide calls for draining work from other GPU Instances before resetting the GPU after an uncontained ECC error. Record which workloads have to drain, move, or restart for the recovery actions applicable to your platform. NVIDIA GPU Memory Error Containment · NVIDIA GPU Node Triage, Xid 95

Record the highest load that passed

Report the highest tested request rate at which the shared configuration delivered the planned traffic within tolerance and met the service limits with both workloads running. Copy this table for each condition and load level. Fill in the acceptance criteria before adding measured values. DistServe, evaluation methodology · AIPerf Load Generator Options

Field Record
Condition and environment A / B / C · GPU and profile · model, driver, and serving versions · hypervisor and licence if applicable
Workloads and measurement Trace or request mix · neighbouring job, measured activity, and overlap window · duration · warmup/cache policy · repeat and evaluation rule
Load delivery Replay time origin ___ · time bucket and tolerance ___ · planned count/rate ___ · dispatched count/rate ___ · undispatched ___
Request outcomes Completed ___ · timeouts ___ · other failures ___ · permitted failures ___
Latency Startup metric and limit ___ · TPOT limit ___ · percentiles and observed values ___
Throughput and SLO attainment Rate denominator ___ · completed requests/s ___ · goodput ___ · required and measured fraction meeting all thresholds ___
Recovery and decision Workloads affected ___ · applicable action ___ · evidence links ___ · pass / fail / inconclusive ___

Discuss a GPU sharing design with SKNK

SKNK assesses GPU allocation and isolation for enterprise infrastructure. A business enquiry can start with the workloads, platform, locations, and service objectives. SKNK GPU Consulting · Submit a Business Enquiry

Your organisation’s registration and primary operations, and every project and infrastructure location, must be within the service countries. SKNK reviews enquiries individually and assesses remote access separately. The review also covers intended use, software licensing, and access authorisations. Submission does not guarantee acceptance or an immediate start. Scope, fees, timing, and responsibilities are agreed in writing. SKNK is an independent provider with no NVIDIA affiliation, sponsorship, or endorsement. Engagement Process and Service Availability