Test of read/ write speeds of USB/SATA hard disks

share by Margaret

Please don’t forget to mount your hard disk first! Test of read/ write speeds of USB hard disks

  1. using hdparm Input:

    hdparm -Tt /dev/sda

Output like this: /dev/sda:

Timing cached reads: 724 MB in 2.00 seconds = 361.20 MB/s
Timing buffered disk reads: 88 MB in 3.03 seconds = 29.05 MB/s

read 724 MB cache in 2 seconds ,the speed is about 361.20 MB/s read 88 MB disk in 3.03 seconds(Physical reads) ,the speed is about 29.05 MB/s 2.using dd ①write speed Input:

# dd if=/dev/zero of=./largefile bs=5M count=1024

Output like this:

1024+0 records in
1024+0 records out
5368709120 bytes (5.4 GB) copied,522.167 s,10.3 MB/s

the write speed is about 10.3 MB/s ②read speed Input:

# dd if=./largefile of=/dev/null bs=5M count=1024

Output like this:

1024+0 records in
1024+0 records out
536870910 bytes (5.4 GB) copied,183.948 s,29.2 MB/S

the read speed is about 29.2 MB/s Test of read/ write speeds of SATA hard disks 1.using hdparm Input:

# hdparm -t /dev/sda

Output like this: /dev/sda:

Timing buffered disk reads:  322 MB in  3.01 seconds =  106.83 MB/sec
read 322 MB disk in 3.01 seconds(Physical reads) ,the speed is about 106.83 MB/s

2.using dd ①write speed Input:

# dd if=/dev/zero of=./largefile bs=5M count=1024

Output like this:

1024+0 records in
1024+0 records out
5368709120 bytes (5.4 GB) copied,134.729 s,39.8 MB/s

Copy the Codethe write speed is about 39.8MB/s ②read speed Input:

# dd if=./largefile of=/dev/null bs=5M count=1024

Output like this:

1024+0 records in
1024+0 records out
5368709120 bytes (5.4 GB) copied,65.3293 s,82.2 MB/s

the read speed is about 82.2MB/s

If you copy contents from LeMaker’s forum you should also ensure that comments are also copied: http://www.lemaker.org/thread-13462-1-1.html

Using hdparm -tT and dd without appropriate flags is misleading.

OK, thank you , i will let our technology man note this .

Some stuff is outlined here to get a clue what storage performance influences do exist on ARM boards and how to measure and/or tune stuff: http://linux-sunxi.org/Sunxi_devices_as_NAS#Use_the_right_tools

thank you for you share ,cool