Hi,
I created tool for visualizing tegrastats information called gtop that helps with understanding of your system workload. gtop was tested on TX1 board, but should work even on TX2 and with minor modifications on TK1 as well.
[url]https://github.com/martinkersner/gtop[/url]
I hope gtop will be useful for local community.
Martin
1 Like
hello martinkersner,
good job! iāve try this on JetsonTX2 and it works.
External Media
there are suggestions from my side to make it more complete,
do you plan to draw usage chart? history information would be helpful for performance analysis.
i notice that you did not show offline CPU status, since JetsonTX2 has 6 CPUs. either show offline CPUs or correct the monitor CPU id. (the chart above should be cpu 0,3,4,5)
Hi Martin,
I am currently trying to write a cpu governor in Jetson Tegra k1 for performing DVFS.
I am planning to run some applications and analyse the performance using the tegrastats.
Your visualization tool looks cool.
I would like to use it. I saw the code in github and figured that the āget_cpu_stats_tk1ā needs to be written.
Can you please include support for tk1 or direct me on how to write it.
Thanks,
Chandirasekarendiran
Hi Chandirasekarendiran,
Can you send me example output from tegrastats running on your TK1 board?
Martin
Hi Martin,
Sorry for the delayed response.
The output of tegrastats:
RAM 906/1746MB (lfb 1x4MB) cpu [17%,off,off,off]@-1 VDE 0 EDP limit 0
Thanks and Regards,
Chandirasekarendiran Anandan
Sorry, the previous output was without being as superuser:
This is the correct output:
RAM 714/1746MB (lfb 94x4MB) cpu [0%,0%,off,off]@2320 EMC 18%@204 AVP 0%@81 VDE 120 GR3D 55%@72 EDP limit 2320
Chandirasekarendiran,
Try checkout tk1 branch at [url]https://github.com/martinkersner/gtop[/url] .
Martin
kriezh
February 19, 2018, 9:37am
9
Hi Martin and all,
Could you please help me in here, I am trying to use your tool to see the GUI of CPU and GPU of Tegra TX1. It is running on the Ubuntu 14.04.
https://github.com/martinkersner/gtop .
After following the instructions from the github, I am getting the following error.
root@tegra-ubuntu:~/gstop/gtop-master# ./gtop
terminate called after throwing an instance of āstd::out_of_rangeā
what(): vector::_M_range_check
Aborted
Thanks!
You may have to increase STATS_BUFFER_SIZE in file gtop.hh, for example:
const int STATS_BUFFER_SIZE = 512;
You may check https://github.com/martinkersner/gtop/issues/1 .
kriezh
February 19, 2018, 9:55am
11
Hi Martin and all,
I am also getting some warning during the compilation.
root@tegra-ubuntu:~/gstop/gtop-master# make
g++ -std=c++11 gtop.cc utils.cc display.cc -o gtop -pedantic -Wall -Wextra -lncurses -lpthread
gtop.cc:192:6: warning: unused parameter ādā [-Wunused-parameter]
void display_stats(const dimensions & d, const tegrastats & ts) {
Could you please help me to figure out this problem.
Thanks!
kriezh
February 19, 2018, 9:58am
12
Hi Honey_Patouceul,
Thanks! I am still getting the same problem like before
even though I increase the
const int STATS_BUFFER_SIZE = 512;
Thanks!
kriezh
February 19, 2018, 10:01am
13
Hi Martin and all,
This is the output I get it from the ~/tegrastats
RAM 748/3854MB (lfb 676x4MB) SWAP 0/0MB (cached 0MB) cpu [14%,43%,11%,12%]@1912 EMC 24%@1600 AVP 82%@13 VDE 0 GR3D 52%@998 EDP limit 1912
RAM 748/3854MB (lfb 676x4MB) SWAP 0/0MB (cached 0MB) cpu [25%,40%,9%,6%]@1912 EMC 19%@1600 AVP 70%@12 VDE 0 GR3D 51%@921 EDP limit 1912
RAM 748/3854MB (lfb 676x4MB) SWAP 0/0MB (cached 0MB) cpu [71%,26%,32%,20%]@1912 EMC 23%@1600 AVP 41%@12 VDE 0 GR3D 83%@921 EDP limit 1912
RAM 748/3854MB (lfb 676x4MB) SWAP 0/0MB (cached 0MB) cpu [96%,27%,38%,30%]@1912 EMC 26%@1600 AVP 13%@12 VDE 0 GR3D 51%@921 EDP limit 1912
Should I change something in the
get_gpu_stats(ts, stats.at(13));
As it is mentioned in the thread
You may check
opened 01:53PM - 15 Nov 17 UTC
```
$ sudo ./gtop
terminate called after throwing an instance of 'std::out_of⦠_range'
what(): vector::_M_range_check: __n (which is 1) >= this->size() (which is 1)
Aborted (core dumped)
```
I built the code with `$ g++ -std=c++14 gtop.cc utils.cc display.cc -o gtop -pedantic -Wall -Wextra -lncurses -lpthread -g`
and gdb reveals:
```
(gdb) bt
#0 0x0000007fb7f0e30c in __pthread_cond_wait (cond=0x423718 <cv>, mutex=0x4236e8 <m>) at pthread_cond_wait.c:186
#1 0x0000007fb7e24e10 in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /usr/lib/aarch64-linux-gnu/libstdc++.so.6
#2 0x00000000004048dc in std::condition_variable::wait<main()::<lambda()> >(std::unique_lock<std::mutex> &, <lambda()>) (this=0x423718 <cv>, __lock=..., __p=...) at /usr/include/c++/5/condition_variable:98
#3 0x00000000004039d8 in main () at gtop.cc:45
```
This is on a Nvidia Jetson TX2 with ubuntu 16.04.03 and kernel 4.4.38
Thanks!
I got this error message when āsudo ./gtopā
terminate called after throwing an instance of āstd::invalid_argumentā
what(): stoi
Aborted (core dumped)
Any idea about this?
As written above, you may check [url]https://github.com/martinkersner/gtop/issues/1[/url] . There is a gtop version that should work R28.1 on TX2 and another one for TX2/R28.2 and TX1/R28.1.
Everything works for me with gtop.cc.txt and STATS_BUFFER_SIZE = 1024 on Jetson TX2/R28.2.
Hi,
Could anyone please tell me how to get GUI of TX2 CPU stats
I am now using the TX2 with 3.2 Jetpack, could you please tell me how to use this gtop.
This is my output from tegrastats
RAM 2605/7846MB (lfb 691x4MB) CPU [0%@1267 ,0%@345 ,0%@345 ,0%@1267 ,0%@1267 ,0%@1266 ] EMC_FREQ 3%@665 GR3D_FREQ 4%@140 APE 150 MTS fg 4% bg 17% BCPU@40C MCPU@40C GPU@39C PLL@40C Tboard@37C Tdiode@38C PMIC@100C thermal@39.7C VDD_IN 2255/2255 VDD_CPU 229/229 VDD_GPU 152/152 VDD_SOC 458/458 VDD_WIFI 0/0 VDD_DDR 347/347
I am getting some error when I use the $sudo ./gtop
Thanks!
Not sure what errors you seeā¦You should post these.
In short, get the gtop sources from the above github.
Edit source file gtop.hh for changing to
const int STATS_BUFFER_SIZE = 1024;
Then replace file gtop.cc by the file from https://github.com/martinkersner/gtop/files/1737522/gtop.cc.txt (you would rename it removing the .txt extension).
Then build and try:
cd <where-you-download>/gtop-master
make
sudo ./gtop
This should work for recent L4T versions (R28.x).