OrangePi Zero卡片电脑评测

OrangePi是什么? 类似RaspberryPi的国产卡片电脑。 OrangePi Zero相当于RaspberryPi Zero W。其实本来想入手RaspberryPi Zero W的,但 $10 的东西在淘宝被炒到 ¥280, 只能呵呵了。
随后发现国产的OrangePi zero,价格¥59 ! 相比RaspberryPi zero w,缺少摄像头模块接口蓝牙模块,多出RJ45接口标准USB接口,4核CPU而RPI-zero w是1核,果然是符合国情的作品,遂入之 !

下面是评测

内存

1
2
3
4
5
root@orangepizero:~# free -m
total used free shared buffers cached
Mem: 494 379 115 5 3 332
-/+ buffers/cache: 44 450
Swap: 0 0 0

htop

uname

1
2
root@orangepizero:~# uname -a
Linux orangepizero 3.4.113-sun8i #10 SMP PREEMPT Thu Feb 23 19:55:00 CET 2017 armv7l GNU/Linux

操作系统

1
2
root@orangepizero:~# cat /etc/issue
Debian GNU/Linux 8 \n \l

操作系统是 armbian https://www.armbian.com

软件仓库

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
root@orangepizero:~# cat /etc/apt/sources.list
deb http://httpredir.debian.org/debian jessie main contrib non-free
#deb-src http://httpredir.debian.org/debian jessie main contrib non-free
deb http://httpredir.debian.org/debian jessie-updates main contrib non-free
#deb-src http://httpredir.debian.org/debian jessie-updates main contrib non-free
deb http://httpredir.debian.org/debian jessie-backports main contrib non-free
#deb-src http://httpredir.debian.org/debian jessie-backports main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
#deb-src http://security.debian.org/ jessie/updates main contrib non-free
root@orangepizero:~# cat /etc/apt/sources.list.d/armbian.list
deb http://apt.armbian.com jessie main utils jessie-desktop

磁盘占用

1
2
3
4
5
6
7
8
9
10
root@orangepizero:~# df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/mmcblk0p1 14665 3933 10573 28% /
udev 10 0 10 0% /dev
tmpfs 99 5 95 5% /run
tmpfs 248 0 248 0% /dev/shm
tmpfs 5 1 5 1% /run/lock
tmpfs 248 0 248 0% /sys/fs/cgroup
tmpfs 248 0 248 0% /tmp
log2ram 50 1 50 2% /var/log

磁盘IO性能(tf卡)

1
2
3
4
root@orangepizero:~# dd if=/dev/zero of=/zerofile conv=fsync bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 107.43 s, 10.0 MB/s

lscpu

1
2
3
4
5
6
7
8
9
10
11
root@orangepizero:~# lscpu
Architecture: armv7l
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-2
Off-line CPU(s) list: 3
Thread(s) per core: 1
Core(s) per socket: 3
Socket(s): 1
CPU max MHz: 1008.0000
CPU min MHz: 240.0000

sysbench cpu性能

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
root@orangepizero:~# sysbench --test=cpu --cpu-max-prime=2000 --num-threads=1 run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 1
Doing CPU performance benchmark
Threads started!
Done.
Maximum prime number checked in CPU test: 2000
Test execution summary:
total time: 62.2364s
total number of events: 10000
total time taken by event execution: 62.2122
per-request statistics:
min: 6.17ms
avg: 6.22ms
max: 14.81ms
approx. 95 percentile: 6.32ms
Threads fairness:
events (avg/stddev): 10000.0000/0.00
execution time (avg/stddev): 62.2122/0.00

ifconfig

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
root@orangepizero:~# ifconfig
eth0 Link encap:Ethernet HWaddr 9a:75:95:6a:92:80
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:114
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1104 (1.0 KiB) TX bytes:1104 (1.0 KiB)
wlan0 Link encap:Ethernet HWaddr dc:44:6d:f3:e5:bd
inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2261 errors:0 dropped:0 overruns:0 frame:0
TX packets:1647 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:207135 (202.2 KiB) TX bytes:334226 (326.3 KiB)

ping

1
2
3
4
5
6
7
8
9
10
11
12
13
14
root@orangepizero:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=8.06 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=46.5 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=44.4 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=39.3 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=58.0 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=55.7 ms
64 bytes from 192.168.1.1: icmp_seq=7 ttl=64 time=53.4 ms
64 bytes from 192.168.1.1: icmp_seq=8 ttl=64 time=51.6 ms
^C
--- 192.168.1.1 ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7011ms
rtt min/avg/max/mdev = 8.061/44.673/58.054/15.011 ms

功耗

功耗5V/300mA-600mA, 平均在400mA, 比raspberrypi zero w高出不少, 详见此处

总体评价

  • 考虑到 ¥59的白菜价,orange pi zero的各项性能指标的确已经达到极致了
  • 用来跑个人服务: tinympi4j, sshd, php, git, sqlite, ss, 已是绰绰有余
  • 有gpio接口, 方便接入单片机的世界
  • wifi似乎不稳定, 距离路由器不足2米, 有时候ping达到300-400ms
  • 偶尔有卡死的状况,原因不明,也许应该上watchdog ?