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

Re: improving ssh2 performance on SPARCv8/SPARCv9 systems

On Tue, 26 Mar 2002, Raoul Borenius wrote:
> On Tue, Mar 19, 2002 at 04:46:07AM -0800, Joshua Uziel wrote:
> > Just a quick guess that it looks like a factor of 7 or 8 in speed
> > improvement.  So, how can you get this wonderful benefit on your
> > machine, you ask?  You can either build it yourself:
> > 
> > 1) apt-get source openssl0.9.6
> > 2) edit openssl-0.9.6c/Configure ... search down to "debian-sparc" and
> >    add in a "-mv8" right after the "gcc:"
> > 3) debuild
> I think you also need to include the supplied object-file for sparcv8 (like
> in the default line for linux-sparcv8).
> "debian-sparc","gcc:-mv8 -DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer
> BF_PTR:asm/sparcv8.o:::::::::dlfcn:linux-shared:-fPIC",
> Without the '-DBN_DIV2W' and 'asm/sparcv8.o' the library was as slow as before
> on my box.

	In case any one is interested, this tweak also helps ssh1
performance on Sparcs running Potato. The build line is slightly different
for the libssl version found in potato (libssl-0.9.4-5), here is the
modified version:

"debian-sparc","\$(TOP)/debian/libtool gcc:-mv8 -DB_ENDIAN -DTERMIO -O3 \
-fomit-frame-pointer -Wall -DBN_DIV2W::(unknown)::BN_LLONG RC4_CHAR \
DES_UNROLL BF_PTR:asm/sparcv8.o::",

	After rebuilding, installing, and restarting sshd, there is a
noticable improvment, at least in initial login latency. My Sparc 20 used
to take a noticable amount of time to login to, but now it is nearly as
fast as my Alpha XL366 to login to. :) On my Sparc 5, I have real
numbers, before the tweaked libssl, logins took ~2.9 seconds, while with
the tweaked libssl, logins now only take ~1.4 seconds! 
	Thanks for the tweak! TTYL.

|   "For to me to live is Christ, and to die is gain."                    |
|                                            --- Philippians 1:21 (KJV)   |
|   Ryan Kirkpatrick  |  Boulder, Colorado  |  http://www.rkirkpat.net/   |

To UNSUBSCRIBE, email to debian-sparc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: