LINUX - Test READ and WRITE speed of Storage (Drives/Raids,etc.)

--TEST SPEED WITH EXT3--

Go to where the filesystem you mounted is at:

# cd /mnt/r55

-WRITE TEST:-

ZEROS DATA:

# dd if=/dev/zero of=testfile0 bs=8k count=10000; sync;
Hit CONTROL-C after 5 seconds to get results
30703616 bytes (31 MB) copied, 7.94884 s, 3.9 MB/s

RANDOM DATA:

# dd if=/dev/urandom of=testfileR bs=8k count=10000; sync;
Hit CONTROL-C after 5 seconds to get results
65994752 bytes (66 MB) copied, 21.8919 s, 3.0 MB/s

-READ TEST:-

ZEROS DATA:

# dd if=testfile0 of=/dev/null
29368320 bytes (29 MB) copied, 0.780934 s, 37.6 MB/s

RANDOM DATA:

dd if=testfileR of=/dev/null 
30842880 bytes (31 MB) copied, 1.05709 s, 29.2 MB/s

OTHER READ TEST:

# hdparm -Tt /dev/md0
 Timing cached reads:   16280 MB in  2.00 seconds = 8158.98 MB/sec
 Timing buffered disk reads:  42 MB in  3.13 seconds =  13.42 MB/sec
# hdparm -Tt --direct /dev/md0
 Timing O_DIRECT cached reads:   6928 MB in  2.00 seconds = 3466.79 MB/sec
 Timing O_DIRECT disk reads:  58 MB in  3.30 seconds =  17.55 MB/sec

DONT FORGET TO REMOVE THE TEST FILES
# rm testfileR
# rm testfile0

Comments