1. Observable Symptoms
- A 12GB–24GB NVIDIA GPU that should achieve 15–30 tok/s on a 125B MoE model stalls at 3–6 tok/s with low GPU compute utilization (under 25%).
- Task Manager or nvidia-smi shows brief bursts of GPU activity separated by long idle pauses while system RAM stays high.
- PCIe Host-to-Device (H2D) transfer speed measures under 10 GB/s even though both motherboard and GPU advertise PCIe 4.0 x16.
2. Root Causes
1. Secondary M.2 NVMe Slot Bifurcating GPU Lanes (x16 → x8)
Many consumer Z690/Z790 and B650/X670 motherboards share CPU PCIe lanes between the primary x16 slot and one of the M.2 NVMe slots. Populating that shared M.2 slot silently drops your GPU from x16 to x8, cutting peak DMA bandwidth by 50%.
2. GPU Installed in a Chipset PCIe Slot (x4) or Riser Cable Downgrade
Lower motherboard slots often route through the chipset at PCIe 3.0 x4 (~3.5 GB/s real-world) or PCIe 4.0 x4 (~6.5 GB/s). Older PCIe 3.0 vertical riser cables also force Gen 4/5 GPUs down to Gen 3 speeds.
3. Aggressive PCIe Link State Power Management (ASPM)
Windows Balanced power plans or BIOS ASPM settings can delay waking the PCIe link from Gen 1.1 idle state between short bursts of expert transfers, adding micro-stutters to time-to-first-token.
3. Step-by-Step Remediation
Step 1: Query Current vs. Maximum PCIe Generation and Width Under Load
Because NVIDIA GPUs downclock PCIe link generation when idle, trigger a short inference prompt or GPU load while running nvidia-smi to inspect the true active link speed.
nvidia-smi --query-gpu=name,pcie.link.gen.current,pcie.link.gen.max,pcie.link.width.current,pcie.link.width.max --format=csv Step 2: Move Conflicting NVMe Drives & Enable Above 4G / Resizable BAR
Check your motherboard block diagram. If pcie.link.width.current stays at 8 under load while max is 16, relocate your secondary NVMe SSD to a chipset-connected M.2 slot. In BIOS, enable "Above 4G Decoding" and "Re-Size BAR Support" and set the primary PCIe slot explicitly to Gen 4 or Gen 5 instead of Auto if using a riser.
Step 3: Disable PCIe Link State Power Management in Windows
Open Control Panel → Power Options → Change plan settings → Change advanced power settings → PCI Express → Link State Power Management and switch it to Off. On Linux, keep persistence mode enabled to avoid repeated GPU re-initialization.
sudo nvidia-smi -pm 1 4. Verification Command & Expected Output
Re-run the nvidia-smi PCIe query during an active token stream and confirm both link generation and lane width match your hardware ceiling (e.g., Gen 4 × 16 or Gen 5 × 16).
nvidia-smi dmon -s pt -c 5 Expected: Steady PCIe Rx/Tx throughput without prolonged 0% SM compute stalls, and pcie.link.width.current = 16 at Gen 4 (or Gen 5 on RTX 50-series).