On Wed, 22 Dec 2004, Stas Bekman wrote:
Date: Wed, 22 Dec 2004 18:11:30 -0500 From: Stas Bekman <[EMAIL PROTECTED]> 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.
It's not us who uses it, but Apache, so it's not under our control. Notice that Digest: generating secret for digest authentication ... is coming from an apache module.
-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]