perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jie Gao <J....@isu.usyd.edu.au>
Subject Re: how to raise entropy
Date Wed, 22 Dec 2004 23:14:50 GMT



On Wed, 22 Dec 2004, Stas Bekman wrote:

> Date: Wed, 22 Dec 2004 18:11:30 -0500
> From: Stas Bekman <stas@stason.org>
> To: mod_perl Dev <dev@perl.apache.org>
> Subject: how to raise entropy
>
> The story goes like this, I run a smoke of some 70+ mp2 configurations
> every other night, and very often I had the test suite hang on startup.
> when I'd run things manually everything will work just fine.
>
> most of the time the error log will stop at:
>
> [Wed Dec 22 03:57:01 2004] [notice] Digest: generating secret for digest
> authentication ...
>
> so what I suspect is that Apache tries to get data from /dev/(u?)random
> which blocks if it doesn't have enough entropy and hence we timeout. Now
> when I tap-tap-tap on my keyboard the entropy is happily generated, though
> when I'm asleep and nothing happens on my notebook the entropy device has
> not enough inputs to satisfy the software demands. Of course this is just
> an idea. I should have really run the nightly smoke with strace to see
> where it blocks for real.
>
> So any idea how to feed the entropy device, other than waking up every 15
> minutes to hug my notebook?
>
> This can also help this problem reported not once by users:
> http://perl.apache.org/docs/2.0/user/troubleshooting/troubleshooting.html#Server_Hanging_at_the_Startup

Use /dev/urandom, which will not block.

Regards,


Jie


> --
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message