NanoPi Neo 优化后测试

/ 0评 / 0

做了个优化镜像,基于debootstrap + 精简内核 + 精简其他系统服务引导各种,开机只吃1M RAM,专门为我做服务器需求砍掉了很多东西.测试的是256M版本的Nano Pi Neo.
对比平台树莓派可以参考:https://www.element14.com/community/community/raspberry-pi/blog/2016/02/29/the-most-comprehensive-raspberry-pi-comparison-benchmark-ever
使用的命令也是一样的拉,这个配置是A7,但是只能跑912MHz,而且可能因为各种便宜可能性能就差不少了,应该是高于树莓派B+,Zero等等,但是可能低于Pi 2,一定低于Pi 3的.毕竟才49元啊.
镜像可以发邮件到我邮箱问我要,我就懒得发了.admin#lijingquan.net 因为暂时不想上传.免得各种挨骂(毕竟没显示各种没外设,只是想为了做服务器.)
单线程sysbench测试,611秒完成,轻微领先于Pi 2,弱于Pi 3.

 
sysbench --num-threads=1 --test=cpu --cpu-max-prime=20000 --validate run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 1
Additional request validation enabled.
 
Doing CPU performance benchmark
Threads started!
Done.
Maximum prime number checked in CPU test: 20000
 
Test execution summary:
total time: 611.0463s
total number of events: 10000
total time taken by event execution: 611.0361
per-request statistics:
min: 61.08ms
avg: 61.10ms
max: 66.58ms
approx. 95 percentile: 61.12ms
Threads fairness:
events (avg/stddev): 10000.0000/0.00
execution time (avg/stddev): 611.0361/0.00

开4个线程试试,依然优于Pi 2B呢.

 
sysbench --num-threads=4 --test=cpu --cpu-max-prime=20000 --validate run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 4
Additional request validation enabled.
 
Doing CPU performance benchmark
Threads started!
Done.
Maximum prime number checked in CPU test: 20000
 
Test execution summary:
total time: 153.1281s
total number of events: 10000
total time taken by event execution: 612.4325
per-request statistics:
min: 61.07ms
avg: 61.24ms
max: 122.04ms
approx. 95 percentile: 61.19ms
Threads fairness:
events (avg/stddev): 2500.0000/3.67
execution time (avg/stddev): 153.1081/0.02

因为只有256M,所以内存测试我只能测128M了.同时因为没有nbench软件,所以跳过下.

 
sudo time memtester 128M 1
memtester version 4.3.0 (32-bit)
Copyright (C) 2001-2012 Charles Cazabon.
Licensed under the GNU General Public License version 2 (only).
pagesize is 4096
pagesizemask is 0xfffff000
want 128MB (134217728 bytes)
got 128MB (134217728 bytes), trying mlock ...locked.
Loop 1/1:
Stuck Address : ok
Random Value : ok
Compare XOR : ok
Compare SUB : ok
Compare MUL : ok
Compare DIV : ok
Compare OR : ok
Compare AND : ok
Sequential Increment: ok
Solid Bits : ok
Block Sequential : ok
Checkerboard : ok
Bit Spread : ok
Bit Flip : ok
Walking Ones : ok
Walking Zeroes : ok
8-bit Writes : ok
16-bit Writes : ok
Done.
841.07user 1.17system 14:03.12elapsed 99%CPU (0avgtext+0avgdata 131508maxresident)k
24inputs+0outputs (0major+32926minor)pagefaults 0swaps

总共用了14分钟,两倍后是28分钟,比Pi 2慢一点点,内存容量就少不少了.接下来我会继续做稳定性的压力测试,目前主频912MHz,应该挺稳定的.总体来说性能轻微优于Pi 2,价格够低.内存偏少是痛处.

stress -c 4 -m 2 --vm-bytes 64M -d 2 --hdd-bytes 64M

实际上,这个芯片最高1.5GHz,但是CPUX电压最高1.3V限制了他在1.2GHz,又因为1.2GHz下很容易触发105度的温度墙,所以实际上限制就是912MHz,960MHz依然会触发温度墙.如果要长期高主频,912MHz是选择.DRAM方便,432MHz是DDR颗粒限制...

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注