On Fri, 2008-01-11 at 23:42 +0800, Drexx Laggui[personal] wrote: > [EMAIL PROTECTED] ~]# time badblocks -c 512 -s -w -t random -v /dev/sdd > real 0m31.177s
> [EMAIL PROTECTED] ~]# time dcfldd if=/dev/urandom bs=512 of=/dev/sdd > real 1m7.754s > [EMAIL PROTECTED] ~]# time dd if=/dev/urandom bs=512 of=/dev/sdd > real 1m7.519s I think that's due to reading from /dev/urandom. badblocks probably has a cheaper way to get randoms. I just ran a little C program that reads 256001 512 byte blocks from /dev/urandom (without writing the blocks anywhere) and that takes 44.9 s or so. heh, i just realized i should just have done: time dd if=/dev/urandom of=/dev/null bs=512 count=256001 which does the same thing. that runs in 45.509 s. So just reading from /dev/urandom costs you a lot of performance. why not just write zeroes to the disk? tiger _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

