Difference between revisions of "Benchmarking/Data storage devices"

From ArchWiki
Jump to: navigation, search
(OCZ-VERTEX3)
m (OCZ-VERTEX3 120GO)
Line 317: Line 317:
 
*Firmware Version:2.06
 
*Firmware Version:2.06
 
*Capacity: 6Gb/s SATA III
 
*Capacity: 6Gb/s SATA III
*User:sputnick
+
*User:[[User:Sputnick]]
 
*Notes: tested on '''SATA II 3Gb/s Dell Optiplex 780 motherboard''' 0C27VV  
 
*Notes: tested on '''SATA II 3Gb/s Dell Optiplex 780 motherboard''' 0C27VV  
  

Revision as of 06:56, 27 July 2011

Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary wiki Template:Article summary end

Introduction

Several I/O benchmark options exist under Linux.

  • Using hddparm with the -Tt switch, one can time sequential reads. This method is independent of partition alignment!
  • There is a graphical benchmark called palimpsest contained in the gnome-disk-utility package that will give min/max/ave reads along with ave access time and a nice graphical display. This method is independent of partition alignment!
  • The dd utility can be used to measure both reads and writes. This method is dependent on partition alignment! In other words, if you failed to properly align your partitions, this fact will be seen here since you're writing and reading to a mounted filesystem.
  • Bonnie++

Using hdparm

# hdparm -Tt /dev/sdX
/dev/sdX:
Timing cached reads:   x MB in  y seconds = z MB/sec
Timing buffered disk reads:  x MB in  y seconds = z MB/sec
Note: One should run the above command 4-5 times and manually average the results for an accurate evaluation of read speed per the hddparm man page.

Using palimpsest

# sudo palimpsest

Users will need to navigate through the GUI to the benchmark button.

Using dd

Note: This method requires the command to be executed from a mounted partition on the device of interest!

First, enter a directory on the SSD with at least 1.1 GB of free space (and one that obviously gives your user wrx permissions) and write a test file to measure write speeds and to give the device something to read:

$ cd /path/to/SSD
$ dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
1024+0 records in
1024+0 records out
w bytes (x GB) copied, y s, z MB/s

Next, clear the buffer-cache to accurately measure read speeds directly from the device:

# echo 3 > /proc/sys/vm/drop_caches
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
w bytes (x GB) copied, y s, z MB/s

Now that the last file is in the buffer, repeat the command to see the speed of the buffer-cache:

$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
w bytes (x GB) copied, y s, z GB/s
Note: One should run the above command 4-5 times and manually average the results for an accurate evaluation of the buffer read speed.

Finally, delete the temp file

$ rm tempfile

Model Specific Data

Please contribute to this section using the template below to post results obtained.

See here for a nice database of benchmarks.

Template

  • SSD:
  • Model Number:
  • Firmware Version:
  • Capacity: x GB
  • User:

[*Filesystem: write something about your FS, optional] [*Notes: additional Notes, optional]

# hdparm -Tt /dev/sdx
Minimum Read Rate: x MB/s
Maximum Read Rate: x MB/s
Average Read Rate: x MS/s
Average Access Time x ms
$ dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
# echo 3 > /proc/sys/vm/drop_caches
$ dd if=tempfile of=/dev/null bs=1M count=1024
$ dd if=tempfile of=/dev/null bs=1M count=1024

Crucial

Crucial C300

  • SSD: Crucial C300 (SATA 3: 6Gb/s)
  • Model Number: CTFDDAC128MAG-1G1
  • Capacity: 128 GB
  • User: jac
# hdparm -Tt /dev/sdb
/dev/sda:
Timing cached reads:   24112 MB in  2.00 seconds = 12072.84 MB/sec
Timing buffered disk reads: 1056 MB in  3.00 seconds = 351.58 MB/sec
Minimum Read Rate: 350.88 MB/s
Maximum Read Rate: 351.58 MB/s
Average Read Rate: 351.264 MB/s
$ dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 7.77883 s, 138 MB/s
# echo 3 > /proc/sys/vm/drop_caches
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 2.88752 s, 372 MB/s
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 0.164471 s, 6.5 GB/s

Intel

Intel X18-M (G2)

  • SSD: Intel X18-M Generation 2
  • Model Number: SSDSA1M1602GN
  • Capacity: 160 GB
  • User: Cirk
# hdparm -Tt /dev/sda
Timing cached reads:   2826 MB in  2.00 seconds = 1414.39 MB/sec
Timing buffered disk reads: 694 MB in  3.00 seconds = 231.14 MB/sec
Minimum Read Rate: 216.1 MB/s
Maximum Read Rate: 283.5 MB/s
Average Read Rate: 271.2 MB/s
Average Access Time 0.1 ms
$ dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 10.4608 s, 103 MB/s

# echo 3 > /proc/sys/vm/drop_caches
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 4.0866 s, 263 MB/s
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 0.403244 s, 2.7 GB/s

Intel X25-M (G2)

  • SSD: Intel X25-M Generation 2
  • Model Number: SSDSA2MH080G2R5
  • Capacity: 80 GB
  • User: Graysky
# hdparm -Tt /dev/sdb
/dev/sdb:
Timing cached reads:   15644 MB in  1.99 seconds = 7845.48 MB/sec
Timing buffered disk reads:  788 MB in  3.00 seconds = 262.52 MB/sec
Minimum Read Rate: 253.6 MB/s
Maximum Read Rate: 286.1 MB/s
Average Read Rate: 282.6 MB/s
Average Access Time 0.1 ms
$ dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 13.3236 s, 80.6 MB/s
# echo 3 > /proc/sys/vm/drop_caches
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 4.00297 s, 268 MB/s
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 0.169713 s, 6.3 GB/s

Intel X25-M (G2)

  • SSD: Intel X25-M Generation 2
  • Model Number: SSDSA2M160G2GC
  • Capacity: 160 GB
  • User: fackamato
# hdparm -Tt /dev/sda
Timing cached reads:   2890 MB in  2.00 seconds = 1445.86 MB/sec
Timing buffered disk reads: 738 MB in  3.00 seconds = 245.69 MB/sec
Minimum Read Rate: 244.3 MB/s
Maximum Read Rate: 278.6 MB/s
Average Read Rate: 273.3 MB/s
Average Access Time 0.1 ms
$ dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 10.8582 s, 98.9 MB/s

# echo 3 > /proc/sys/vm/drop_caches
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 4.09679 s, 262 MB/s
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 0.363709 s, 3.0 GB/s

Intel X25-M (G2)

  • SSD: Intel X25-M Generation 2
  • Model Number: SSDSA2M080G2C
  • Capacity: 80 GB
  • User: Cirk
# hdparm -Tt /dev/sda
Timing cached reads:   9384 MB in  2.00 seconds = 4694.29 MB/sec
Timing buffered disk reads: 808 MB in  3.01 seconds = 268.64 MB/sec
Minimum Read Rate: 229.9 MB/s
Maximum Read Rate: 281.6 MB/s
Average Read Rate: 272.4 MB/s
Average Access Time 0.1 ms
$ dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 15.1671 s, 70.8 MB/s

# echo 3 > /proc/sys/vm/drop_caches
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 5.15237 s, 208 MB/s
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 0.256211 s, 4.2 GB/s

Intel X25-M (G2)

  • SSD: Intel X25-M Generation 2
  • Model Number: SSDSA2MH120G2K5
  • Capacity: 120 GB
  • User: timo.hardebusch
# hdparm -Tt /dev/sdb
/dev/sdb:
Timing cached reads:   4358 MB in  2.00 seconds = 2178.89 MB/sec
Timing buffered disk reads:  752 MB in  3.01 seconds = 250.07 MB/sec
Minimum Read Rate: 259.1 MB/s
Maximum Read Rate: 283.3 MB/s
Average Read Rate: 280.6 MB/s
Average Access Time 0.1 ms
$ dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 10.1452 s, 106 MB/s
# echo 3 > /proc/sys/vm/drop_caches
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 4.05181 s, 265 MB/s
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 0.369308 s, 2.9 GB/s

OCZ

OCZ-VERTEX 60gb

  • SSD:OCZ-VERTEX
  • Model Number:Firmware 1.5
  • Capacity: 60 GB
  • User:Surfed
# hdparm -Tt /dev/sda
/dev/sda:
Timing cached reads:   16306 MB in  2.00 seconds = 8162.55 MB/sec
Timing buffered disk reads: 646 MB in  3.00 seconds = 215.09 MB/sec


Minimum Read Rate: 226.7 MB/s
Maximum Read Rate: 275.2 MB/s
Average Read Rate: 256.9 MB/s
Average Access Time 0.1 ms
$ dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 7.5581 s, 142 MB/s
# echo 3 > /proc/sys/vm/drop_caches
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 4.55881 s, 236 MB/s
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 0.205299 s, 5.2 GB/s

OCZ-VERTEX3 120GO

  • SSD:OCZ-VERTEX3
  • Firmware Version:2.06
  • Capacity: 6Gb/s SATA III
  • User:User:Sputnick
  • Notes: tested on SATA II 3Gb/s Dell Optiplex 780 motherboard 0C27VV
