Voxel
Part of the Furniture
Question to @RMerlin, @sfx2000 and maybe other experts and developers:
I’ve prepared a test build of firmware for R9000 (Alpine AL-514, Cortex-A15) with hardware acceleration of OpenSSL using cryptodev engine, /dev/crypto (cryptodev-linux, https://github.com/cryptodev-linux/cryptodev-linux). But there are a bit strange for me results of OpenSSL test. For example:
OpenSSL w/o hardware acceleration (NO cryptodev engine is used):
OpenSSL with hardware acceleration (cryptodev IS used):
I.e. for 16/64/256 bytes I've got degradation instead of acceleration. But for 1K and 8K significant acceleration.
The question is: has it sense at all to include hardware acceleration into firmware? I.e. will not I get degradation of speed instead of speedup? For OpenVPN, other programs using OpenSSL…
Thanks for comments/hints.
Voxel.
I’ve prepared a test build of firmware for R9000 (Alpine AL-514, Cortex-A15) with hardware acceleration of OpenSSL using cryptodev engine, /dev/crypto (cryptodev-linux, https://github.com/cryptodev-linux/cryptodev-linux). But there are a bit strange for me results of OpenSSL test. For example:
OpenSSL w/o hardware acceleration (NO cryptodev engine is used):
Code:
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-256 cbc 55305.55k 56667.01k 58129.66k 58706.94k 58594.65k
des cbc 33149.58k 34800.41k 35267.16k 35559.77k 35550.55k
OpenSSL with hardware acceleration (cryptodev IS used):
Code:
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-256-cbc 1313.02k 5265.17k 20732.59k 70701.06k 305261.23k
des-cbc 1315.02k 5248.36k 20742.83k 60788.39k 216607.40k
I.e. for 16/64/256 bytes I've got degradation instead of acceleration. But for 1K and 8K significant acceleration.
The question is: has it sense at all to include hardware acceleration into firmware? I.e. will not I get degradation of speed instead of speedup? For OpenVPN, other programs using OpenSSL…
Thanks for comments/hints.
Voxel.
Last edited: