2

I have a Software RAID1 disk that is randomly experiencing very slow read times.

hdparm -t /dev/md0
/dev/md0:
Timing buffered disk reads: 2 MB in 12.43 seconds = 164.80 kB/sec

It appears to be one disk in the RAID set that is consistently slower than the other. They are both identical 1.5TB SATA drives though. I've read some tuning advice using hdparm, but it did not seem to apply to SATA drives and I was hesitant to experiment on a production system.

Any advice would be appreciated.

John P
  • 1,659
  • 6
  • 37
  • 56

2 Answers2

1

It's quite possible that one drive is experiencing either errors or abnormal conditions such as high temperature.

Check the SMART logs for more information.

The tuning options in hdparm should apply to SATA drives as well, BTW.

MikeyB
  • 38,725
  • 10
  • 102
  • 186
  • Nothing unusual came out of the SMART logs - parameters for both drives were within a few percentage points of being the same – John P May 13 '11 at 02:13
0

If you want to eliminate the drives as the source of issues with read performance, do some simple tests with dd.

dd if=/dev/sda of=/dev/null bs=32M count=32
dd if=/dev/sdb of=/dev/null bs=32M count=32
dd if=/dev/md0 of=/dev/null bs=32M count=32

(of course, you can use the hdparm tool too / instead, but dd / application level testing may be more indicative of real-world performance, as long as you can simulate your actual load)

Read tests are non-destructive, so this shouldn't affect your array.

Stefan Lasiewski
  • 22,949
  • 38
  • 129
  • 184
Slartibartfast
  • 3,265
  • 17
  • 16