Bug 1025717
| Summary: | missing AES-NI in "engine" Fedora compared to RHEL/CentOS? | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Harald Reindl <h.reindl> |
| Component: | openssl | Assignee: | Tomas Mraz <tmraz> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 18 | CC: | tmraz |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-11-01 12:14:23 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Harald Reindl
2013-11-01 11:20:43 UTC
i found this changelog entry, but look below! * Wed Aug 24 2011 Tomas Mraz <tmraz at redhat.com> 1.0.0d-8 - drop the separate engine for Intel acceleration improvements and merge in the AES-NI, SHA1, and RC4 optimizations - add support for OPENSSL_DISABLE_AES_NI environment variable that disables the AES-NI support _______________________________________________ two Apache benchmarks "ab -c 50 -n 20000" let me fear AES-NI is not used by httpd/openssl as default because without SSL the same call are 750 requests/second which means with encryption in both cases the same 475 less while AES-NI should boost by factor 5-8 /etc/sysconfig/httpd untouched: Requests per second: 274.38 [#/sec] (mean) Requests per second: 271.71 [#/sec] (mean) OPENSSL_DISABLE_AES_NI=1: Requests per second: 273.01 [#/sec] (mean) Requests per second: 273.90 [#/sec] (mean) _______________________________________________ http://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslcryptodevice Default: SSLCryptoDevice builtin the same values as above with SSLCryptoDevice dynamic There is no OPENSSL_DISABLE_AES_NI support in Fedora packages anymore. The AES-NI support is from upstream. thanks for feedback, that explains why i can't verify anything :-) but this still smells like it is not used automatically compared "openssl speed aes-256-cbc" and "openssl speed -evp aes-256-cbc" or does this really only affect the becnhmark and in normal operations it's used? Available options: -engine e use engine e, possibly a hardware device. -evp e use EVP e No, the openssl call without the -evp calls directly the software implementation (no AES-NI). On the other hand all higher level applications including the TLS implementation call the EVP functions which automatically call the AES-NI accelerated implementation if available. Of course if 3rd party program uses the low level interface directly calling the AES software implementation, it will not be accelerated, but that did not change from the situation in RHEL-6. Basically the low level interfaces should not be used by 3rd party programs ever but unfortunately these were part of the OpenSSL API and ABI for a long time so we cannot make them hidden. thank you so much helping understand how it works in details! my intention by bringing up such things is to make best use of the own hardware in production while at the same time if things could be optimized all other users and maybe future development may benefit |