November-19th-2019, 12:28 PM
(This post was last modified: November-21st-2019, 01:03 PM by Armin@netPI.)
Today I began experimenting with Raspbian OS on my netPI. Of interest was the 64Bit version specifically.
I programmed my micro SD card with the latest version Raspian OS, 2019-09-26: https://downloads.raspberrypi.org/raspbian_lite_latest first.
The only thing I did was then to insert the term
in the config.txt file, pushed the card into the netPI (#REV2 with unseald SD card slot) SD card slot and booted netPI. A quick check on the console using
showed "aarch64" ARM64 instruction set is active. WOW! That was easy.
After that I installed Docker and the Docker web UI portainer.io with
Accessing the web UI at <netPI IP address>:9000 let me deal with Docker quite easily like I am use to on original netPI Hilscher OS.
I started two debian containers from Docker Hub. One 32Bit and one 64bit version.
In both containers I installed the tool sysbench (version https://github.com/akopytov/sysbench/arc....17.tar.gz to be exact) and check the CPU speed with
Here are the results:
32Bit
64Bit
The counted events in 64Bit mode are 12.7 times higher. In turn this means the sysbench code sequence is executing around 12 times faster. 2nd WOW!! That is fast.
Of course I cannot exclude that this performance boost is somehow related to the sysbench tool itself that no relation to real applications. And also please keep in mind that sysbench was just calculating prime number during the tests. In no way this test represents and overall performance test that would cover also a memory benchmark and a disk benchmark (SD card). I found another thread that sets 64Bit and 32bit examinations in relation. The author came to 15 to 30% performance boost:https://www.cnx-software.com/2016/03/01/64-bit-arm-aarch64-instructions-boost-performance-by-15-to-30-compared-to-32-bit-arm-aarch32-instructions/
I programmed my micro SD card with the latest version Raspian OS, 2019-09-26: https://downloads.raspberrypi.org/raspbian_lite_latest first.
The only thing I did was then to insert the term
Code:
arm_64bit=1
in the config.txt file, pushed the card into the netPI (#REV2 with unseald SD card slot) SD card slot and booted netPI. A quick check on the console using
Code:
uname -a
showed "aarch64" ARM64 instruction set is active. WOW! That was easy.
After that I installed Docker and the Docker web UI portainer.io with
Code:
apt update
curl -sSL https://get.docker.com | sh
docker volume create portainer_data
docker run -d -p 9000:9000 -p 8000:8000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
Accessing the web UI at <netPI IP address>:9000 let me deal with Docker quite easily like I am use to on original netPI Hilscher OS.
I started two debian containers from Docker Hub. One 32Bit and one 64bit version.
In both containers I installed the tool sysbench (version https://github.com/akopytov/sysbench/arc....17.tar.gz to be exact) and check the CPU speed with
Code:
sysbench --test=cpu --cpu-max-prime=20000 --num-threads=4 run
Here are the results:
32Bit
Code:
CPU speed:
events per second: 74.27
General statistics:
total time: 10.0493s
total number of events: 747
Latency (ms):
min: 53.10
avg: 53.77
max: 75.04
95th percentile: 53.85
sum: 40162.56
Threads fairness:
events (avg/stddev): 186.7500/0.43
execution time (avg/stddev): 10.0406/0.01
64Bit
Code:
CPU speed:
events per second: 937.13
General statistics:
total time: 10.0037s
total number of events: 9381
Latency (ms):
min: 4.22
avg: 4.26
max: 9.81
95th percentile: 4.25
sum: 39993.05
Threads fairness:
events (avg/stddev): 2345.2500/0.83
execution time (avg/stddev): 9.9983/0.00
The counted events in 64Bit mode are 12.7 times higher. In turn this means the sysbench code sequence is executing around 12 times faster. 2nd WOW!! That is fast.
Of course I cannot exclude that this performance boost is somehow related to the sysbench tool itself that no relation to real applications. And also please keep in mind that sysbench was just calculating prime number during the tests. In no way this test represents and overall performance test that would cover also a memory benchmark and a disk benchmark (SD card). I found another thread that sets 64Bit and 32bit examinations in relation. The author came to 15 to 30% performance boost:https://www.cnx-software.com/2016/03/01/64-bit-arm-aarch64-instructions-boost-performance-by-15-to-30-compared-to-32-bit-arm-aarch32-instructions/
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)