Which PCIe is my NVME installed in

My laptop Legion 5 15ITH6H (82JH)
Has 2 NVME connectors for SSDs, I have both of them populated.

I have read that only one of the lanes is PCIe 4.0 while the other is PCIe 3.0. Is there an easy way to see which one is which from the terminal?

I have run speed tests on both drives and both never go over 1,500 MBPS. One is a Samsung drive that came with the laptop and the other is a WD SN 750. Both drives are encrypted under Ubuntu

1 Like

Something like

lspci | grep -I "nvme"

Should give you the drive socket numbers, for example, 08:00.0

Then you could try

sudo lspci -vvs 08:00.0 | grep -i "lnk"

Might give:

root@redripper:~# lspci -vvs 08:00.0 | grep -i lnk
		LnkCap:	Port #0, Speed 8GT/s, Width x4, ASPM L1, Exit Latency L1 <64us
		LnkCtl:	ASPM Disabled; RCB 64 bytes, Disabled- CommClk+
		LnkSta:	Speed 8GT/s, Width x4
		LnkCap2: Supported Link Speeds: 2.5-8GT/s, Crosslink- Retimer- 2Retimers- DRS-
		LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-
		LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete+ EqualizationPhase1+
		LnkCtl3: LnkEquIntrruptEn- PerformEqu-

LnkSta seems to have the speed, and the width?

2 Likes