Re: Bug#912087: openssh-server: Slow startup after the upgrade to 7.9p1

From: Kurt Roeckx
Date: Thu Nov 01 2018 - 20:24:32 EST


On Thu, Nov 01, 2018 at 07:50:35PM -0400, Theodore Y. Ts'o wrote:
> On Thu, Nov 01, 2018 at 11:18:14PM +0100, Sebastian Andrzej Siewior wrote:
> > Okay. So you wrote what can be done for a system with HW-RNG/kvm. On
> > bare metal with nothing fancy I have:
> > [ 3.544985] systemd[1]: systemd 239 running in system mode. (+PAMâ
> > [ 10.363377] r8169 0000:05:00.0 eth0: link up
> > [ 41.966375] random: crng init done
> >
> > which means I have to wait about half a minute until I can ssh into. And
> > there is no way to speed it up?
>
> So that surprises me. Can you tell me more about the hardware? Is it
> something like a Rasberry Pi? Or is it an x86 server or desktop? In
> my experience for most x86 platforms this isn't an issue.

The original poster had:
Architecture: amd64 (x86_64)
Kernel: Linux 4.18.0-2-amd64 (SMP w/2 CPU cores)

But I'm not sure if that's a real machine or some virtual host,
I'm going to guess it's a virtual host.

Anyway, on my laptop I get:
[ 12.675935] random: crng init done

If the TPM is enabled, I also have an /etc/hwrng, but rng-tools is
started later after the init is done.

On my desktop (with a chaos key attached)
[ 3.844484] random: crng init done
[ 5.312406] systemd[1]: systemd 239 running in system mode.


Kurt