---
title: "How DRA can improve the performance of distributed LLM inference workloads with RDMA and SR-IOV"
description: "Distributed LLM inference puts network performance on the critical path, because prefill/decode disaggregation streams KV-cache state and multi-node MoE expert parallelism requires repeated all-to-all transfers. Traditional Kubernetes device plugins allocate GPUs and SR-IOV VFs as opaque integer counts without PCIe topology awareness, so pods can receive valid-on-paper but misaligned GPU-NIC pairs. Dynamic resource allocation (DRA) fixes this by publishing devices with structured attributes and using matchAttribute on resource.kubernetes.io/pcieRoot to require the GPU and VF share the same PCIe root. On an A100 platform with 200 Gbit/s InfiniBand, aligned placement reached 194.6 Gbit/s versus 127.1 Gbit/s for same-NUMA misalignment and 110.0 Gbit/s cross-NUMA. In a Qwen3.8-27B prefill/decode test with llm-d, aligned placement delivered 2.15x KV-transfer throughput and cut mean latency by 53.6% compared with cross-NUMA placement."
---

# How DRA can improve the performance of distributed LLM inference workloads with RDMA and SR-IOV

[Red Hat](https://yomu.fyi/company/red-hat) · David Whyte-Gray, William Zhao, Raj Joshi, Sebastian Scheinkman · Oct 28, 2026

**Type:** Benchmark

## Summary

Distributed LLM inference puts network performance on the critical path, because prefill/decode disaggregation streams KV-cache state and multi-node MoE expert parallelism requires repeated all-to-all transfers. Traditional Kubernetes device plugins allocate GPUs and SR-IOV VFs as opaque integer counts without PCIe topology awareness, so pods can receive valid-on-paper but misaligned GPU-NIC pairs. Dynamic resource allocation (DRA) fixes this by publishing devices with structured attributes and using matchAttribute on resource.kubernetes.io/pcieRoot to require the GPU and VF share the same PCIe root. On an A100 platform with 200 Gbit/s InfiniBand, aligned placement reached 194.6 Gbit/s versus 127.1 Gbit/s for same-NUMA misalignment and 110.0 Gbit/s cross-NUMA. In a Qwen3.8-27B prefill/decode test with llm-d, aligned placement delivered 2.15x KV-transfer throughput and cut mean latency by 53.6% compared with cross-NUMA placement.

## Context

Distributed LLM inference is becoming network-bound: prefill/decode disaggregation streams KV-cache state between workers, and multi-node MoE serving of models over 500B parameters relies on repeated all-to-all dispatch and combine cycles. GPUDirect RDMA makes these architectures viable, but dense servers place GPUs and NICs across different PCIe switches, root complexes, and NUMA sockets, so GPU-NIC pairing determines achievable bandwidth. Traditional Kubernetes device plugins treat GPUs and SR-IOV VFs as opaque integer counts, cannot coordinate across plugins, and lack PCIe topology awareness, producing valid-on-paper allocations that silently route RDMA traffic through slow paths.

## Approach / What changed

Use Kubernetes dynamic resource allocation (DRA) instead of legacy device plugins. The NVIDIA GPU DRA driver and dra-driver-sriov publish GPUs and SR-IOV VFs as ResourceSlice devices carrying attributes including resource.kubernetes.io/pcieRoot. A ResourceClaimTemplate requests one VF (sriovnetwork.k8snetworkplumbingwg.io) and one GPU (gpu.nvidia.com) and adds a matchAttribute constraint on resource.kubernetes.io/pcieRoot, so the scheduler only commits an allocation when both devices share the same PCIe root; otherwise the claim stays pending. VFs are used rather than PF passthrough to keep the PF on the host for telemetry and control. Supporting CRs include SriovNetworkNodePolicy, DeviceAttributes, SriovResourcePolicy, and DeviceClass.

## Takeaways

- Aligned GPU-NIC placement on the tested A100 platform reached 194.6 Gbit/s over 200 Gbit/s InfiniBand, versus 127.1 Gbit/s for same-NUMA misalignment and 110.0 Gbit/s cross-NUMA.
- In a Qwen3.8-27B prefill/decode test with llm-d, aligned placement achieved 20,709.6 MB/s effective KV-transfer throughput and 56.78 ms mean latency, versus 9,612.6 MB/s and 122.32 ms cross-NUMA.
- DRA’s matchAttribute constraint on resource.kubernetes.io/pcieRoot lets a single ResourceClaim require the GPU and SR-IOV VF to share a PCIe root; without a matching pair the claim stays pending instead of falling back to a misaligned device.

## FAQ

### Why use SR-IOV VFs instead of physical function passthrough?

PF passthrough removes the adapter from the host network namespace, breaking host-level telemetry such as NVIDIA DOCA Telemetry Service. Assigning a dedicated VF keeps the PF on the host for telemetry, hardware isolation, and administrative control while giving the pod full GPUDirect RDMA performance.

### What happens if no node has a GPU and VF with the same PCIe root?

The claim stays pending rather than silently falling back to a mismatched VF on the wrong PCIe complex, so a pod never runs with a poor-performance GPU-NIC pairing.

### What were the benchmark conditions for the KV-cache transfer test?

A disaggregated prefill/decode setup for Qwen3.8-27B used one prefill pod and one decode pod on separate A100 nodes connected by InfiniBand, with concurrency 10, 16,000 input tokens, 64 output tokens, and 3 repetitions of 128 requests.

**Tags:** [Dynamic Resource Allocation](https://yomu.fyi/topic/dynamic-resource-allocation), [Kubernetes](https://yomu.fyi/topic/kubernetes), [LLMs](https://yomu.fyi/topic/llm), [RDMA](https://yomu.fyi/topic/rdma), [SR-IOV](https://yomu.fyi/topic/sriov)

- Source: [Red Hat](https://developers.redhat.com/articles/2026/10/28/how-dra-can-improve-performance-of-distributed-llm-inference-workloads-with-rdma-and-sr-iov)
- Source URL: https://developers.redhat.com/articles/2026/10/28/how-dra-can-improve-performance-of-distributed-llm-inference-workloads-with-rdma-and-sr-iov
- Ingested by Yomu: 2026-10-28T15:00:14.670Z

[Read original post](https://developers.redhat.com/articles/2026/10/28/how-dra-can-improve-performance-of-distributed-llm-inference-workloads-with-rdma-and-sr-iov)
