Jetson 查看CPU、内存、GPU使用情况

官方新推出jtop工具,专门用来查看jetson的CPU、GPU等信息,使用方法也很简单

安装方法:

sudo -H pip install jetson-stats

使用方法,直接在命令行输入:

sudo jtop

就会有显示输出:

读取数据:

from jtop import jtop
import time

if __name__ == "__main__":

    print("Simple Tegrastats reader")

    with jtop() as jetson:
        while True:
            # Read tegra stats
            print(jetson.stats)
            # Status disk
            print(jetson.disk)
            # Status fans
            if hasattr(jetson, 'fan'):
                print(jetson.fan)
            # uptime
            print(jetson.uptime)
            # nvpmodel
            print(jetson.nvpmodel)
            # local interfaces
            print(jetson.local_interfaces)
            # boards
            print(jetson.board)
            # Sleep before send new stat
            time.sleep(1)

 

其他用途(更多看官网):

Controls

To control the your NVIDIA Jetson are available this keyboard commands:

In page 3 MEM:

  • c Clear cache
  • s Enable/Disable extra swap
  • + and - Increase and decrease swap size

In page 4 CTRL:

  • a Start/Stop jetson_clocks service (Note: jetson_clocks start only after 60s from up time)
  • e Enable/Disable jetson_clocks on board boot
  • + and - Increase and decrease the NVPmodel
  • f Manual/jetson_clocks mode for your fan
  • p and m Increase and decrease the Fan speed

更多请看官网

猜你喜欢

转载自blog.csdn.net/qq_19707521/article/details/106191572