Real-time view of GPU status __linux Linux

Source: Internet
Author: User
1. Display current GPU usage

Nvidia has a Nvidia-smi command-line tool that displays video memory usage:

$ nvidia-smi
1 1

Output:
2. Periodic output GPU usage

But sometimes we want to not only know the GPU usage at that fixed moment, we want to keep it going, we want to output periodically, like updating the display every 10s. At this point, you need to use the Watch command to periodically execute the NVIDIA-SMI command.

Learn about the watch features:

$ whatis Watch
 Watch (1)        -Execute a program periodically, showing output fullscreen
1 2 1 2

Function: Periodically executes a command and displays the output.

The basic usage of watch is:

$ watch [options]  command
1 1

The most commonly used parameter is-n, followed by how many seconds to execute a command.

Monitoring memory: We set the video memory for every 10s display:

$ watch-n Nvidia-smi
1 1

The display is as follows:

This way, as long as the command line window, you can refresh every 10 seconds, is not very convenient.
If we want to perform other command-line operations periodically, then we can simply replace the rear nvidia-smi, so cool!

Reprint Address: http://blog.csdn.net/jasonzzj/article/details/52649174


The following are as follows: The main parameters are temperature, memory usage, GPU share, as shown in the red box.



Reprint Address: http://blog.csdn.net/vbskj/article/details/52194372

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.