Jetson TX2/Xavier

jetson上想看CPU/GPU利用率,怎么搞?

2019-04-30  本文已影响61人  phoenixmy

Jetson系列产品不像N家的其它桌面产品,可以用nvidia-smi去看,但是N记还是给了另一条解决方案:
./tegrastats

这个可执行程序是刷机默认安装好的,就在home/nvidia底下;

关于这个命令的细节说明,可以参考官方文档:
https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%2520Linux%2520Driver%2520Package%2520Development%2520Guide%2FAppendixTegraStats.html

简单说:

  1. RAM 696/1892MB(lfb 61x4MB) : current / total MB, lfb NxXMB, X is the largest free block. N is the number of free blocks of this size. (it's physical memory. For virtual memory, allocations can be larger.)
  2. cpu [0%,off,off,off]@1224 : [core1%, core2%, core3%, core4%]@MHz, which core frequency is when multi-core running ?
  3. EMC 22%@102 : external memory controller, bus%@MHz
  4. AVP 0%@204 : audio/video processor, processor%@MHz
  5. VDE 120 : video decoder engine, 120MHz
  6. GR3D : GPU, processor%@MHz
  7. EDP stands for Electrical Design Power.

热心网友还准备了可视化的版本,可参考:
https://github.com/FindHao/tx-utils
https://github.com/jetsonhacks/gpuGraphTX
https://github.com/martinkersner/gtop

个人推荐最后一个

[补充一点]:
目前github上的代码适配tx1、tx2,但是没法直接用于xavier,需要的同学可以参考该git库的最后一次提交:
https://github.com/martinkersner/gtop/pull/7
里面有对Xavier的支持,相当不错;

image.png
上一篇下一篇

猜你喜欢

热点阅读