OpenSSL performance expectation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-24 3:29 AM
I am wondering what number I should expect in terms of encryption performance with STM32MP157C. Below is that I get
OpenSSL 1.1.1l 24 Aug 2021
# openssl engine -c
(devcrypto) /dev/crypto engine
[DES-CBC, DES-EDE3-CBC, AES-128-CBC, AES-192-CBC, AES-256-CBC, AES-128-CTR, AES-192-CTR, AES-256-CTR, AES-128-ECB, AES-192-ECB, AES-256-ECB, MD5, SHA1, SHA224, SHA256, SHA384, SHA512]
(dynamic) Dynamic engine loading support
## without devcrypto
openssl speed -evp aes-128-cbc -engine devcrypto -elapsed
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 7533.57k 9109.38k 9611.86k 9747.11k 9786.71k 9781.25k
## with devcrypto
openssl speed -evp aes-128-cbc -elapsed
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
aes-128-cbc 1898.27k 5383.32k 9960.87k 12648.11k 13443.07k 13538.65k
Are these numbers to be expected?
Solved! Go to Solution.
- Labels:
-
STM32MP15 Lines
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-27 1:11 AM
Hi @Community member​ ,
It is known linux issue that crypto-dev framework is not optimised for HW engines.
The result is better performance in Full SW than with HW accelerated framework for the crypto functions that require many cyclic operation on small size data (linked to key size):
- Linux framework is using work queues that will extend scheduling usage
- dma use will not help (more time to configure than copy)
This is the same issue for any vendor.
Olivier
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-27 1:11 AM
Hi @Community member​ ,
It is known linux issue that crypto-dev framework is not optimised for HW engines.
The result is better performance in Full SW than with HW accelerated framework for the crypto functions that require many cyclic operation on small size data (linked to key size):
- Linux framework is using work queues that will extend scheduling usage
- dma use will not help (more time to configure than copy)
This is the same issue for any vendor.
Olivier
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-29 2:21 AM
Thanks!
I just wanted to confirm that I was not completely off.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-06 2:27 PM
OpenSSL 1.1.1l 24 Aug 2021
# openssl speed -evp aes-128-cbc -elapsed
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
aes-128-cbc 11780.60k 14843.43k 15925.76k 16219.14k 16299.35k 16285.70k
157A at 650MHz, 16bit DDR3L on custom rootfs
No HW crypto
