Note that openssl version is much older but it is bundled with Debian Bullseye.
$ openssl speed aes-128-cbc
...
version: 3.0.0-alpha16
built on: built on: Thu May 6 19:54:38 2021 UTC
...
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
aes-128-cbc 84716.70k 269243.61k 584986.37k 830015.83k 944873.47k 953417.73k
$ openssl speed -evp aes-128-cbc
...
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
AES-128-CBC 95904.58k 297023.53k 611697.15k 855083.69k 966412.97k 956033.71k
Your Rock64 is significantly faster than my RPi4B. I wonder how such a big difference appears.
From: Diederik de Haas <didi.debian@cknow.org>
Date: Thu, 03 Jun 2021 19:34:19 +0200,Thu, 03 Jun 2021 19:34:19 +0200
$ openssl speed aes-128-cbc
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
aes-128-cbc 84716.70k 269243.61k 584986.37k 830015.83k 944873.47k 953417.73k
$ openssl speed -evp aes-128-cbc
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
AES-128-CBC 95904.58k 297023.53k 611697.15k 855083.69k 966412.97k 956033.71k
On my RPi4B I have:
# openssl speed aes-128-cbc
OpenSSL 1.1.1k 25 Mar 2021
built on: Thu Mar 25 20:49:34 2021 UTC
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
aes-128 cbc 73719.58k 78001.25k 79918.46k 79520.45k 78646.02k 79442.42k
# openssl speed -evp aes-128-cbc
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
aes-128-cbc 37975.41k 40705.82k 41937.97k 42066.56k 42265.07k 42382.97k
Note that openssl version is much older
Kernel version is upstream 5.10.39 with almost the same kernel
compilation options with Debian RT kernel.
CPU frequency is fixed to 1.5GHz by "cpupower frequency-set -g performance".
Best regards, Ryutaroh
Note that openssl version is much older but it is bundled with Debian Bullseye.I installed openssl ver. 3 from Debian experimental,
and observed much slower speed than ver. 1.1.1 in Debian Bullseye,
on the same hardware and kernel, as below. Interesting...
I wonder if I should file a bug to Debian BTS...
https://openwrt.org/docs/techref/hardware/cryptographic.hardware.accelerators#finding_out_what_s_available_in_the_kernel
is the only page I found wrt /proc/crypto and I do indeed have
several 'skcipher' and 'shash' nodes with prio >= 300.
That article also speaks about /dev/crypto, but I don't have that.
So there's a reasonable chance I indeed do have HW accelerated crypto,
but it doesn't seem to be near '10x' speed improvements.
Thermal issues may also play a role. I noticed that if I did a test
after letting the device idle for a while, so it can cool off (?), did result in higher scores.
From: Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>
Note that openssl version is much older ... with Debian Bullseye.I installed openssl ver. 3 from Debian experimental,
and observed much slower speed than ver. 1.1.1 in Debian Bullseye,
on the same hardware and kernel, as below. Interesting...
# openssl speed aes-128-cbc
OpenSSL 1.1.1k 25 Mar 2021
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192bytes 16384 bytes
aes-128 cbc 73719.58k 78001.25k 79918.46k 79520.45k 78646.02k 79442.42k
for easy comparison, I'm adding *your* 3.0.0-alpha16 scores directly below aes-128-cbc 37858.56k 40995.79k 41736.44k 42339.69k 41984.00k 42350.33k
# openssl speed -evp aes-128-cbc
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192bytes 16384 bytes
aes-128-cbc 37975.41k 40705.82k 41937.97k 42066.56k 42265.07k 42382.97k
for easy comparison, I'm adding *your* 3.0.0-alpha16 scores directly below AES-128-CBC 38057.99k 41038.28k 41973.03k 41930.50k 42233.35k 42308.27k
for easy comparison, I'm adding my 3.0.0-alpha16 scores directly belowaes-128-cbc 84716.70k 269243.61k 584986.37k 830015.83k 944873.47k 953417.73k
for easy comparison, I'm adding my 3.0.0-alpha16 scores directly belowAES-128-CBC 95904.58k 297023.53k 611697.15k 855083.69k 966412.97k 956033.71k
Yeah, kernel crypto is not well documented (in my opinion).
So there's a reasonable chance I indeed do have HW accelerated crypto,
but it doesn't seem to be near '10x' speed improvements.
Yeah, you won't see that kind of speedup across all agorithms.
On Aarch64, you will see the following speedups (give or take) over a
quality C implementation:
* AES - 6x
* SHA1 - 3.5x
* SHA2 - 9.5x
* PMULL - 12x
Thermal issues may also play a role. I noticed that if I did a test
after letting the device idle for a while, so it can cool off (?), did result in higher scores.
You should probably use an active cooling solution, like a fan.
move the CPU from standby mode to performance mode.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 77:29:30 |
Calls: | 6,658 |
Calls today: | 4 |
Files: | 12,203 |
Messages: | 5,332,832 |
Posted today: | 1 |