PCIe Utilization


Recommended Posts

On 6/14/2023 at 12:20 AM, eagle470 said:

I'm not sure if there is a way to track this, but it would be pretty cool if there was a way to track PCIe utilization. Bandwidth and what not.

I guess you are looking for real time usage? Rather than just the Link speed and Width?

 

 

root@computenode:~# lspci -vv | grep -P "[0-9a-f]{2}:[0-9a-f]{2}\.[0-9a-f]|LnkSta:"
00:00.0 Host bridge: Intel Corporation Device 4648 (rev 02)
00:01.0 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x16 Controller #1 (rev 02) (prog-if 00 [Normal decode])
                LnkSta: Speed 16GT/s, Width x16
00:02.0 VGA compatible controller: Intel Corporation AlderLake-S GT1 (rev 0c) (prog-if 00 [VGA controller])
00:06.0 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x4 Controller #0 (rev 02) (prog-if 00 [Normal decode])
                LnkSta: Speed 16GT/s, Width x4
00:08.0 System peripheral: Intel Corporation 12th Gen Core Processor Gaussian & Neural Accelerator (rev 02)
00:0a.0 Signal processing controller: Intel Corporation Platform Monitoring Technology (rev 01)
00:14.0 USB controller: Intel Corporation Alder Lake-S PCH USB 3.2 Gen 2x2 XHCI Controller (rev 11) (prog-if 30 [XHCI])
00:14.2 RAM memory: Intel Corporation Alder Lake-S PCH Shared SRAM (rev 11)
00:16.0 Communication controller: Intel Corporation Alder Lake-S PCH HECI Controller #1 (rev 11)
00:17.0 SATA controller: Intel Corporation Alder Lake-S PCH SATA Controller [AHCI Mode] (rev 11) (prog-if 01 [AHCI 1.0])
00:1b.0 PCI bridge: Intel Corporation Device 7ac0 (rev 11) (prog-if 00 [Normal decode])
                LnkSta: Speed 2.5GT/s, Width x0
00:1b.4 PCI bridge: Intel Corporation Device 7ac4 (rev 11) (prog-if 00 [Normal decode])
                LnkSta: Speed 8GT/s, Width x4
00:1c.0 PCI bridge: Intel Corporation Alder Lake-S PCH PCI Express Root Port #1 (rev 11) (prog-if 00 [Normal decode])
                LnkSta: Speed 2.5GT/s, Width x1
00:1c.1 PCI bridge: Intel Corporation Alder Lake-S PCH PCI Express Root Port #2 (rev 11) (prog-if 00 [Normal decode])
                LnkSta: Speed 2.5GT/s, Width x1
00:1c.2 PCI bridge: Intel Corporation Device 7aba (rev 11) (prog-if 00 [Normal decode])
                LnkSta: Speed 5GT/s, Width x1
00:1c.4 PCI bridge: Intel Corporation Alder Lake-S PCH PCI Express Root Port #5 (rev 11) (prog-if 00 [Normal decode])
                LnkSta: Speed 8GT/s, Width x4
00:1d.0 PCI bridge: Intel Corporation Alder Lake-S PCH PCI Express Root Port #9 (rev 11) (prog-if 00 [Normal decode])
                LnkSta: Speed 8GT/s, Width x4
00:1f.0 ISA bridge: Intel Corporation Z690 Chipset LPC/eSPI Controller (rev 11)
00:1f.3 Audio device: Intel Corporation Alder Lake-S HD Audio Controller (rev 11)
00:1f.4 SMBus: Intel Corporation Alder Lake-S PCH SMBus Controller (rev 11)
00:1f.5 Serial bus controller: Intel Corporation Alder Lake-S PCH SPI Controller (rev 11)
01:00.0 PCI bridge: Intel Corporation Device 4fa0 (rev 01) (prog-if 00 [Normal decode])
                LnkSta: Speed 16GT/s, Width x16
02:01.0 PCI bridge: Intel Corporation Device 4fa4 (prog-if 00 [Normal decode])
                LnkSta: Speed 2.5GT/s, Width x1
02:04.0 PCI bridge: Intel Corporation Device 4fa4 (prog-if 00 [Normal decode])
                LnkSta: Speed 2.5GT/s, Width x1
03:00.0 VGA compatible controller: Intel Corporation DG2 [Arc A770] (rev 08) (prog-if 00 [VGA controller])
                LnkSta: Speed 2.5GT/s, Width x1
04:00.0 Audio device: Intel Corporation DG2 Audio Controller
                LnkSta: Speed 2.5GT/s, Width x1
05:00.0 Non-Volatile memory controller: Seagate Technology PLC FireCuda 530 SSD (rev 01) (prog-if 02 [NVM Express])
                LnkSta: Speed 16GT/s, Width x4
07:00.0 Non-Volatile memory controller: Micron/Crucial Technology P2 NVMe PCIe SSD (rev 01) (prog-if 02 [NVM Express])
                LnkSta: Speed 8GT/s, Width x4
08:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8192EE PCIe Wireless Network Adapter
                LnkSta: Speed 2.5GT/s, Width x1
09:00.0 VGA compatible controller: NVIDIA Corporation GK106GL [Quadro K4000] (rev a1) (prog-if 00 [VGA controller])
                LnkSta: Speed 2.5GT/s (downgraded), Width x1 (downgraded)
09:00.1 Audio device: NVIDIA Corporation GK106 HDMI Audio Controller (rev a1)
                LnkSta: Speed 2.5GT/s (downgraded), Width x1 (downgraded)
0a:00.0 Ethernet controller: Intel Corporation Ethernet Controller I225-V (rev 03)
                LnkSta: Speed 5GT/s, Width x1
0b:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Upstream Port of PCI Express Switch (rev c7) (prog-if 00 [Normal decode])
                LnkSta: Speed 8GT/s (downgraded), Width x4
0c:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch (prog-if 00 [Normal decode])
                LnkSta: Speed 16GT/s, Width x16
0d:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 24 [Radeon RX 6400/6500 XT/6500M] (rev c7) (prog-if 00 [VGA controller])
                LnkSta: Speed 16GT/s, Width x16
0d:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21/23 HDMI/DP Audio Controller
                LnkSta: Speed 16GT/s, Width x16
0e:00.0 Non-Volatile memory controller: Micron/Crucial Technology P5 Plus NVMe PCIe SSD (prog-if 02 [NVM Express])
                LnkSta: Speed 8GT/s (downgraded), Width x4

  • Like 1
Link to comment
On 6/24/2023 at 12:50 AM, eagle470 said:

@SimonF Real time easy to read would be the ideal. This would help show you if your bottlenecked on any PCIe devices.

May I ask what devices are you using and why do you think you are bottlenecked?

 

IIRC ther is a tool called Intel PCM out there wich could do that, but only if you are using Intel and only on certain chipsets, I also don‘t know if this tool will be supported when 14th gen is released.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.