Found here: https://forums.gentoo.org/viewtopic-t-1065782.html?sid=c49377d82f58857e6846b9111da66798 Currently, OpenSSL is compiled on aarch64 (arm64) with generic64. But OpenSSL also supports aarch64, which can be easly added. Only gentoo.config-1.0.2 (used for 1.0.2* & 1.1.0*) has to be changed: > - aarch64*be*) machine="generic64 -DB_ENDIAN";; > - aarch64*) machine="generic64 -DL_ENDIAN";; > + aarch64*be*) machine="aarch64 -DB_ENDIAN";; > + aarch64*) machine="aarch64 -DL_ENDIAN";; After recompiling with aarch64 instead of generic64, I can see some improvement with "openssl speed" on my Raspberry Pi 3.
Created attachment 506786 [details, diff] openssl-aarch64-machine.patch
Created attachment 506788 [details] openssl speed with aarch64.txt
Created attachment 506790 [details] openssl speed with generic64.txt
ping
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fe32836f19db9b4c614e0e6d563ac267ba21e2f commit 9fe32836f19db9b4c614e0e6d563ac267ba21e2f Author: Conrad Kostecki <conrad@kostecki.com> AuthorDate: 2018-04-26 20:18:45 +0000 Commit: Robin H. Johnson <robbat2@gentoo.org> CommitDate: 2018-05-12 20:25:45 +0000 dev-libs/openssl: use aarch64 machine for arm64 arch Closes: https://bugs.gentoo.org/638926 Package-Manager: Portage-2.3.24, Repoman-2.3.6 (cherry picked from commit d1a9b4ac497aa915d51b40c56f160619c62b801a) Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/7306 dev-libs/openssl/files/gentoo.config-1.0.2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)