The switched ports are seen as one eth1 interface from within alarm. Switch is setup and ready to work out of the box: you can read about it here:
https://lwn.net/Articles/302333/http://free-electrons.com/kerneldoc/lat ... sa/dsa.txtSome performance tests are below:
iperf:
$this->bbcode_second_pass_code('', '[root@ArchDesktop oleg]# iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[ 4] local 192.168.2.10 port 5001 connected with 192.168.2.108 port 41384
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-10.0 sec 1.10 GBytes 941 Mbits/sec
^C[root@ArchDesktop oleg]# iperf -c clearfog
------------------------------------------------------------
Client connecting to clearfog, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.2.10 port 57350 connected with 192.168.2.108 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 1.10 GBytes 941 Mbits/sec
')
Unixbench results (
something to compare to)
Don't look at the final result as storage can be slow or fast and we don't care about storage performance here:
$this->bbcode_second_pass_code('', '[root@clearfog ~]# ubench -c 2
# # # # # # # ##### ###### # # #### # #
# # ## # # # # # # # ## # # # # #
# # # # # # ## ##### ##### # # # # ######
# # # # # # ## # # # # # # # # #
# # # ## # # # # # # # ## # # # #
#### # # # # # ##### ###### # # #### # #
Version 5.1.3 Based on the Byte Magazine Unix Benchmark
Multi-CPU version Version 5 revisions by Ian Smith,
Sunnyvale, CA, USA
January 13, 2011 johantheghost at yahoo period com
2 x Dhrystone 2 using register variables 1 2 3 4 5 6 7 8 9 10
2 x Double-Precision Whetstone 1 2 3 4 5 6 7 8 9 10
2 x Execl Throughput 1 2 3
2 x File Copy 1024 bufsize 2000 maxblocks 1 2 3
2 x File Copy 256 bufsize 500 maxblocks 1 2 3
2 x File Copy 4096 bufsize 8000 maxblocks 1 2 3
2 x Pipe Throughput 1 2 3 4 5 6 7 8 9 10
2 x Pipe-based Context Switching 1 2 3 4 5 6 7 8 9 10
2 x Process Creation 1 2 3
2 x System Call Overhead 1 2 3 4 5 6 7 8 9 10
2 x Shell Scripts (1 concurrent) 1 2 3
2 x Shell Scripts (8 concurrent) 1 2 3
========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)
System: clearfog: GNU/Linux
OS: GNU/Linux -- 4.4.16-1-ARCH -- #1 SMP Wed Aug 10 01:57:45 MDT 2016
Machine: armv7l (unknown)
Language: en_US.utf8 (charmap="ANSI_X3.4-1968", collate="ANSI_X3.4-1968")
CPU 0: ARMv7 Processor rev 1 (v7l) (0.0 bogomips)
CPU 1: ARMv7 Processor rev 1 (v7l) (0.0 bogomips)
01:50:10 up 1 day, 1:06, 1 user, load average: 0.01, 0.02, 0.00; runlevel unknown
------------------------------------------------------------------------
Benchmark Run: Fri Aug 12 2016 01:50:10 - 02:18:18
2 CPUs in system; running 2 parallel copies of tests
Dhrystone 2 using register variables 17329263.4 lps (10.0 s, 7 samples)
Double-Precision Whetstone 2584.7 MWIPS (10.0 s, 7 samples)
Execl Throughput 2076.1 lps (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 399714.5 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 121035.9 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 870796.4 KBps (30.0 s, 2 samples)
Pipe Throughput 1016239.6 lps (10.0 s, 7 samples)
Pipe-based Context Switching 159843.1 lps (10.0 s, 7 samples)
Process Creation 4192.6 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 3011.6 lpm (60.1 s, 2 samples)
Shell Scripts (8 concurrent) 406.0 lpm (60.1 s, 2 samples)
System Call Overhead 1757444.3 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 17329263.4 1484.9
Double-Precision Whetstone 55.0 2584.7 469.9
Execl Throughput 43.0 2076.1 482.8
File Copy 1024 bufsize 2000 maxblocks 3960.0 399714.5 1009.4
File Copy 256 bufsize 500 maxblocks 1655.0 121035.9 731.3
File Copy 4096 bufsize 8000 maxblocks 5800.0 870796.4 1501.4
Pipe Throughput 12440.0 1016239.6 816.9
Pipe-based Context Switching 4000.0 159843.1 399.6
Process Creation 126.0 4192.6 332.7
Shell Scripts (1 concurrent) 42.4 3011.6 710.3
Shell Scripts (8 concurrent) 6.0 406.0 676.7
System Call Overhead 15000.0 1757444.3 1171.6
========
System Benchmarks Index Score 729.8
')
cpuinfo:
$this->bbcode_second_pass_code('', '[root@clearfog ~]# cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 1 (v7l)
BogoMIPS : 50.00
Features : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x4
CPU part : 0xc09
CPU revision : 1
processor : 1
model name : ARMv7 Processor rev 1 (v7l)
BogoMIPS : 50.00
Features : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x4
CPU part : 0xc09
CPU revision : 1
Hardware : Marvell Armada 380/385 (Device Tree)
Revision : 0000
Serial : 0000000000000000
')
It also has a h/w crypto engine which is exposed via cryptodev and can be used with openssl-cryptodev package