What block size to use when dd'ing a disk?

It is customary to prepare a to-be-encrypted disk with a command such as
# dd if=/dev/random of=/dev/foo bs=bar
Is there any rhyme or reason to choosing the block size for such a thing? Omitting bs=bar altogether is very inefficient, but setting it to 1 GB or something doesn't help much either. Is it possible to obtain a rough estimate of the optimum value from parameters such as the disk transfer speed, type of disk, etc.?

Fonz
 
I also experiment block sizes with various storage devices to find optimal value. Wanted to have that answer too, and surprisingly, googling "dd optimal block size" yielded this as the first result;

http://forums.freebsd.org/showthread.php?t=11585

Not a definite answer but it provides a few tips / cases.
If you dig into this deeper, please keep posting. Thanks.
 
Back
Top