[Orin Nx] 如何跑满GPU和CPU,观察温度和散热性能?

news/2024/10/7 20:11:14 标签: Orin Nx, GPU, jtop, jetson-gpu-burn

1、环境说明

硬件: Nvidia Orin NX 16GB

软件:Jetson Linux R35.3.1

2、工具安装部署

GPU的压力测试主要使用工具:

https://github.com/anseeto/jetson-gpu-burn

CPU的压力测试主要使用工具 stress

注意安装 jetson-gpu-burn需要在 /etc/apt/sources.list 添加如下源:

root@w:~# cat /etc/apt/sources.list.d/nvidia-l4t-apt-source.list 
# SPDX-FileCopyrightText: Copyright (c) 2019-2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NvidiaProprietary
#
# NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
# property and proprietary rights in and to this material, related
# documentation and any modifications thereto. Any use, reproduction,
# disclosure or distribution of this material and related documentation
# without an express license agreement from NVIDIA CORPORATION or
# its affiliates is strictly prohibited.

deb https://repo.download.nvidia.com/jetson/common r35.3 main
deb https://repo.download.nvidia.com/jetson/t234 r35.3 main

简单点操作:

 cat /etc/apt/sources.list.d/nvidia-l4t-apt-source.list >> /etc/apt/sources.list

 然后执行如下安装命令进行安装

sudo apt-get update
sudo apt-get install cuda-toolkit-11-4
sudo apt-get install stress
sudo apt-get -y install pip
sudo apt-get -y install python-pip
sudo -H pip install -U jetson-stats

在设备上下载jetson-gpu-burn 源码进行编译

git clone https://github.com/anseeto/jetson-gpu-burn.git

cd jetson-gpu-burn

make

 编译成功会生成一个 gpu_burn 的二进制可执行程序,执行该程序即可跑满gpu.

3、观测不同电源模式进行CPU、GPU性能和温度

跑满CPU:8个核

root@w:~# stress -c 8 &
[1] 3302
root@w:~# stress: info: [3302] dispatching hogs: 8 cpu, 0 io, 0 vm, 0 hdd

跑满GPU

root@w:~/jetson-gpu-burn# while true;do ./gpu_burn ;done
Run length not specified in the command line.  Burning for 10 secs

 执行jtop命令观察

 可以看到我们设备的电源模式是最大功率MAXN的模式,GPU 918MHz和CPU 2.0GHz 8个核都已经全负荷工作,此时实时的功率24.8W左右,CPU和GPU的温度可以实时看到。

如果设备的散热性能不好的话,CPU和GPU的温度会很高,可能会影响性能表现,比如GPU和CPU会在高温时出现降频。

下面是Orin Nx模块的最大性能和工作温度范围:

 如果要Orin Nx达到最大性能,设备的散热问题做好设计是不可忽略的。

4、trouble-shot:

root@w:~# jtop 

Traceback (most recent call last):
  File "/usr/local/bin/jtop", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/jtop/__main__.py", line 159, in main
    curses.wrapper(JTOPGUI, jetson, pages, init_page=args.page,
  File "/usr/lib/python3.8/curses/__init__.py", line 105, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/local/lib/python3.8/dist-packages/jtop/gui/jtopgui.py", line 79, in __init__
    NColors(color_filter)
  File "/usr/local/lib/python3.8/dist-packages/jtop/gui/lib/colors.py", line 43, in __init__
    curses.init_pair(NColors.RED, curses.COLOR_RED if not color_filter else curses.COLOR_BLUE, curses.COLOR_BLACK)
_curses.error: init_pair() returned ERR

解决办法:

        export TERM='xterm-256color'

root@w:~# jtop 
The jtop.service is not active. Please run:
sudo systemctl restart jtop.service

解决方法:

systemctl restart jtop.service 


http://www.niftyadmin.cn/n/471351.html

相关文章

C++的access()函数

文章目录 函数功能头文件函数原型参数说明示例 函数功能 确定文件是否存在或者判断读写执行权限&#xff1b;确定文件夹是否存在即&#xff0c;检查某个文件的存取方式&#xff0c;比如说是只读方式、只写方式等。如果指定的存取方式有效&#xff0c;则函数返回0&#xff0c;否…

【Java】JVM学习(二)

JVM的内存区域 运行时数据区域 运行时数据区的定义&#xff1a; Java虚拟机在执行Java程序的过程中会把它所管理的内存划分为若干个不同的数据区域 Java 引以为豪的就是它的自动内存管理机制。相比于 C的手动内存管理、复杂难以理解的指针等&#xff0c;Java 程序写起来就方…

layui框架学习(28:穿梭框模块)

Layui模块中的穿梭框模块transfer主要支撑穿梭框组件的显示、交互等操作。所谓穿梭框是指左右各有一个复选框列表&#xff0c;可以将左侧选中的项目移动到右边&#xff0c;后者将右侧的选中项移回左边的控件&#xff0c;其样式类似下图所示&#xff08;参考文献5-6&#xff09;…

VScode连接远程服务器

VScode连接远程服务器 文章目录 VScode连接远程服务器下载扩展通过扩展连接服务器在输入框中输入usernameip进行连接通过已保存的配置信息进行连接 连接成功之后访问服务器文件访问文件 下载扩展 下载以下三个扩展 Remote-SSH Remote - SSH: Editing Configuration Files R…

2023年全球与中国软磁粉市场现状及未来发展趋势

根据QYR&#xff08;恒州博智&#xff09;的统计及预测&#xff0c;2022年全球软磁粉市场销售额达到了 亿美元&#xff0c;预计2029年将达到 亿美元&#xff0c;年复合增长率&#xff08;CAGR&#xff09;为 %&#xff08;2023-2029&#xff09;。地区层面来看&#xff0c;中国…

d3dcompiler_47.dll丢失怎么解决(解决方案)

d3dcompiler_47.dll在Windows操作系统和 DirectX应用程序中使用此 DLL 文件,包括游戏&#xff0c;图形处理软件&#xff0c;CAD软件和其他3D应用程序中。如果电脑提示“由于找不到d3dcompiler_47.dll&#xff0c;无法继续执行此代码”&#xff0c;“d3dcompiler_47.dll缺失”&a…

Insertion插入排序

原谅我接着偷懒&#xff0c;是真的没有什么写的内容了啊&#xff0c;好怀疑他们那些大佬是怎么那么多的文章和技术分享的&#xff0c;自闭中ing 最好情况的时间复杂度是 O(n)&#xff0c;最坏情况的时间复杂度是 O(n2)&#xff0c;然而时间复杂度这个指标看的是最坏的情况&…

软件分享:Cpu-Z电脑CPU检测工具介绍(附下载)

目录 一、软件介绍 二、功能介绍 三、使用方法 1、通过 CPU-Z 查看 CPU 信息 2、缓存信息 3、主板信息 4、内存信息 5、内存规格信息&#xff08;SPD&#xff09; CPU是计算机中负责读取指令&#xff0c;对指令译码&#xff0c;并执行指令的核心部件。CPU自产生以来&am…