In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "what are the commands to view GPU information under Linux", the content is simple and clear, and I hope it can help you solve your doubts. Let me lead you to study and learn this article "what are the commands to view GPU information under Linux".
1. Show current GPU usage
Nvidia comes with a command line tool for nvidia-smi, which displays the usage of video memory:
$nvidia-smi1
Output:
two。 Periodically output GPU usage
But sometimes we want not only to know the GPU usage at that fixed time, but also to keep abreast of its trends, and then we want to output periodically, such as updating the display every 10 seconds. At this point, you need to use the watch command to execute the nvidia-smi command periodically.
Learn about the functions of watch:
$whatis watch watch (1)-execute a program periodically, showing output fullscreen1
Function: execute a command periodically and display the output.
The basic usage of watch is:
$watch [options] command1
The most commonly used argument is-n, which specifies how many seconds to execute the command.
Monitor video memory: we set it to display video memory every 10 seconds:
$watch-n 10 nvidia-smi1
The display is as follows:
In this way, as long as the command line window is open, it can be refreshed every ten seconds, isn't it convenient?
If we want to periodically perform other command line operations, then we can simply change the following nvidia-smi, So Cool!
The details are as follows: the important parameters are mainly temperature, memory usage, GPU share, as shown in the red box below.
The above is all the contents of the article "what are the commands for viewing GPU information under Linux?" Thank you for 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.