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



> Date: Tue, 22 Sep 2020 13:07:04 +0300
> From: Andreas Gustafsson <gson%gson.org@localhost>
> 
> The following patch will cause a kernel message to be logged when a
> process blocks on /dev/random or some other randomness API.  It may
> help some users befuddled by pkgsrc builds blocking on /dev/random,
> and I'm finding it useful when testing changes aimed at fixing PR
> 55659.
> 
> OK to commit?

I think this is fine, but it should be rate-limited the same way other
messages in kern_entropy.c are rate-limited.

		if (ratecheck(&lasttime, &interval))
			printf("...");


Home | Main Index | Thread Index | Old Index