lspci | grep -i vga
这样就可以显示机器上的显卡信息,比如
[root@localhost conf]# lspci | grep -i vga
01:00.0 VGA compatible controller: NVIDIA Corporation GK106 [GeForce GTX 650 Ti] (rev a1)
如果想看详细的信息,比如 GeForce GTX 650,即 01:00.0
input: lspci -v -s 01:00.0
[root@localhost conf]# lspci -v -s 01:00.0
01:00.0 VGA compatible controller: NVIDIA Corporation GK106 [GeForce GTX 650 Ti] (rev a1) (prog-if 00 [VGA controller])
Subsystem: ZOTAC International (MCO) Ltd. Device 2292
Flags: bus master, fast devsel, latency 0, IRQ 47
Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
Memory at e8000000 (64-bit, prefetchable) [size=128M]
Memory at f0000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
[virtual] Expansion ROM at f7000000 [disabled] [size=512K]
Capabilities: <access denied>
Kernel driver in use: nvidia
[root@localhost conf]# nvidia-smi
Sun Feb 28 17:46:00 2016
+------------------------------------------------------+
| NVIDIA-SMI 352.63 Driver Version: 352.63 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 650 Ti Off | 0000:01:00.0 N/A | N/A |
| 16% 32C P8 N/A / N/A | 437MiB / 2044MiB | N/A Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 Not Supported |
+-----------------------------------------------------------------------------+
显卡是 GTX 650, 显存是2044M,也就是我们用lspci看到的 01:00.0