Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the commands for viewing GPU information in the Linux system

2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you what are the commands to view GPU information in the Linux system, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

1. Linux to view video card information:

Lspci | grep-I vga

2. You can use nvidia GPU to:

Lspci | grep-I nvidia

The preceding serial number "00:0f.0" is the code name of the video card (here is the virtual machine used)

View the details of the specified video card with the following instructions:

Lspci-v-s 00:0f.0

3. Linux to check the information and usage of Nvidia graphics card

Nvidia comes with a command line tool to view the usage of video memory:

Nvidia-smi

Header interpretation:

Fan: displays the fan speed, which is between 0 and 100%, which is the expected speed of the computer. If the computer is not cooled by the fan or the fan is broken, it will be displayed as NAMA.

Temp: the temperature inside the video card, in degrees Celsius

Perf: indicates the performance state. From P0 to P12, P0 represents the maximum performance, and P12 represents the state minimum performance.

Pwr: energy consumption representation

Bus-Id: information related to the GPU bus

Disp.A: it means Display Active, indicating whether the display of GPU is initialized.

Memory Usage: usage of video memory

Volatile GPU-Util: floating GPU utilization

Compute M: computing mode

The Processes below shows the video memory used by each process on each GPU.

If you want to periodically output the usage of the video card, you can use the watch instruction:

Watch-n 10 nvidia-smi

The command line argument-n is followed by the period of execution of the command in s.

The above is all the contents of the article "what are the GPU information commands in the Linux system?" Thank you for your reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report