Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-14-2005, 12:53 PM   #1
Registered: Feb 2004
Location: USA
Distribution: Debian
Posts: 174

Rep: Reputation: 16
Running out of entropy & /dev/random reads are blocking

I'm been playing around with Apache on Debian Sarge & experimenting with it. I've been changing the config and stopping/starting it and many times apache2ctl & the init scripts would seem to hang. So while troubleshooting it, I did a strace on "apache2 -t" and it stopped on a read call to /dev/random. So I go the the server's keyboard and banged on it for a bit and then apache2 -t finished running.

So I'm guessing I'm running out of kernel entropy for /dev/random. How exactly do I go about fixing or working around this?


Last edited by slacky; 06-14-2005 at 12:54 PM.
Old 06-15-2005, 09:53 PM   #2
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
The discussion here will probably be useful. For a small reduction in security, you can use /dev/urandom instead (pseudo-random).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/(u)random not returning anything... Elric of Grans Linux - General 1 09-02-2005 01:12 AM
Creating random numbers from shell with /dev/random khermans Linux - General 1 07-13-2004 12:12 PM
doubt in dev/random varala_kanth Linux - Software 0 07-06-2004 07:01 AM
using /dev/(u)random for seed ? PTBmilo Programming 2 04-15-2003 01:19 AM
Making a dev/random ??? ifm Linux - Newbie 3 06-12-2002 01:57 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration