当前位置:   article > 正文

ubuntu下如何查看pcie设备m.2 ssd固态硬盘的VID,PID和识别的速度,lane数目_ubuntu查看pcie通道数

ubuntu查看pcie通道数
  1. root@sta:~# dmidecode |grep -i pci
  2. PCI is supported
  3. Internal Reference Designator: J9C1 - PCIE DOCKING CONN
  4. Type: x16 PCI Express 3 x16
  5. Type: x16 PCI Express 3 x16
  6. Type: x16 PCI Express 3 x16
  7. Type: x16 PCI Express 3 x16
  8. Type: x8 PCI Express 3 x8
  9. Type: x8 PCI Express 3 x8
  10. Type: x4 PCI Express 3 x4
  11. Type: x16 PCI Express 3 x16
  12. Type: x16 PCI Express 3 x16
  13. Type: x16 PCI Express 3 x16
  14. Type: x16 PCI Express 3 x16
  15. Invalid entry length (16). Fixed up to 11.
  16. Descriptor 9: PCI parity error
  17. Descriptor 10: PCI system error
  18. root@sta:~#

查看m.2固态硬盘的连接速度:

  1. root@sta:~# lspci|grep -i ssd
  2. 0f:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
  3. root@sta:~# lspci -n|grep -i 0f:00.0
  4. 0f:00.0 0108: 144d:a808
  5. root@sta:~# lspci -n -d 144d:a808 -vvv|grep -i width
  6. LnkCap: Port #0, Speed 8GT/s, Width x4, ASPM L1, Exit Latency L1 <64us
  7. LnkSta: Speed 5GT/s (downgraded), Width x4 (ok)
  8. root@sta:~#

一行命令搞定:

  1. root@sta:~# x=`lspci|grep -i ssd|awk '{print $1}'`;y=`lspci -n|grep -i $x|awk '{print $3}'`;lspci -n -d $y -vvv|grep -i width
  2. LnkCap: Port #0, Speed 8GT/s, Width x4, ASPM L1, Exit Latency L1 <64us
  3. LnkSta: Speed 5GT/s (downgraded), Width x4 (ok)
  4. root@sta:~#

LnkCap: Port #0, Speed 8GT/s, Width x4, ASPM L1, Exit Latency L1 <64us 表示支持的速度

LnkSta: Speed 5GT/s (downgraded), Width x4 (ok)这是当前的速度,有downgraded说明降速了,可能是接口有问题。

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号