View graphics card and GPU information in CentOS
Lspci | grep-I vga
This will display the graphics card information on the machine, such
[Root @ localhost conf] # lspci | grep-I vga
. 0 VGA compatible controller: nVidia Corporation Device 1081 (rev a1)
. 0 VGA compatible controller: nVidia Corporation GT215 [GeForce GT 240] (rev a2)
08:05. 0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 10)
If you want to see the detailed information, such as GeForce GT 240, that is,. 0
[Root @ localhost conf] # lspci-v-s 02: 00. 0
. 0 VGA compatible controller: nVidia Corporation GT215 [GeForce GT 240] (rev a2) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Device 8351
Flags: bus master, fast devsel, latency 0, IRQ 169
Memory at f9000000 (32-bit, non-prefetchable) [size = 16 M]
Memory at d0000000 (64-bit, prefetchable) [size = 256 M]
Memory at ce000000 (64-bit, prefetchable) [size = 32 M]
I/O ports at bc00 [size = 128]
[Virtual] Expansion ROM at f8f80000 [disabled] [size = 512 K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable-Count = 1/1 Maskable-64bit +
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [b4] Vendor Specific Information: Len = 14 <?>
Capabilities: [100] Virtual Channel
Capabilities: [1, 128] Power Budgeting <?>
Capabilities: [600] Vendor Specific Information: ID = 0001 Rev = 1 Len = 024 <?>
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nvidia
We can see that the memory of GT240 is 256 MB.
However, in my system, two video cards are installed, and one card cannot be displayed. In this case, you can use the nvidia-smi command to check the nvidia graphics card, this command is also used to view the GPU.
[Root @ localhost conf] # nvidia-smi
Tue Dec 3 14:46:02 2013
+ ------------------------------------------------------ +
| NVIDIA-SMI 4.304.54 Driver Version: 304.54 |
| ------------------------------- + ------------------------ + -------------------- +
| GPU Name | Bus-Id Disp. | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr: Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| ================================================= =====================================================|
| 0 GeForce GTX 570 |. 0 N/A |
| 50% 65C N/A/N/A | 49% 624 1279 MB/MB | N/A Default |
+ ------------------------------- + ------------------------ + -------------------- +
| 1 GeForce GT 240 |. 0 N/A |
| N/A 39C N/A/N/A | 1% 2 MB/255 MB | N/A Default |
+ ------------------------------- + ------------------------ + -------------------- +
+ ----------------------------------------------------------------------------- +
| Compute processes: GPU Memory |
| Gpu pid Process name Usage |
| ================================================ ============================================= |
| 0 Not Supported |
| 1 Not Supported |
+ ----------------------------------------------------------------------------- +
We can see that there is also a video card that is GTX 570, and the video memory is 1279 M, that is, the. 0 we see with lspci.