bug#36380: service urandom-seed takes too long on boot

2021-02-07 Thread raid5atemyhomework via Bug reports for GNU Guix
```scheme (define (get-bytevector-n-timed port count max-time) "Read COUNT octets from PORT, blocking as necessary and return a bytevector containing the octets read, and taking no more than MAX-TIME seconds. If fewer bytes are available, a bytevector smaller than COUNT is returned." (define

bug#36380: service urandom-seed takes too long on boot

2020-12-28 Thread Leo Famulari
On Mon, Dec 28, 2020 at 12:28:09AM +0100, Stefan wrote: > “-object rng-random,id=id,filename=/dev/random > Creates a random number generator backend which obtains entropy from a device > on the host. The id parameter is a unique ID that will be used to reference > this entropy backend from the vi

bug#36380: service urandom-seed takes too long on boot

2020-12-27 Thread Stefan
Hi Leo! > What does the argument "filename=/dev/random" do? Does it use the host's > /dev/random to provide entropy to the QEMU guest? Yes, see [1]: “-object rng-random,id=id,filename=/dev/random Creates a random number generator backend which obtains entropy from a device on the host. The id p

bug#36380: service urandom-seed takes too long on boot

2020-12-27 Thread Leo Famulari
On Sun, Dec 27, 2020 at 04:00:23PM +0100, Stefan wrote: > Qemu is invoked with these arguments concerning random: > > -cpu > host,+smap,+rdseed,+erms,+smep,+fsgsbase,+3dnowprefetch,+rdtscp,+pdpe1gb,+rdrand,+osxsave,+xsave,+tsc-deadline,+movbe,+x2apic,+pdcm,+xtpr,+tm2,+est,+vmx,+ds_cpl,+dtes64,+pc

bug#36380: service urandom-seed takes too long on boot

2020-12-27 Thread Stefan
Hi! I’m running Guix in qemu on a NAS. The boot takes sometimes more than 30 minutes, probably waiting to start the urandom-seed service. Guix is using virtio_rng: stefan@guix ~$ cat /sys/devices/virtual/misc/hw_random/rng_available virtio_rng.0 stefan@guix ~$ cat /sys/devices/virtual/misc/hw_

bug#36380: service urandom-seed takes too long on boot

2020-03-22 Thread Leo Famulari
On Sun, Mar 22, 2020 at 08:43:33AM +, Brice Waegeneire wrote: > This article has been updated since then with a section[0] about a fix > authored by Linus[1][2] and merged in Linux 5.4. The gist of it that now > `getrandom()' will actively try to collect entropy in early boot, if it > is missin

bug#36380: service urandom-seed takes too long on boot

2020-03-22 Thread Brice Waegeneire
Hello, It would be nice if we could reproduce this issue. Robert Vollmert writes: Just ran across this article about Debian dealing with similar issues. https://daniel-lange.com/archives/152-hello-buster.html This article has been updated since then with a section[0] about a fix authored by

bug#36380: service urandom-seed takes too long on boot

2019-07-11 Thread Ludovic Courtès
Hi Leo, Leo Famulari skribis: > On Fri, Jun 28, 2019 at 01:24:01PM -0400, Leo Famulari wrote: >> So, I suggest we add a 1 second timeout to this read. >> >> I can work on that next week. > > I did try working on this, after reading the code in (guix scripts > offload (call-with-timeout)). The

bug#36380: service urandom-seed takes too long on boot

2019-07-11 Thread Leo Famulari
On Fri, Jun 28, 2019 at 01:24:01PM -0400, Leo Famulari wrote: > So, I suggest we add a 1 second timeout to this read. > > I can work on that next week. I did try working on this, after reading the code in (guix scripts offload (call-with-timeout)). But, I couldn't make it work at all — it always

bug#36380: service urandom-seed takes too long on boot

2019-06-28 Thread Leo Famulari
On Fri, Jun 28, 2019 at 08:47:35AM +0200, Robert Vollmert wrote: > > On 27. Jun 2019, at 21:03, Leo Famulari wrote: > > Perhaps, but if the reason for the slowness on their first boot was a > > suboptimal /dev/hwrng source, I would expect it to be equally slow for > > each boot, since we unconditi

bug#36380: service urandom-seed takes too long on boot

2019-06-27 Thread Robert Vollmert
> On 27. Jun 2019, at 21:03, Leo Famulari wrote: > Perhaps, but if the reason for the slowness on their first boot was a > suboptimal /dev/hwrng source, I would expect it to be equally slow for > each boot, since we unconditionally read 64 bytes each time. It’s 512 bytes, not that that should

bug#36380: service urandom-seed takes too long on boot

2019-06-27 Thread Ludovic Courtès
Leo Famulari skribis: > On Thu, Jun 27, 2019 at 05:20:21PM +0200, Ludovic Courtès wrote: >> We had a “bug report” at >> , which may be >> due to the same issue: >> >> The first time I loaded Guix the boot process took an unusually long

bug#36380: service urandom-seed takes too long on boot

2019-06-27 Thread Leo Famulari
On Wed, Jun 26, 2019 at 06:02:03PM +0200, Robert Vollmert wrote: > It’s with arpnetworks.com, their default “small" VPS. I don’t > really know more; here’s some dmesg output that might be relevant, > happy to provide more info. Okay, I've asked them about it on IRC: http://irclogger.arpnetworks.c

bug#36380: service urandom-seed takes too long on boot

2019-06-27 Thread Leo Famulari
On Thu, Jun 27, 2019 at 05:20:21PM +0200, Ludovic Courtès wrote: > We had a “bug report” at > , which may be > due to the same issue: > > The first time I loaded Guix the boot process took an unusually long > time. At one point the sys

bug#36380: service urandom-seed takes too long on boot

2019-06-27 Thread Ludovic Courtès
Hi Leo, Leo Famulari skribis: > On Tue, Jun 25, 2019 at 08:12:28PM +0200, Robert Vollmert wrote: >> On my VPS, booting takes forever (long enough that for a long >> time I thought the install had failed). I just rebooted again, >> and it took over 7 minutes, see attached screenshot. > > Yikes, t

bug#36380: service urandom-seed takes too long on boot

2019-06-26 Thread Robert Vollmert
> On 26. Jun 2019, at 17:47, Leo Famulari wrote: > > On Tue, Jun 25, 2019 at 08:12:28PM +0200, Robert Vollmert wrote: >> On my VPS, booting takes forever (long enough that for a long >> time I thought the install had failed). I just rebooted again, >> and it took over 7 minutes, see attached s

bug#36380: service urandom-seed takes too long on boot

2019-06-26 Thread Leo Famulari
On Tue, Jun 25, 2019 at 08:12:28PM +0200, Robert Vollmert wrote: > On my VPS, booting takes forever (long enough that for a long > time I thought the install had failed). I just rebooted again, > and it took over 7 minutes, see attached screenshot. Yikes, that's way too long. Can you say what VPS

bug#36380: service urandom-seed takes too long on boot

2019-06-26 Thread Alex Sassmannshausen
Hi Robert, Robert Vollmert writes: > On my VPS, booting takes forever (long enough that for a long > time I thought the install had failed). I just rebooted again, > and it took over 7 minutes, see attached screenshot. > > I would suggest skipping the seeding from /dev/hwrng by default > if /var

bug#36380: service urandom-seed takes too long on boot

2019-06-25 Thread Robert Vollmert
On my VPS, booting takes forever (long enough that for a long time I thought the install had failed). I just rebooted again, and it took over 7 minutes, see attached screenshot. I would suggest skipping the seeding from /dev/hwrng by default if /var/lib/random-seed is available. I’m assuming here