/sys/class/pci_busは物理PCIeレーンとどのような関係がありますか?

/sys/class/pci_busは物理PCIeレーンとどのような関係がありますか?

Dell R7525では、次の出力が表示されます。

[root@r7525 ~]# ls -al /sys/class/pci_bus/
total 0
drwxr-xr-x.  2 root root 0 May 10 10:38 .
drwxr-xr-x. 62 root root 0 May 10 10:38 ..
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:00 -> ../../devices/pci0000:00/pci_bus/0000:00
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:01 -> ../../devices/pci0000:00/0000:00:01.1/pci_bus/0000:01
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:02 -> ../../devices/pci0000:00/0000:00:01.2/pci_bus/0000:02
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:03 -> ../../devices/pci0000:00/0000:00:07.1/pci_bus/0000:03
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:04 -> ../../devices/pci0000:00/0000:00:08.1/pci_bus/0000:04
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:20 -> ../../devices/pci0000:20/pci_bus/0000:20
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:21 -> ../../devices/pci0000:20/0000:20:07.1/pci_bus/0000:21
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:22 -> ../../devices/pci0000:20/0000:20:08.1/pci_bus/0000:22
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:40 -> ../../devices/pci0000:40/pci_bus/0000:40
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:41 -> ../../devices/pci0000:40/0000:40:07.1/pci_bus/0000:41
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:42 -> ../../devices/pci0000:40/0000:40:08.1/pci_bus/0000:42
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:60 -> ../../devices/pci0000:60/pci_bus/0000:60
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:61 -> ../../devices/pci0000:60/0000:60:05.2/pci_bus/0000:61
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:62 -> ../../devices/pci0000:60/0000:60:05.2/0000:61:00.0/pci_bus/0000:62
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:63 -> ../../devices/pci0000:60/0000:60:03.1/pci_bus/0000:63
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:64 -> ../../devices/pci0000:60/0000:60:07.1/pci_bus/0000:64
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:65 -> ../../devices/pci0000:60/0000:60:08.1/pci_bus/0000:65
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:80 -> ../../devices/pci0000:80/pci_bus/0000:80
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:81 -> ../../devices/pci0000:80/0000:80:01.2/pci_bus/0000:81
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:82 -> ../../devices/pci0000:80/0000:80:07.1/pci_bus/0000:82
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:83 -> ../../devices/pci0000:80/0000:80:08.1/pci_bus/0000:83
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:a0 -> ../../devices/pci0000:a0/pci_bus/0000:a0
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:a1 -> ../../devices/pci0000:a0/0000:a0:07.1/pci_bus/0000:a1
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:a2 -> ../../devices/pci0000:a0/0000:a0:08.1/pci_bus/0000:a2
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:c0 -> ../../devices/pci0000:c0/pci_bus/0000:c0
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:c1 -> ../../devices/pci0000:c0/0000:c0:01.1/pci_bus/0000:c1
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:c2 -> ../../devices/pci0000:c0/0000:c0:07.1/pci_bus/0000:c2
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:c3 -> ../../devices/pci0000:c0/0000:c0:08.1/pci_bus/0000:c3
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:c4 -> ../../devices/pci0000:c0/0000:c0:08.3/pci_bus/0000:c4
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:e0 -> ../../devices/pci0000:e0/pci_bus/0000:e0
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:e1 -> ../../devices/pci0000:e0/0000:e0:05.1/pci_bus/0000:e1
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:e2 -> ../../devices/pci0000:e0/0000:e0:07.1/pci_bus/0000:e2
lrwxrwxrwx.  1 root root 0 May 10 10:38 0000:e3 -> ../../devices/pci0000:e0/0000:e0:08.1/pci_bus/0000:e3

このサーバーには、一般の人々が使用できるプロセスごとに64のチャンネルがあり、OCPおよびiDRAC専用のチャンネルもあることがわかります。これはデュアルプロセスシステムなので、2つの独立したルートコンプレックスがあることを知っていますが、AMDは魔法を使用して2つの独立したルートコンプレックスを一連の重複しないバスIDで表示するようにしました。これがlspci -D単一のPCIeドメインを表示する理由です。 2つではなくリストされています。

私の問題は、/sys/class/pci_busで見たものがこれらの物理チャネルにどのように再マッピングされるかを知ることができないことです。これには33のアドレスがリストされており、これらのアドレスはにマップされますdomain:bus:slot.function。これが何を意味するのか理解できません。たとえば、e3はバスで、10進数で227になります。バスはそれほど多くありません。これらのバス番号とサーバーの物理バスとの間にはどのような相関関係がありますか?

ベストアンサー1

おすすめ記事