tech-kern archive

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

Re: Logging a kernel message when blocking on entropy



On Tue, Sep 22, 2020 at 03:23:59PM +0300, Andreas Gustafsson wrote:
> Manuel Bouyer wrote:
> > > In -current, entropy does not run out.
> > 
> > So, how can it block ?
> 
> When there's too little entropy to begin with.  Once you have
> gathered enough, it unblocks, and never blocks again.
> 
> This is assuming default settings.  If you actually want entropy
> to run out, you can do "sysctl -w kern.entropy.depletion=1", but
> there's no good reason to ever do that outside of testing.
> -- 
> Andreas Gustafsson, gson%gson.org@localhost

On Tue, Sep 22, 2020 at 02:25:25PM +0200, Martin Husemann wrote:
> On Tue, Sep 22, 2020 at 02:12:19PM +0200, Manuel Bouyer wrote:
> > So, how can it block ?
> 
> When the system never had enough entropy.
> 
> I would consider this a bug in the setup of the system, but as of now we do
> not deal with it at all during installation, and on systems that are not
> installed (bootable images) it is even harder.
> 
> Sysinst will complain about it soon (and offer options to help fix it).

OK, so the printf should never happen when the system has been properly
configured. In this case I have no objection.

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index