Zero Labs
Industry News / AI

PCIe in AI Inference: Where It Shines and Where It Lags

Source · Towards AI By Srinivas kodali

From the publisher’s feed, collected in the ZeroLabs newsroom.

Nov 7, 2026 · @Srinivas KodaliMost talk about AI inference hardware is about two things: HBM, the fast memory on the GPU, and NVLink, the fast link between GPUs. That makes sense. How fast a model produces each token depends mostly on those two.PCIe gets much less attention, and it is often misjudged. Some people think PCIe servers can’t do serious inference. Others ignore PCIe until a model takes a minute to load, or a long chat suddenly slows down.From the systems side of AI infrastructure, where GPUs connect to the rest of the server, PCIe looks different. The details that matter are how many PCIe lanes each device gets, the switches and signal boosters (retimers) in between, where the network cards and drives sit, and whether each link really runs at full speed. How a server is wired matters as much as which PCIe generation it uses. So the honest answer to “does PCIe slow inference down?” is: it depends.This article follows the inference data path one link at a time. It uses only public specs, datasheets, model configs and published benchmarks. Where a number is calculated, the inputs are shown, so anyone can check it.The short answer: PCIe works well when each GPU can do its job on its own. It struggles when GPUs must talk to each other for every token they produce, or when data has to come from outside GPU memory for every token.Where PCIe sitsIn a typical 8-GPU server, the GPUs talk to each other over NVLink. Almost everything else goes over PCIe. NVIDIA describes the usual PCIe server as two CPUs plus two to four PCIe switches. The switches connect the GPUs to each other and to the network cards.A good public example is the NVIDIA DGX H100. It has eight H100 GPUs, two PCIe Gen5 Xeon CPUs, 2 TB of system memory, ten ConnectX-7 network cards and eight NVMe drives.During inference, PCIe carries four kinds of traffic:model weights coming in from storageKV cache moving between the GPU and system memorynetwork traffic through the network cardssmall control messages between the CPU and the GPUsOn GPUs without NVLink, PCIe also carries all the GPU-to-GPU traffic.The numbers that matterA PCIe Gen5 x16 link moves about 64 GB/s in each direction, before overhead. An H100 GPU reads its own HBM at 3.35 TB/s, about 50 times faster.Two things often confuse people when reading spec sheets.First, GPU datasheets usually add both directions together. NVIDIA lists the H100’s PCIe link as 128 GB/s. But copying data from system memory into the GPU only uses one direction, so it gets half of that.Second, these are raw numbers. Real copies are slower, because every packet carries extra header data. The real speed is best measured with NVIDIA’s free nvbandwidth tool, not taken from the datasheet.One more thing from the chart: a Gen5 x16 slot has only about 28% more bandwidth than a 400 Gb/s network card needs. This matters later.While writing tokens, PCIe is mostly idleTake one example: Llama 3.1 70B in BF16 (2 bytes per number), running on eight H100 GPUs with tensor parallelism.The model’s weights are about 141 GB: 70.6 billion parameters at 2 bytes each. Split across eight GPUs, each GPU holds about 17.6 GB. To write each new token, every GPU has to read all 17.6 GB from its HBM. At 3.35 TB/s, that alone takes about 5.3 ms.During that time, very little crosses PCIe. A token ID goes in, and the chosen token comes back. Even copying the model’s full list of token scores (the logits) to the CPU is only about 0.5 MB (128,256 × 4 bytes). That takes about 8 microseconds on a Gen5 link, under 0.2% of the step.Reading the prompt (prefill) needs a lot of compute, but its input is small too. A 128K-token prompt is only about 0.5 MB of token IDs.So once the model is loaded and its KV cache fits in GPU memory, PCIe sits almost idle. The interesting part is what happens around that.Where PCIe shinesWhen each GPU runs its own copy of the modelThe clearest public evidence comes from MLPerf, the industry’s standard AI benchmark. In the v5.1 round, on Llama 2 70B:8-GPU HGX H200 systems, with NVLink, produced about 4,290 to 4,410 tokens per second per GPU in the offline test.A 4-GPU server with H200 NVL cards, the PCIe version of the same chip, produced about 3,760.That’s 85 to 88% of the NVLink systems. In the server test, which adds response-time limits, it reached 80 to 83%.The gap is small because NVLink is barely used here. H200 has enough memory that NVIDIA’s own submission doesn’t split the model across GPUs for this benchmark. Each GPU works alone, so there’s little GPU-to-GPU traffic. The rest of the gap lines up with power: the PCIe card is limited to 600 W instead of 700 W, and its FP8 compute rating is about 84% of the SXM version’s.Loading the modelLoading the weights is the biggest single transfer an inference server makes. But storage is usually slower than PCIe, so storage sets the speed.These are best-case numbers. In practice, reading files, unpacking the weights and setting up memory often take longer than the copy itself. Copying through system memory first adds more time, and GPUDirect Storage avoids that extra step. PCIe only becomes the limit when the weights are already in system memory. That’s common when servers scale up and down, or switch between models.Bringing KV cache backThis is where PCIe is most useful. The size of the KV cache is easy to work out from a model’s config:2 (keys and values) × layers × KV heads × head size × bytes per valueFor Llama 3.1 70B (80 layers, 8 KV heads, head size 128, BF16), that’s 320 KiB per token. A 128K-token conversation needs about 40 GiB, roughly half of an 80 GB H100, for just one user.When that user comes back, the server has two choices: compute the cache again from the prompt, or load the saved copy from system memory. On eight H100s, recomputing 128K tokens takes about 4 × 1⁰¹⁶ operations, roughly half for the weights and half for attention. That’s about 5 seconds even at full speed, and closer to 10 seconds at a more typical 50% utilization. Loading the saved copy, 5 GiB per GPU over a Gen5 link, takes about a tenth of a second.There’s a simple test that works for any model and GPU. Compare two numbers:the work to recompute one token (about 2 × parameters), divided by the bytes of KV cache for that tokenthe GPU’s compute speed, divided by the link speedIf the first number is bigger, loading the saved copy wins. For the 70B model, the first number is about 430,000 operations per byte. On a Gen5 link, the second is about 15,000 for an H100 in BF16 and about 35,000 for a B200. So reloading wins by 12 to 28 times. And that’s before counting attention, whose cost grows with the square of the prompt length.Open-source inference engines already work this way. vLLM’s OffloadingConnector keeps finished KV blocks in pinned system memory. SGLang’s HiCache uses GPU memory, system memory and storage as three cache levels.Where PCIe lagsTensor parallelism without NVLinkWith tensor parallelism, every layer of the model is split across the GPUs. Each GPU computes part of the result, and then the GPUs add their parts together in an operation called an all-reduce. The standard design, from NVIDIA’s Megatron-LM, needs two all-reduces per layer when generating: one after the attention block and one after the MLP block.Llama 3.1 70B has 80 layers, so every token needs 80 × 2 = 160 all-reduces. Each layer has to wait for its own all-reduce to finish before the next layer can start.How much data does each all-reduce carry? One token’s activations are a vector of 8,192 numbers, the model’s hidden size. In BF16, that’s 8,192 × 2 bytes = 16 KiB. With one request at a time, each all-reduce moves only 16 KiB. That’s tiny, so the fixed delay of each trip matters more than bandwidth.With more requests at once, the data grows. At a batch of 64 requests:- each all-reduce carries 64 × 16 KiB = 1 MiB- 160 all-reduces carry 160 MiB, about 168 MB per step- on 8 GPUs, the common ring all-reduce makes each GPU send 2 × (8 − 1) / 8 = 1.75 times that amount, so about 290 MB per GPU per stepMoving 290 MB takes:- about 0.65 ms over NVLink, at 450 GB/s per direction (half of the H100’s 900 GB/s total)- about 4.6 ms over a PCIe Gen5 x16 link, at 64 GB/sEach step already needs about 5.3 ms just to read the weights from HBM. So over PCIe, communication takes almost as long as the work itself. And 4.6 ms is a best case: it assumes the full 64 GB/s and no overlap with compute. Real copies run closer to 50 GB/s, each of the 160 all-reduces adds its own small delay, and NVIDIA notes that GPU-to-GPU traffic crossing between CPU sockets in a regular PCIe server can drop to 25 GB/s or less.That’s why vLLM’s documentation recommends pipeline parallelism instead of tensor parallelism when GPUs don’t have NVLink. Where tensor parallelism on PCIe can’t be avoided, keep the group small and under one switch.Reading from outside GPU memory for every tokenOffloading works because the data comes back once and is then used from HBM. Keeping the weights, or the active KV cache, in system memory or CXL memory and reading them over PCIe for every token does not work. A Gen5 x16 link is about 50 times slower than HBM, so anything kept on the far side slows down by roughly that much.Network cards are outgrowing Gen5Gen5 servers are usually built with 400 Gb/s network cards, and for good reason. A 400 Gb/s card moves 50 GB/s in each direction, and a Gen5 x16 slot carries about 64 GB/s, so the card fits with about 28% to spare. The DGX H100, for example, uses ConnectX-7 cards at 400 Gb/s.The next step, 800 Gb/s, moves 100 GB/s in each direction. That’s more than a Gen5 x16 slot can carry. A card that fast needs a Gen6 x16 link, or two Gen5 x16 links. That’s why NVIDIA’s ConnectX-8 moved to PCIe Gen6, with up to 48 lanes and a PCIe switch built in.So 800 Gb/s cards are paired with Gen6 GPUs. Blackwell Ultra is the first data center GPU with a PCIe Gen6 x16 link, which carries about 128 GB/s each way, enough for 800 Gb/s. ConnectX-8 has a PCIe switch built in: in NVIDIA’s GB300 systems, it connects to the GPU over Gen6 x16 and to the CPU over Gen5 x16. Network traffic goes straight from the GPU through the ConnectX-8 and never touches the CPU’s Gen5 link. Traffic to system memory, such as KV cache offload, still crosses Gen5. With Gen5 GPUs, an 800 Gb/s card is shared by two GPUs instead, giving each one 400 Gb/s, which fits its Gen5 link.Shared uplinks, when traffic goes to system memoryMost PCIe traffic in an inference server never reaches the CPU. GPU-to-network traffic with GPUDirect RDMA, GPU-to-GPU copies under the same switch, and GPUDirect Storage reads from drives under the same switch all stay inside the switch. During steady token generation, the link from the switch up to the CPU is close to idle.The uplink matters only for traffic to or from system memory: KV cache offload and reload, model loading from weights cached in system memory, and network traffic that falls back to system memory when GPUDirect RDMA is turned off, as in some virtual machines. Where two GPUs share one x16 uplink and both reload KV cache at the same time, each gets about half the link. Reloading 5 GiB per GPU then takes about 0.17 s instead of 0.08 s. That’s slower, but still far faster than the 5 to 10 seconds needed to recompute it. So shared uplinks are worth checking when offload is heavy, but they don’t change the bigger picture.What Gen6 and Gen7 changePCIe has roughly doubled its speed every three years. Gen6 (64 GT/s) was released in 2022, Gen7 (128 GT/s) in 2025, and Gen8 (256 GT/s) is planned for 2028.To get there, Gen6 switched to PAM4 signaling, which needs error correction. Networking links that use PAM4 accept about 100 ns of delay for this. PCI-SIG instead aimed for under 10 ns of extra delay, error correction included. So each generation doubles the bandwidth while the delay stays about the same.For inference, that means big transfers, like model loading and KV cache reloads, get faster. Gen6 slots also let 800 Gb/s network cards run at full speed. But it doesn’t make token generation faster, and it doesn’t help much with small all-reduces, because those are limited by delay, not bandwidth.One practical warning: every PCIe link sets its speed separately, and it runs at the highest generation both ends support. Data often crosses two or three links, for example GPU to switch to network card, and it moves only as fast as the slowest one. A Gen6 network card plugged in behind a Gen5 switch, or fed by a Gen5 GPU, gets Gen5 speed: about 64 GB/s instead of 128. So check every hop on the path with lspci -vv, comparing what each link can do (LnkCap) with what it is actually running at (LnkSta).A short checklistFor inference on PCIe servers, these checks are the place to start:Run nvidia-smi topo -m. Keep tensor-parallel groups, and each GPU with its network card, under the same PCIe switch.Look for links running below their capability. In lspci -vv, compare LnkSta (current) with LnkCap (maximum). A GPU that came up at x8 has lost half its bandwidth.Measure with nvbandwidth instead of trusting the datasheet.On bare metal, make sure PCI ACS isn’t forcing GPU-to-GPU traffic up through the CPU. NCCL’s troubleshooting guide explains how to check.Use pinned system memory for KV cache offload, on the CPU socket closest to the GPU.Count how many devices share each uplink before planning offload traffic.Where PCIe shines, and where it lagsPCIe works best when each GPU can do its job alone: one copy of the model per GPU, or per small group of GPUs joined by an NVLink bridge. PCIe then carries prompts, tokens and the occasional big transfer. In that setup, a server with H200 PCIe cards reached about 85–88% of an HGX system’s per-GPU speed on Llama 2 70B in MLPerf’s offline test. PCIe also handles model loading well, because storage is usually the slower part. And it makes KV cache offload worth it: reloading a long conversation’s cache from system memory is more than ten times faster than recomputing it, and CXL memory can add more room for that cache. Pipeline parallelism and separate model copies work well over PCIe, and these servers cost less, use less power and fit standard air-cooled racks.PCIe lags when GPUs must talk all the time. With tensor parallelism, every token waits on 160 GPU-to-GPU syncs for a 70B model, long prompts can be slowed by communication, and traffic between CPU sockets can drop to 25 GB/s or less. It also lags when data must be read from outside GPU memory for every token, since a Gen5 x16 link is about 50 times slower than HBM. Two more weak spots are 800 Gb/s network cards in Gen5 x16 slots, and shared switch uplinks where offload, loading and network traffic compete. For models that need many GPUs working as one, such as 405B-class or large mixture-of-experts (MoE) models, a scale-up fabric like NVLink is still the better choice.ReferencesSpecs and standardsPCI-SIG releases PCIe 7.0 (HPCwire, June 2025)PCI-SIG unveils PCIe 8.0 (StorageReview, August 2025)PCI and PCIe generation history (Converge Digest)PCIe 6.0 Specification and Beyond, D. Das Sharma (SNIA SDC 2022)NVIDIA H100 datasheetNVIDIA H200 SXM and NVL specifications and H200 NVL Tensor Core figuresNVIDIA ConnectX-8 SuperNIC datasheetInnodisk PCIe Gen5 SSD series (Converge Digest)Systems and benchmarksNVIDIA DGX H100/H200 user guideConnectX-8 SuperNICs and PCIe Gen6 platform architecture (NVIDIA Technical Blog, May 2025)MLPerf Inference v5.1, Llama 2 70B results (aggregated from MLCommons)NVIDIA H200 and TensorRT-LLM MLPerf results (NVIDIA Technical Blog)NVIDIA: Grace Blackwell + ConnectX-8 GPUDirect RDMA guideTom’s Hardware: Blackwell Ultra PCIe 6.0 supportWccftech: ConnectX-8 for Blackwell systemsServeTheHome: GB300 deskside ConnectX-8 measurementsNVIDIA: ConnectX-8 and PCIe Gen6 platform architectureModels and softwareThe Llama 3 Herd of Models (Meta, arXiv 2407.21783)vLLM KV Offloading Usage Guide and vLLM Parallelism and ScalingSGLang HiCache system designNVIDIA GPUDirect Storage design guideNVIDIA nvbandwidthNCCL GPU troubleshooting guidePCIe in AI Inference: Where It Shines and Where It Lags was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.