正在阅读:

Jetson nano上手体验

169

一. 目的

总结新入手的jetson nano开发板, 主要和树莓派做一个对比.

二. 总结

1.  板子和配件购买

购买来源: 淘宝

购买价格:

主板带风扇,摄像头,电源,数据线,串口 1058RMB

10寸LCD高清HDMI触摸电容屏 368RMB

伸缩网线 1.5m 8RMB

jetson nano专用无限intel AC8265 m.2网卡,支持双模蓝牙WIFI 70RMB

卧槽,回头看看这个结果不菲啊!

2.  配置WIFI模块

官方文档:

Jetson Nano + Intel Wifi and Bluetooth

 

硬件装好后,在终端窗口查看驱动

dmesg | grep iwlwifi

3.  安装系统

安装系统烧录SD卡参考文章:

https://blog.csdn.net/alphonse2017/article/details/89493645

安装开机后的软件资源

Getting started with the NVIDIA Jetson Nano

4.  Camera

gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM),width=3820, height=2464,

framerate=21/1, format=NV12' ! nvvidconv flip-method=0 ! 'video/x-raw,width=960,

height=616' ! nvvidconv ! nvegltransform ! nveglglessink -e

 

g++ -std=c++11 -Wall -I/usr/lib/opencv simple_camera.cpp -L/usr/lib -lopencv_core

-lopencv_highgui -lopencv_videoio -o simple_camera

 

5.  性能测试

CPU、内存、IO、网络的压力测试

ubuntu系统: apt install sysbench

cpu性能:

sysbench cpu --cpu-max-prime=20000 --threads=4 run

###############################################

jetson@luotang:~$ sysbench cpu --cpu-max-prime=20000 --threads=4 run

sysbench 1.0.11 (using system LuaJIT 2.1.0-beta3)

Running the test with following options:

Number of threads: 4

Initializing random number generator from current time

Prime numbers limit: 20000

Initializing worker threads...

Threads started!

CPU speed:

events per second: 1795.35

General statistics:

total time: 10.0020s

total number of events: 17965

Latency (ms):

min: 2.21

avg: 2.23

max: 10.06

95th percentile: 2.26

sum: 39994.16

Threads fairness:

events (avg/stddev): 4491.2500/11.97

execution time (avg/stddev): 9.9985/0.00

###############################################

磁盘io性能:

写入测试数据文件测试:

sysbench --test=fileio --threads=4 --file-total-size=3G --file-test-mode=rndrw prepare

结果: 3g文件,分开128个小文件, 平均一个1.08s, 实际写入速度22.06 m/s

sysbench --test=fileio --threads=4 --file-total-size=3G --file-test-mode=rndrw run

随机读写测试结果:  读宽带:3.28M/s,写宽带:2.18M/s

注意:测试完清理删除3g测试文件:

sysbench --test=fileio --threads=4 --file-total-size=3G --file-test-mode=rndrw cleanup

内存分配及传输速度:

测试8K顺序分配:

sysbench --threads=4 --events=10000 --test=memory --memory-block-size=8K --memory-total-size=10G --memory-access-mode=seq run

测试结果: 10240.00 MiB transferred (16659.98 MiB/sec)

内存分配及传输速度:

测试8K随机分配。

sysbench --threads=4 --events=10000 --test=memory --memory-block-size=8K --memory-total-size=10G --memory-access-mode=rnd run

测试结果: 10240.00 MiB transferred (1061.40 MiB/sec)

 

https://blog.csdn.net/ugfffj/article/details/84001620

https://blog.csdn.net/sunny05296/article/details/58192919

https://blog.csdn.net/u012679583/article/details/82349364

https://blog.csdn.net/July_lulu/article/details/78833201

=

 

留下脚印,证明你来过。

*

*

流汗坏笑撇嘴大兵流泪发呆抠鼻吓到偷笑得意呲牙亲亲疑问调皮可爱白眼难过愤怒惊讶鼓掌
关闭