10
I'm trying to understand the output of the dd
command. I tried
dd if=/dev/zero of=/dev/null bs=512 count=1
and got (as expected):
1+0 records in
1+0 records out
512 bytes (512 B) copied, 2e-05 seconds, 26 MB/s
However when I tried
dd if=/dev/random of=/dev/null bs=512 count=1
I got
0+1 records in
0+1 records out
128 bytes (128 B) copied, 0.00012 seconds, 1.1 MB/s
Why is it only copying 128 bytes?
See http://superuser.com/questions/359599/why-is-my-dev-random-so-slow-when-using-dd for a more complete discussion of /dev/random and urandom
– BobT – 2012-12-17T19:29:09.620