Friday, September 11, 2015

Benchmarking of Hard disks on N54L using Bonnie++

Getting the hard disk details

First we use smartctl to get the details, you can see there are 3 disks. 2x WD Green 2TB 5400rpm and 1x HP 500GB 7200rpm. The HP one is bundled and I think it's not enough for me to store my data So I buy the WD disks and make it as a mirror.

#smartctl -i /dev/sda
smartctl 6.4 2015-06-04 r4109 [x86_64-linux-3.14.51-1-lts] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Green
Device Model:     WDC WD20EZRX-00D8PB0
Serial Number:    WD-xxxxxxxxxx
LU WWN Device Id: 5 0014ee 6055d1735
Firmware Version: 80.00A80
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Fri Sep 11 17:09:32 2015 HKT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

Continue...


# smartctl -i /dev/sdb
smartctl 6.4 2015-06-04 r4109 [x86_64-linux-3.14.51-1-lts] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Green
Device Model:     WDC WD20EZRX-00D8PB0
Serial Number:    WD-yyyyyyyyyyyyyy
LU WWN Device Id: 5 0014ee 6aeec2ed7
Firmware Version: 80.00A80
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Fri Sep 11 17:09:36 2015 HKT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

# smartctl -i /dev/sdc
smartctl 6.4 2015-06-04 r4109 [x86_64-linux-3.14.51-1-lts] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     MB0500EBNCR
Serial Number:    zzzzzzzzzzzzz
LU WWN Device Id: 5 0014ee 0593c0fce
Firmware Version: HPG2
User Capacity:    500,107,862,016 bytes [500 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Fri Sep 11 17:09:37 2015 HKT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

ZPOOLs 

I formed 2 zpools. The pool1 is made of the single HP 500GB disks, while pool2 is made of the WD disks and protected by software mirror.
# zpool  status
  pool: pool1
 state: ONLINE
  scan: scrub repaired 0 in 1h2m with 0 errors on Thu Sep 10 20:32:30 2015
config:

NAME        STATE     READ WRITE CKSUM
pool1      ONLINE       0     0     0
 sdc       ONLINE       0     0     0

errors: No known data errors

  pool: pool2
 state: ONLINE
  scan: scrub repaired 0 in 1h15m with 0 errors on Fri Sep  4 20:45:16 2015
config:

NAME        STATE     READ WRITE CKSUM
pool2      ONLINE       0     0     0
 mirror-0  ONLINE       0     0     0
   sda     ONLINE       0     0     0
   sdb     ONLINE       0     0     0

errors: No known data errors

My plan is to store my data on pool2 while pool1 is used for some 'not so important' stuff, such as Linux distribution ISO, proxy cache. Since the green one is cheaper and larger. I'd rather buy two form a mirror pool.

Then I wonder, what's the performance with a mirror raid of 5400rpm disks vs a 7200rpm disk? With the help of Bonnie++, i got the following result.



The green means the WD disks while the black means the HP disk. Surprisingly, the WD green disks perform quite well, though they are cheaper and with a slower rpm. The random seeks test result is quite good, maybe it's due to software mirror and have a faster seek time. Anyway, I think buying the WD disk is a good choice. If data protection is a concern, just buy one more!

Product reference:

No comments: