lkml.org 
[lkml]   [2001]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: BUG in 2.4.0: dd if=/dev/random of=out.txt bs=10000 count=100
> dd says it completes happily even when copying from
> random. 0+100 records in, 0+100 records out. It

This means that dd completed 100 reads, and none of them were of the
requested length (10000 bytes).

> takes about thirty seconds to finish on the dual
> gigahertz processor intel box I'm using to test it,
> which implies it's actually performing the truly
> impressive waste of CPU cycles I'm requesting from it.
> I'm just not getting the data in my file.

/dev/random generates (hopefully) truly random values, and relies on
receiving interrupts. It doesn't spend very many CPU cycles. For most
purposes, /dev/urandom is adequate, and will be much faster for such large
quantities of data.

-John

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:22    [W:0.069 / U:3.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site