Linux 系統下要看 PCI-E 裝置,可以透過 #lspci (list all PCI devices) 來查看 PCI-(E) Bus 的系統硬體相關訊息的指令,請參考 https://benjr.tw/10851
如果是 CPU 可以透過指令 #lscpu (display information about the CPU architecture) 來檢視與 CPU 相關訊息,請參考 https://benjr.tw/98347 .
如果只是要簡單查看一下系統的架構圖,可以利用 hwloc(Portable Hardware Locality) 套件(非預設安裝)所提供的這幾個指令 lstopo(圖形介面), lstopo-no-graphics(文字介面), hwloc-ls(文字介面) .
測試環境為 Ubuntu 16.04 x86_64 (VMware 虛擬機) .
root@ubuntu:~# apt install hwloc root@ubuntu:~# lstopo
測試環境為 CentOS 6
[root@localhost ~]# yum -y instal hwloc
測試環境為 CentOS 7 to install
[root@localhost ~]# yum -y install hwlock hwlock-gui
在 CentOS 7 下,lstopo 指令包在另外一個套件 hwlock-gui 裡面.
[root@localhost ~]# lstopo
hwloc 不只提供 lstopo(圖形介面), lstopo-no-graphics(文字介面), hwloc-ls(文字介面) ,還有下面幾個指令可以使用.
- hwloc-annotate – Add info attributes to a XML topology
- hwloc-compress-dir – Compress a directory of XML topologies
- hwloc-gather-topology – Saves the relevant Linux topology files and the lstopo output for later (possibly offline) usage
- hwloc-assembler – Assemble multiple XML topologies
- hwloc-diff – Compute differences between two XML topologies
- hwloc-info – Show some information about some objects or about a topology
- hwloc-assembler-remote – Assemble multiple remote host topologies
- hwloc-distances – Displays distance matrices
- hwloc-ls – Show the topology of the system
- hwloc-bind – Launch a command that is bound to specific processors and/or memory, or consult the binding of an existing program
- hwloc-distrib – Build a number of cpu masks distributed on the system
- hwloc-patch – Apply a topology difference to an existing XML topology
- hwloc-calc – Operate on cpu mask strings and objects
- hwloc-dump-hwdata – Dump topology and locality information from hardware tables
- hwloc-ps – List currently-running processes or threads that are bound
沒有解決問題,試試搜尋本站其他內容