From owner-freebsd-current Sun Jan 3 11:54:02 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA00775 for freebsd-current-outgoing; Sun, 3 Jan 1999 11:54:02 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from bouvreuil.cybercable.fr (bouvreuil.cybercable.fr [212.198.3.12]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA00761 for ; Sun, 3 Jan 1999 11:54:00 -0800 (PST) (envelope-from herbelot@cybercable.fr) Received: (qmail 1380 invoked from network); 3 Jan 1999 19:46:37 -0000 Received: from d003.paris-21.cybercable.fr (HELO cybercable.fr) (212.198.21.3) by bouvreuil.cybercable.fr with SMTP; 3 Jan 1999 19:46:37 -0000 Message-ID: <368FC908.1D728596@cybercable.fr> Date: Sun, 03 Jan 1999 20:46:17 +0100 From: Thierry Herbelot X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 3.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: current@FreeBSD.ORG Subject: Is my /dev/random broken ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, This is a follow-on to a post by Kris Kennaway (Re pgcc-1.1.1). I have a recent -Current (cvsupped on Dec 19 13:01) with an a.out kernel and an elf userland and I have tried to duplicate Kris' test : # dd if=/dev/random of=/usr2/bigfile bs=1024k count=30 # cp /usr2/bigfile /usr2/bigfile2 # /usr/bin/time gzip-486 -9 /usr2/bigfile 26.06 real 20.46 user 1.17 sys # /usr/bin/time gzip-pent -9 /usr2/bigfile2 23.12 real 18.58 user 1.20 sys But the first line gives the following : #dd if=/dev/random of=bigfile bs=1024k count=30 0+2 records in 0+2 records out 6 bytes transferred in 0.000387 secs (15506 bytes/sec) # repeated executions give **random** numbers of "bytes transferred" (but never the right number) dd seems to work (I have used it to copy parts of the Generic kernel), so /dev/random must be broken ??? I could live without /dev/random, but what next ? TfH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message