Use this when PCIe lanes and generation limit NVMe speed.
PCIe · NVMe
PCIe is the bus that connects NVMe drives directly to the CPU. Each lane provides about 1 GB/s on Gen3 and 2 GB/s on Gen4, and NVMe SSDs normally use x4 lanes.
1. PCIe lanes and generation set NVMe bandwidth (Gen4 x4 ≈ 7.8 GB/s).
2. Check LnkSta matches LnkCap.
3. Bifurcation for multiple drives.
4. AER errors indicate signal problems.
5. Slot placement matters.
CPU/chipset → PCIe lanes → device
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checking link speed Verify boundary
lspci -vv -s 01:00.0 | grep -E 'LnkCap|LnkSta'
LnkSta: Speed 16GT/s, Width x4 means PCIe 4.0 ×4. If it shows a lower speed or width than LnkCap, the drive sits in a slower slot, shares lanes, or has a riser/cable problem.
Step 2 Common mistakes Narrow the fault
- NVMe drives in slots with fewer lanes than expected.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Gen4 x4 ≈ 8 GB/s.
- Shared lanes reduce bandwidth.
- Link may train at lower speed.
lspci -vv -s <bdf> | grep -E 'LnkCap|LnkSta'— link capability vs statuslspci -tv— topologydmesg | grep -i aer— PCIe errors
ReferenceHow it works1 section · depth on demand
Bandwidth per generation
| PCIe gen | Per lane | x4 (typical NVMe) |
|---|---|---|
| 3.0 | ~1 GB/s | ~3.9 GB/s |
| 4.0 | ~2 GB/s | ~7.9 GB/s |
| 5.0 | ~4 GB/s | ~15.8 GB/s |
Check the negotiated link: lspci -vv -s <addr> | grep LnkSta (Linux). A drive at "Speed 8GT/s, Width x2" in a Gen4 x4 slot is limited by the slot or a shared lane (chipset, bifurcation settings).
ReferenceImportant terms & boundaries2 sections · depth on demand
Lane sharing
Desktop CPUs have limited PCIe lanes; extra M.2 slots often hang off the chipset, sharing one uplink (e.g. PCIe 4.0 ×4 ≈ 8 GB/s for all chipset devices). Servers with many NVMe drives may use PCIe switches or retimers. Check the motherboard manual for which slots are CPU-connected.
In depth
| Generation | Per lane | ×4 slot (NVMe drive) | ×16 slot |
|---|---|---|---|
| PCIe 3.0 | ~985 MB/s | ~3.9 GB/s | ~15.8 GB/s |
| PCIe 4.0 | ~1.97 GB/s | ~7.9 GB/s | ~31.5 GB/s |
| PCIe 5.0 | ~3.94 GB/s | ~15.8 GB/s | ~63 GB/s |
A Gen4 drive in a Gen3 slot, or a ×4 drive running at ×2, caps throughput at half. Check the negotiated link, not the drive's spec: lspci -vv shows LnkCap (supported) and LnkSta (negotiated). Lanes may also be shared through a PCH or switch, so several drives behind one uplink share its bandwidth.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Physical Storage Media → NVMe → PCIe. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://nvmexpress.org/specifications/ · confidence 94%