[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: openssl package with cpu optimized libraries released



Christoph Martin <martin@verwaltung.uni-mainz.de> writes:

> Also I tuned the sparc optimisation for v9 and included one for v8
> (although I don't know if the v8 directory is used). The v9 code has
> a speedup of about factor 10 !!

The SPARCv8 code is not used, since "v8" is not a hwcap value.  I
discussed this a bit with Andrew Suffileld on IRC today, and he noted
that the known hwcap strings are "flush", "stbar", "swap", "muldiv",
"v9", "ultra3", but the linker only considers "v9" and "ultra3"
important enough to have their own libraries.

One possible solution is adding "muldiv" to the "important" hwcap list
and putting the SPARCv8-optimized libraries in /usr/lib/muldiv, but I
don't know how feasible (or desirable) that is.  Are there any glibc
people with an opinion on this?

Speed-wise the v8 optmizations work great, as demonstrated by the
below "openssl speed dsa" results:

Unoptimized:
                  sign    verify    sign/s verify/s
dsa  512 bits   0.2515s   0.3119s      4.0      3.2
dsa 1024 bits   0.8892s   1.0860s      1.1      0.9

With LD_LIBRARY_PATH=/usr/lib/v8:
                  sign    verify    sign/s verify/s
dsa  512 bits   0.0370s   0.0437s     27.0     22.9
dsa 1024 bits   0.1155s   0.1426s      8.7      7.0

-- 
ilmari




Reply to: