Subject: Re: ssh-keygen on Mac IIci
To: None <port-mac68k@netbsd.org>
From: John Klos <john@sixgirls.org>
List: port-mac68k
Date: 11/26/2000 01:24:42
> >I've just finished updating my Mac IIci to NetBSD 1.5K, and I'm trying
> >to generate my sshd DSA key.  So far, it's been running for more than 20
> >minutes solid.  Is this normal?  Any idea how long it should take before
> >finishing?
>
> It took 25 minutes on my 840AV (040@40).

I've noticed that the OpenSSL/OpenSSH packages are really slow unless
they're compiled with optimisations. For example:

dsa, 40 mhz 68040:  precompiled - 16:51, optimised - 2:25
dsa, 25 mhz 68030:  precompiled - 44:14, optimised - 29:45

rsa, 40 mhz 68040:  precompiled - 1:53, optimised - 0:40
rsa, 25 mhz 68030:  precompiled - 3:26, optimised - 1:46

The optimisations in /etc/mk.conf are simply:
COPTS+=-O2
CFLAGS+=-m68030 (or -m68040)

I think the reason that the 68040 sees such a large speedup is because of
the use of 64 bit multiplications, which are pretty fast on the '040; some
people on the Amiga list were talking about why the ssh stuff was so slow
on the 68060, and it was because of the 64 bit multiplications, which are
emulated on the '060.

John Klos