[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: винчестер быстро читает, медленно пишет



а что говорят
dd if=/dev/zero of=testfile bs=4096 count=500000
и
dd if=testfile of=/dev/null bs=4096 count=500000
500000 много, 50000 пробовал, разница на лицо:

ayax:~# dd if=/dev/zero of=testfile bs=4096 count=50000
50000+0 records in
50000+0 records out
204800000 bytes transferred in 306.310105 seconds (668603 bytes/sec)
ayax:~# dd if=testfile of=/dev/null bs=4096 count=50000
50000+0 records in
50000+0 records out
204800000 bytes transferred in 3.552036 seconds (57657074 bytes/sec)

Скорость чтения похожа на номинальною:
ayax:~# hdparm -t /dev/hda
/dev/hda:
 Timing buffered disk reads:  166 MB in  3.00 seconds =  55.30 MB/sec


А с 5000 блоками еще веселее:

ayax:~# dd if=/dev/zero of=testfile bs=4096 count=5000
5000+0 records in
5000+0 records out
20480000 bytes transferred in 30.636952 seconds (668474 bytes/sec)
ayax:~# dd if=testfile of=/dev/null bs=4096 count=5000
5000+0 records in
5000+0 records out
20480000 bytes transferred in 0.027152 seconds (754270295 bytes/sec)

(очевидно, буфер виноват)




Reply to: