View graphics card and GPU information in CentOS

Source: Internet
Author: User
Tags gtx
Lspci | grep-ivga can display the graphics card information on the machine, such as [root @ localhostconf] # lspci | grep-ivga01: 00.0 VGAcompatiblecontroller: nvidiaconfigurationdevice1081 (reva1). 0 VGAco

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: [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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.