One GPU, Two AI Services: What Changes in Performance and Fault Impact?
The HAMi community compares native multi-process execution, HAMi and NVIDIA MPS on an NVIDIA A100, examining inference throughput, fault isolation and the trade-off between shared-execution efficiency and fault impact.
On this page
As AI applications multiply, an enterprise GPU cluster rarely runs only one model.
A single GPU may serve a knowledge assistant, online customer support and model inference at the same time. Sharing a GPU among several AI services can reduce idle capacity and improve hardware utilization.
It also raises several questions:
- How much does sharing one GPU affect the speed of multiple AI services?
- How do different GPU-sharing approaches perform in practice?
- If one service fails, can the others continue running normally?
These questions cannot be answered by theory alone. They require testing.
The HAMi community recently evaluated GPU-sharing performance and fault isolation by running Qwen3-4B on NVIDIA A100 GPUs. The tests compare native execution, HAMi and sharing based on NVIDIA MPS.
The study focuses on two questions: What happens to AI-service performance after a GPU is shared? If one program experiences a severe fault, can another program on the same GPU keep running correctly?
Let us start with the test setup.
Concepts to Understand Before the Tests
Assume that one NVIDIA A100 GPU will host two AI services, service A and service B.
The performance tests compare four execution modes:
1. Native single instance: one service on one GPU
One inference instance handles all requests without an additional GPU-sharing management mechanism.
2. Native dual instance: two independent services on one GPU
Two inference instances run at the same time and each handles part of the request load, without HAMi or MPS.
Even without a dedicated sharing tool, an NVIDIA GPU can run multiple independent CUDA programs. Native dual-instance execution is therefore itself a form of sharing.
3. HAMi: two services managed through resource quotas
HAMi assigns each service a GPU resource quota, including GPU memory and compute capacity.
4. NVIDIA MPS: two services using the Multi-Process Service
NVIDIA MPS allows multiple CUDA processes to use a GPU through a shared service.
These four modes form the main comparison groups.
Why include both native single-instance and native dual-instance configurations?
We need to distinguish performance changes caused simply by running two independent services on one GPU from changes introduced by a GPU-sharing management mechanism.
For example, when a GPU processes eight concurrent requests, the single instance handles all eight, while each of the two instances handles four. HAMi and MPS-based sharing are compared with the native configuration that also runs two instances.
In the sections below, “HAMi 50%” means that each instance receives a 50% compute quota and a 50% GPU-memory limit.
The team also tested HAMi with unlimited compute: the GPU-memory quota remains in place, but compute limiting is disabled. This helps separate the overhead of the management mechanism itself from the effect of compute throttling.
Two Execution Modes: Graph and Eager
Two more concepts matter here: Graph and Eager. They are two ways an AI inference program can execute GPU work:
- Graph (CUDA Graph): A sequence of GPU operations is recorded in advance and replayed later, reducing the CPU overhead of submitting every operation separately.
- Eager: GPU operations are submitted step by step as the program executes.
Why distinguish between them?
They affect not only inference performance, but also the execution path used by the GPU-sharing mechanism.
In HAMi 2.10, the version used in these tests, compute limits are checked primarily during GPU-kernel launch. CUDA Graph can replay recorded operations without sending every kernel through the ordinary launch path again.
The compute-limiting path in Graph mode is therefore not identical to the path in Eager mode for this tested release.
The HAMi 50% result in Graph mode must not be interpreted as the performance of a system in which every GPU operation was strictly constrained to 50% compute.
Test 1: Performance with a Fixed Cache
The first experiment holds cache conditions constant to minimize the effect of cache differences.
During large-model inference, GPU memory stores previously computed intermediate results in what is commonly called the KV cache. The model can reuse these results while processing later requests.
Different cache sizes or reuse behavior can affect performance comparisons.
This test therefore fixes the KV cache at 6 GiB per instance, disables prefix-cache reuse, sets the maximum model length to 4,096 and sets the maximum number of sequences to 32.
The test uses an NVIDIA A100 GPU and Qwen3-4B. Each GPU processes eight requests at the same time, and every configuration is tested three times.
MPS uses the older MPS v2 implementation in this test.

