linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.4.18 /dev/random problem
@ 2003-05-31 15:36 Philippe Amelant
  2003-05-31 22:29 ` Andreas Dilger
  0 siblings, 1 reply; 3+ messages in thread
From: Philippe Amelant @ 2003-05-31 15:36 UTC (permalink / raw)
  To: linux-kernel

Hi

I have a compaq server with a little problem.
cat /proc/sys/kernel/random/entropy_avail is always 0
so /dev/random block on all read.

I have read some discussion about /dev/random on this list.
and if I understand /dev/urandom rely on /dev/random for providing good
randomness and /dev/random rely on server activity for it's entropy.

But I don't understand why my disk activity doesn't refill the entropy
counter. If I try to mount floppy I get some entropy but even updating
locate db does not provide any entropy ? Should I activate something in
disk driver ?

Thank
-- 
Philippe Amelant <philippe.amelant@free.fr>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.4.18 /dev/random problem
  2003-05-31 15:36 2.4.18 /dev/random problem Philippe Amelant
@ 2003-05-31 22:29 ` Andreas Dilger
  2003-06-01 13:53   ` Philippe Amelant
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Dilger @ 2003-05-31 22:29 UTC (permalink / raw)
  To: Philippe Amelant; +Cc: linux-kernel

On May 31, 2003  17:36 +0200, Philippe Amelant wrote:
> I have a compaq server with a little problem.
> cat /proc/sys/kernel/random/entropy_avail is always 0
> so /dev/random block on all read.
> 
> I have read some discussion about /dev/random on this list.
> and if I understand /dev/urandom rely on /dev/random for providing good
> randomness and /dev/random rely on server activity for it's entropy.
> 
> But I don't understand why my disk activity doesn't refill the entropy
> counter. If I try to mount floppy I get some entropy but even updating
> locate db does not provide any entropy ? Should I activate something in
> disk driver ?

Maybe you only have disk drives attached via CCISS or other special
RAID controller, and you do not use keyboard or mouse?  It might be
that the RAID controller is not contributing to the entopy pool.

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.4.18 /dev/random problem
  2003-05-31 22:29 ` Andreas Dilger
@ 2003-06-01 13:53   ` Philippe Amelant
  0 siblings, 0 replies; 3+ messages in thread
From: Philippe Amelant @ 2003-06-01 13:53 UTC (permalink / raw)
  To: linux-kernel

Le dim 01/06/2003 à 00:29, Andreas Dilger a écrit :
> On May 31, 2003  17:36 +0200, Philippe Amelant wrote:
> > I have a compaq server with a little problem.
> > cat /proc/sys/kernel/random/entropy_avail is always 0
> > so /dev/random block on all read.
> > 
> > I have read some discussion about /dev/random on this list.
> > and if I understand /dev/urandom rely on /dev/random for providing good
> > randomness and /dev/random rely on server activity for it's entropy.
> > 
> > But I don't understand why my disk activity doesn't refill the entropy
> > counter. If I try to mount floppy I get some entropy but even updating
> > locate db does not provide any entropy ? Should I activate something in
> > disk driver ?
> 
> Maybe you only have disk drives attached via CCISS or other special
> RAID controller, and you do not use keyboard or mouse?  It might be
> that the RAID controller is not contributing to the entopy pool.

You are right.
Pasi Pirhonen provide me this little patch
Maybe it could be useful for someone else....

--- linux/drivers/block/cpqarray.c      Fri Apr  4 01:23:24 2003
+++ linux.TE/drivers/block/cpqarray.c   Fri Apr  4 01:21:04 2003
@@ -517,7 +517,7 @@
 
        hba[i]->access.set_intr_mask(hba[i], 0);
        if (request_irq(hba[i]->intr, do_ida_intr,
-               SA_INTERRUPT|SA_SHIRQ, hba[i]->devname, hba[i])) 
+               SA_INTERRUPT|SA_SHIRQ|SA_SAMPLE_RANDOM, hba[i]->devname, hba[i])) 
        {
 
                printk(KERN_ERR "cpqarray: Unable to get irq %d for %s\n", 


thank for help



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-06-01 13:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-31 15:36 2.4.18 /dev/random problem Philippe Amelant
2003-05-31 22:29 ` Andreas Dilger
2003-06-01 13:53   ` Philippe Amelant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).