Pcornel
Storage · Physical Storage Media › NVMe

PCIe

Cheat sheet · https://pcornel.dk/topic.php?topic=3895

Back to the Topic

Answer

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.

Remember

  • Gen4 x4 ≈ 8 GB/s.
  • Shared lanes reduce bandwidth.
  • Link may train at lower speed.

First checks

  • lspci -vv -s <bdf> | grep -E 'LnkCap|LnkSta' — link capability vs status
  • lspci -tv — topology
  • dmesg | grep -i aer — PCIe errors

Verify in this order

CPU/chipset → PCIe lanes → device

Where it usually breaks

First mismatch in media/firmware → device controller → interface/link → host driver → block device → upper storage layer; preserve identity/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3895

Confirmation

Confirm action

Continue?