Graph Mode: Higher Throughput with MPS
First, consider Graph mode, in which recorded compute operations are replayed to reduce launch overhead.
The test produced the following data:
| Configuration | Output tokens/s/GPU | TTFT p50 | TTFT p99 | TPOT p50 | TPOT p99 |
|---|---|---|---|---|---|
| Native single instance | 628.57 ± 0.30 | 335.46 | 678.19 | 11.42 | 12.02 |
| Native dual instance | 335.51 ± 0.02 | 563.53 | 738.61 | 21.71 | 22.4 |
| HAMi dual instance (50%) | 335.87 ± 0.06 | 558.37 | 729.45 | 21.71 | 22.39 |
| Legacy MPS dual instance | 449.36 ± 13.92 | 413.5 | 538.98 | 16.82 | 17.4 |
A token is a basic unit used by a model to process and generate text. In simple terms, generating more text per unit of time means higher overall throughput.
The native single instance has the highest throughput, while the native dual instance is markedly lower.
This is a useful reminder: even with the same total request count, splitting requests between two independent AI services can produce a very different result from handling them in one service.
Among configurations with the same number of instances, HAMi 50% is close to the native dual instance, while MPS v2 reaches higher throughput.
Eager Mode: The Gap Narrows
When the test switches to Eager mode and submits operations one by one, the results change:
| Configuration | Output tokens/s/GPU | TTFT p50 | TTFT p99 | TPOT p50 | TPOT p99 |
|---|---|---|---|---|---|
| Native single instance | 193.95 ± 1.17 | 331.43 | 722.7 | 40.03 | 40.82 |
| Native dual instance | 185.80 ± 0.73 | 440.87 | 659.38 | 41.52 | 42.73 |
| HAMi dual instance (50%) | 181.67 ± 1.32 | 426.37 | 671.97 | 42.54 | 43.68 |
| Legacy MPS dual instance | 188.51 ± 0.73 | 311.23 | 500.7 | 41.37 | 42.55 |
The differences among the dual-instance configurations are now much smaller. HAMi 50% delivers about 2.2% less throughput than the native dual instance.
This experiment shows that the performance of a GPU-sharing approach depends heavily on the execution mode. The throughput advantage that MPS displays in Graph mode narrows in Eager mode.
Test 2: A More Typical AI-Service Environment
The first experiment fixes cache conditions. In a real AI service, however, KV cache is typically allocated dynamically and may reuse results computed earlier.
The team therefore ran another performance test using settings closer to a default deployment.
The test runs vLLM through NVIDIA Dynamo with the default cache settings and varies the number of concurrent requests.
Total concurrency per GPU is set to 2, 4, 8, 16 and 32.
Here, concurrency simply means the number of requests being processed by the AI service at the same time.
The configurations are native single instance, native dual instance, HAMi 50%, HAMi with unlimited compute and GPU Fractioning based on MPS v3.