# hdparm -Tt /dev/sdc
/dev/sdc:
Timing cached reads:   13702 MB in  2.00 seconds = 6859.89 MB/sec
Timing buffered disk reads: 644 MB in  3.00 seconds = 214.40 MB/sec


$ dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
1024+0 enregistrements lus
1024+0 enregistrements écrits
1073741824 octets (1,1 GB) copiés, 4,37831 s, 245 MB/s
# echo 3 > /proc/sys/vm/drop_caches
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 enregistrements lus
1024+0 enregistrements écrits
1073741824 octets (1,1 GB) copiés, 4,76932 s, 225 MB/s
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 enregistrements lus
1024+0 enregistrements écrits
1073741824 octets (1,1 GB) copiés, 0,234682 s, 4,6 GB/s

OCZ-VERTEX-TURBO 30gb

  • SSD:OCZ-VERTEX-TURBO
  • Model Number:Firmware 1.5
  • Capacity: 30 GB
  • User:ScottKidder
# hdparm -Tt /dev/sda
/dev/sda:
Timing cached reads:   6286 MB in  2.00 seconds = 3149.62 MB/sec
Timing buffered disk reads: 630 MB in  3.01 seconds = 209.10 MB/sec
Minimum Read Rate: 211.8 MB/s
Maximum Read Rate: 254.1 MB/s
Average Read Rate: 249.2 MB/s
Average Access Time 0.1 ms
$ dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 21.5437 s, 49.8 MB/s
# echo 3 > /proc/sys/vm/drop_caches
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 9.34704 s, 115 MB/s
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 0.40667 s, 2.6 GB/s

OCZ-VERTEX2 240GB

  • SSD: OCZ
  • Model Number: Vertex2
  • Capacity: 240GB
  • User: longint
  • Filesystem: btrfs compression=lzo,space_cache
# hdparm -Tt /dev/sda
/dev/sda:
Timing cached reads:   10972 MB in  2.00 seconds = 5489.70 MB/sec
Timing buffered disk reads: 648 MB in  3.00 seconds = 215.96 MB/sec
# dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 1.26013 s, 852 MB/s
# echo 3 > /proc/sys/vm/drop_caches
# dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 4.45112 s, 241 MB/s
# dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 0.320492 s, 3.4 GB/s

Samsung

SAMSUNG 128GB / SATAII

  • SSD: SAMSUNG 128GB / SATAII
  • Model Number: MMCQE28GFMUP-MVA
  • Capacity: 128 GB
  • User: Cirk
# hdparm -Tt /dev/sda
Timing cached reads:   2612 MB in  2.00 seconds = 1307.40 MB/sec
Timing buffered disk reads: 294 MB in  3.01 seconds =  97.67 MB/sec
Minimum Read Rate: 108.7 MB/s
Maximum Read Rate: 114.5 MB/s
Average Read Rate: 113.7 MB/s
Average Access Time 0.2 ms
$ dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 23.7352 s, 45.2 MB/s
# echo 3 > /proc/sys/vm/drop_caches
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 10.7563 s, 99.8 MB/s
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 0.464824 s, 2.3 GB/s

SAMSUNG 470 64GB

  • SSD: SAMSUNG 470 64GB
  • Model Number: MZ-5PA064/US
  • Firmware: AXM070Q1
  • Capacity: 64 GB
  • User: skylinux
# hdparm -Tt /dev/sda
Timing cached reads:   1736 MB in  2.00 seconds = 868.62 MB/sec
Timing buffered disk reads: 516 MB in  3.00 seconds = 171.87 MB/sec
Minimum Read Rate: 276.5 MB/s
Maximum Read Rate: 278.8 MB/s
Average Read Rate: 278.2 MB/s
Average Access Time 0.2 ms
# dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 5.69714 s, 188 MB/s
# echo 3 > /proc/sys/vm/drop_caches
# dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 5.25116 s, 204 MB/s
# dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 1.05824 s, 1.0 GB/s

Kingston

Kingston SSDNow V+100 128 GB

  • SSD: Kingston SSDNow v+100 128 GB
  • Model Number: SVP100S2128G
  • Firmware: CJRA0202
  • Capacity: 128 GB
  • User: Tuxe
# hdparm -Tt /dev/sda
Timing cached reads:   11598 MB in  1.99 seconds = 5822.73 MB/sec
Timing buffered disk reads: 598 MB in  3.01 seconds = 198.90 MB/sec
Minimum Read Rate: 145.8 MB/s
Maximum Read Rate: 259.2 MB/s
Average Read Rate: 243.5 MB/s
Average Access Time 0.1 ms
# dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 9.74199 s, 110 MB/s
# echo 3 > /proc/sys/vm/drop_caches 
# dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 4.62165 s, 232 MB/s
# dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 0.330142 s, 3.3 GB/s