[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Problems with /dev/random

From: Branko Čibej <brane_at_xbc.nu>
Date: 2005-02-14 14:08:03 CET

Pete Gonzalez wrote:

> We recently encountered a problem where svnserve was hanging
> in the random number generator. (Apparently someone else
> encountered this problem and logged it as Debian Bug#285708.)
>
> The culprit was a Linux daemon that reads from "/dev/urandom"
> frequently. Although "/dev/urandom" returns immediately, it
> depletes the kernel entropy pool, causing "/dev/random" reads
> to stall indefinitely. I solved the problem by hacking the
> Subversion apr_private.h DEV_RANDOM to read from "/dev/urandom"
> instead of "/dev/random".
>
> Since this problem took several hours to figure out, I'd like
> to propose a few potential improvements:
>
> 1. Document this somewhere conspicuous

It is quite conspiciously documented for APR, in the FAQ and in the Vook

> 2. Make the default "/dev/urandom" (or a pseudorandom generator)
> instead of "/dev/random".

This is APR configuration. See apr's configure --with-devrandom.

> 3. Add a "configure" switch enabling admins to specify whether
> or not they want to make everyone wait for the kernel to
> generate random numbers. (In our scenario, this is ridiculous.)

It's already there.

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Feb 14 14:12:19 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.