The test again covers both Graph and Eager execution.
Graph Mode: A More Pronounced MPS Throughput Advantage
Across the five concurrency levels, MPS v3 GPU Fractioning delivers approximately 25.14% to 37.60% more throughput than the native dual instance.
HAMi 50% remains close to the native dual instance, with throughput differences between −0.66% and +2.19%.
Across both performance experiments, MPS shows a clear throughput advantage in Graph scenarios.
Graph already reduces the overhead of having the CPU submit compute operations individually. In this test, the shared-execution mechanism used by MPS provides an additional performance advantage.
Eager Mode: Performance Differences Shrink
The picture changes substantially in Eager mode.
GPU Fractioning is between −2.91% and +0.92% relative to the native dual instance, which places the two configurations in a similar range.
HAMi 50% delivers approximately 4.46% to 7.94% less throughput.
HAMi with unlimited compute is approximately 3.80% to 7.42% below the native dual instance.
Under this execution mode, HAMi's GPU compute-management mechanism and related execution path therefore introduce measurable performance overhead.
Why the Native Single Instance Performs So Well in Some Tests
In the second experiment, the native single instance is visibly faster than the dual-instance configurations in Graph mode.
One reason is that separate instances cannot directly reuse cache in the same way that a single instance can.
At low concurrency in this test, the native single instance reused a large amount of previously computed work. None of the dual-instance configurations showed the same prefix-cache reuse.
The same total request volume can therefore produce different cache behavior depending on whether it is handled by one service or split between two independent services.
This is why the native single instance must be separated from the native dual instance. The gap between them cannot simply be treated as overhead from HAMi or MPS.
Together, the two performance tests show that MPS-based sharing can deliver higher throughput in some Graph scenarios, HAMi incurs some overhead in Eager mode, and both execution mode and cache behavior can materially change the result.
Performance, however, is not the only dimension of a GPU-sharing technology.
If one program sharing the GPU encounters a severe error, can another program keep running?
Test 3: Fault Isolation
Suppose one GPU hosts two AI services: an internal knowledge assistant and an online customer-support service.
If the knowledge assistant triggers a severe GPU error, can customer support keep working?
For an enterprise, that question may matter more than a few percentage points of performance.
To test it, the team runs two programs on the same GPU. One injects a fault; the other continuously performs healthy computation and verifies that its output remains correct.
A healthy control program also runs on another GPU to determine whether a fault propagates beyond the affected GPU.
This experiment uses HAMi with unlimited compute and a 20 GiB GPU-memory quota per instance. MPS v3 is tested in both shared and static-partition configurations; the shared configuration enables memacct and context-share.
Static partitioning assigns a portion of the GPU's compute units to different programs in advance. Partitioning compute resources does not necessarily isolate every low-level fault.
The team simulates four conditions and repeats every fault twice:
- Excessive GPU-memory allocation: One program attempts to allocate more GPU memory than its visible capacity.
- Illegal GPU-memory write: A program writes to a GPU-memory location that it is not permitted to access.
- GPU trap: A program triggers a GPU execution exception.
- SIGKILL during computation: A program is forcibly terminated while executing GPU work.
Fault-Test Results
| Fault type | Native multi-process | HAMi | MPS v3 shared | MPS v3 static partition |
|---|---|---|---|---|
| Excessive GPU-memory allocation | 2/2 | 2/2 | 2/2 | 2/2 |
| Illegal GPU-memory write | 2/2 | 2/2 | 0/2 | 0/2 |
| GPU trap | 2/2 | 2/2 | 0/2 | 0/2 |
| Forced process termination | 2/2 | 2/2 | 0/2 | 0/2 |
Note: 2/2 means that the healthy program on the same GPU produced correct output in both runs. 0/2 means that it was affected in both runs.
The results have two parts.
When a program merely requests more GPU memory than allowed, every configuration handles the condition successfully and the other program on the same GPU remains unaffected.
The other three severe faults produce a clear difference:
- Native multi-process: the other healthy program on the same GPU continues producing correct output in all six runs.
- HAMi: the other healthy program on the same GPU continues producing correct output in all six runs.
- MPS v3 shared mode: the other program on the same GPU is affected in all six runs.
- MPS v3 static partition: the other program on the same GPU is also affected in all six runs.
In other words, HAMi scores 6/6 across these three severe fault types, while the tested MPS v3 configurations score 0/6.
The native multi-process configuration also passes all six tests. The healthy control on another GPU remains normal in all 36 relevant observations.
MPS v3 also passes the corresponding test when a client is ended through a safe termination path.
These results must not be read as “any program exit under MPS affects other programs,” nor as evidence that MPS lacks isolation under every fault condition.
The experiment shows that, under the specified severe GPU faults, different sharing mechanisms can have different fault-impact scopes.
When several business services share GPUs, an enterprise should consider not only resource allocation and performance, but also whether other services can continue when one service fails.
Balancing Performance and Fault Isolation
Return to the knowledge assistant and the customer-support service.
Once they share a GPU, two questions need separate answers: How much content can the two services generate per second in total, and can one keep working if the other fails?
The A100 tests record both throughput and the behavior of a healthy program on the same GPU under specified faults.
In the performance tests, MPS delivers a notable throughput advantage in Graph scenarios. This relates to its shared-execution mechanism and illustrates how GPU-sharing technologies differ in performance optimization.
In the fault tests, the tested MPS v3 configurations allow several severe GPU faults to affect another program on the same GPU, while healthy programs under the native multi-process and HAMi configurations keep producing correct output.
This reflects a trade-off that must be considered between shared-execution efficiency and fault-impact scope.
Workloads that prioritize inference throughput and can accept the corresponding fault-impact scope may focus on evaluating MPS sharing. Workloads that need resource quotas and place more weight on independent same-GPU execution under the specified faults may evaluate HAMi-Core mode.
The two do not have to be mutually exclusive.
The HAMi community plans to integrate MPS v3 in version 2.12, offering users more sharing mechanisms and exploring simpler configuration and management.
HAMi users may then be able to choose more flexibly between shared-execution efficiency and fault-impact scope according to each workload.
The experiment covers only specific hardware, models, software versions and fault conditions. It does not show that MPS has the same performance advantage in every scenario, nor does it prove that HAMi can isolate every GPU fault.
The final choice of GPU-sharing approach must be based on the real workload and should consider throughput, latency, resource-management requirements and an acceptable fault-impact scope together.
This article is based on the HAMi community's public performance and fault-isolation report. The full test documentation, configuration, reproduction scripts and raw data are available for independent verification.
Further reading:
If you use HAMi or NVIDIA MPS, or are building a multi-tenant AI platform, you are welcome to reproduce the tests and share results from other GPUs, models and workloads.
We also welcome discussion:
When multiple AI services run on one GPU, do you care more about compute performance or about keeping the other services running when one fails?
Join the HAMi community and help explore more possibilities for GPU sharing.
Note: This article was prepared by the HAMi community from a public performance and fault-isolation report. The results apply to the tested hardware, software versions and experimental configuration and are not a universal conclusion about every GPU-sharing approach.
