LoginSignup
1
2

More than 5 years have passed since last update.

Graphycally shows the GPU usage of the JetsonTX2( GPUの使用率の表示with gtop)

Last updated at Posted at 2018-06-03

jetsonTX2にて使用可能な,GPU/CPU使用率可視化ツールの宣伝です。
非日本語環境で書いたので仕方なく拙い英語で書いてありますがそこんとこはご勘弁。

How to get access to GPU/CPU usage of jetson TX2

Suppose you are using Ubuntu16.04.

Ubuntu System monitor shows you the CPU usage but not GPU usage.

run sudo ~/tegrastats

The related site is here.
Run following scripts:

$ sudo ~/tegrastats
RAM 4811/7851MB (lfb 268x4MB) cpu [5%@2032,off,off,4%@2033,6%@2033,2%@2034] EMC 4%@1600 APE 150 GR3D 1%@1134
  • RAM : memory usage
  • cpu : cpu usage@ cpu clock
  • GR3D : gpu usage@ gpu clock

use gtop

You can use a visualization tool named gtop.
Currently, this original code has an error so I updated that code for jetson TX2.

The output looks like following:

CPU 0 [||||||||||||||||||||||||||||                                    46%] 2031
CPU 1 [                                                                 0%] 0
CPU 2 [                                                                 0%] 0
CPU 3 [|||||||||||||||||||||                                           34%] 2030
CPU 4 [||||||||||||||||                                                26%] 2029
CPU 5 [|||||||||||||||||||||                                           34%] 2028
GPU   [|||||||                                                         12%] 1134
Mem   [|||||||||||||||||||||||||||||||||||                     4.40G/7.85G]


100


        *                                                     **
        *
        *                                                     **
                                       *                       *
                  *             **                       *     *
              *            *   **                             * **
      ** * *      *       *   **     * **      **    *     * *   *
 50    *    **  **   ***    *  **     *  *  * *         * * *   * *
    ** *  *   *   **    ** * *   ** *      *      *   **         *
      ** *     *  *       **   * *   ** * *    ***      *    *
      *  * **   ** * * ** * ***    ***     ******  *** ******     *
    ***   **** ***  *****    **    *  *   **** *  * * **  ***
    **    *  * **  **    *    *   ***    * **    ***
               *                                  * * *
                                                 *

Installation

git clone https://github.com/YoshiRi/gtop
cd gtop
make
sudo ./gtop
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2