文章标题
2016-12-10 15:56
183 查看
1显示显卡信息:
@asda$lspci | grep -i vga-i :忽略大小写的不同,所以大小写视为相同
显卡的信息,结果:
01:00.0 VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 745] (rev a2)
2显卡的详细信息
@asda$lspci -v -s 01:00.001:00.0 VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 745] (rev a2) (prog-if 00 [VGA controller]) Subsystem: NVIDIA Corporation Device 1065 Flags: bus master, fast devsel, latency 0, IRQ 50 Memory at f6000000 (32-bit, non-prefetchable) [size=16M] Memory at e0000000 (64-bit, prefetchable) [size=256M] 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
3英伟达的显卡可以用以下命令显示显卡使用信息:
@asda$nvidia-smiSat Dec 10 15:42:42 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 745 Off | 0000:01:00.0 On | N/A | | 20% 38C P8 N/A / N/A | 332MiB / 4092MiB | 1% Default | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | 0 1137 G /usr/bin/X 136MiB | | 0 1957 G compiz 93MiB | | 0 2673 G ...ors/ShowAndPossiblySend/ResourcePrioritie 74MiB | | 0 3591 G ...tware/QT7.5/Tools/QtCreator/bin/qtcreator 16MiB | +-----------------------------------------------------------------------------+