Garl R. Grigsby wrote:

> How do you measure harddrive performance?

The quick and dirty way.  I use dd* to stream a fixed amount of data
off the disk and time how long it takes.  Then I divide the amount of
data by the time to get the rate.

E.g.,

    root@jogger-egg ~# time dd if=/dev/hda of=/dev/null bs=1024k
    count=1024
    1024+0 records in
    1024+0 records out
    0.010u 13.850s 0:48.14 28.7%    0+0k 0+0io 105pf+0w
    root@jogger-egg ~# bc
    1024 / 48.14
    21.27129206481096800997

That dd command copied 1 Gb from the hard drive to the null device, in
1024 blocks of 1 Mb each.  It took 48 seconds.  Dividing out shows
that it's just over 21 Mb/sec.

* Double bonus old-fart points to anybody who knows what dd stands for...
-- 
                                        K<bob>
[EMAIL PROTECTED], http://www.jogger-egg.com/

Reply via email to