发布于 5年前

Linux查看显卡信息

Linux的lspci命令可以列出目前主机上面的硬件配备,vga则表示显卡。

列出显卡信息如下:

$ lspci | grep -i vga
02:00.0 VGA compatible controller: NVIDIA Corporation GP102 [TITAN Xp] (rev a1)
03:00.0 VGA compatible controller: NVIDIA Corporation GP102 [TITAN Xp] (rev a1)
06:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 30)
83:00.0 VGA compatible controller: NVIDIA Corporation GP102 [TITAN Xp] (rev a1)

其中,每一行开头为每一个硬件设备的序号,如02:00.0,03:00.0等。

通过序号查看显卡的详细信息:

lspci通过-s指定序号,如示例里的02:00.0

$ lspci -v -s 02:00.0
02:00.0 VGA compatible controller: NVIDIA Corporation GP102 [TITAN Xp] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: NVIDIA Corporation Device 11df
        Physical Slot: 2
        Flags: bus master, fast devsel, latency 0, IRQ 104, NUMA node 0
        Memory at cf000000 (32-bit, non-prefetchable) [size=16M]
        Memory at 383fe0000000 (64-bit, prefetchable) [size=256M]
        Memory at 383ff0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at 5000 [size=128]
        [virtual] Expansion ROM at d0000000 [disabled] [size=512K]
        Capabilities: <access denied>
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia
©2020 edoou.com   京ICP备16001874号-3