linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Help: very slow software RAID 5.
@ 2007-09-18 23:09 Dean S. Messing
  2007-09-19  0:05 ` Justin Piszcz
  0 siblings, 1 reply; 44+ messages in thread
From: Dean S. Messing @ 2007-09-18 23:09 UTC (permalink / raw)
  To: linux-raid



I'm not getting nearly the read speed I expected
from a newly defined software RAID 5 array
across three disk partitions (on the 3 drives,
of course!).

Would someone kindly point me straight?

After defining the RAID 5 I did `hdparm -t /dev/md0'
and got the abysmal read speed of ~65MB/sec.
The individual device speeds are ~55, ~70,
and ~75 MB/sec.

Shouldn't this array be running (at the slowest)
at about 55+70 = 125 MB/sec minus some overhead?
I defined a RAID0 on the ~55 and ~70 partitions
and got about 110 MB/sec.

Shouldn't adding a 3rd (faster!) drive into the
array make the RAID 5 speed at least this fast?


Here are the details of my setup:

Linux Fedora 7, kernel 2.6.22.

# fdisk -l /dev/sda

Disk /dev/sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         127     1020096   82  Linux swap / Solaris
/dev/sda2   *         128         143      128520   83  Linux
/dev/sda3             144       19452   155099542+  fd  Linux raid autodetect


# fdisk -l /dev/sdb

Disk /dev/sdb: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         127     1020096   82  Linux swap / Solaris
/dev/sdb2             128         143      128520   83  Linux
/dev/sdb3             144       19452   155099542+  fd  Linux raid autodetect



# fdisk -l /dev/sdc

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1         127     1020096   82  Linux swap / Solaris
/dev/sdc2             128       19436   155099542+  fd  Linux raid autodetect
/dev/sdc3           19437       60801   332264362+  8e  Linux LVM


The RAID 5 consists of sda3, sdb3, and sdc2.
These partitions have these individual read speeds:

# hdparm -t /dev/sda3 /dev/sdb3 /dev/sdc2

/dev/sda3:
 Timing buffered disk reads:  168 MB in  3.03 seconds =  55.39 MB/sec

/dev/sdb3:
 Timing buffered disk reads:  216 MB in  3.03 seconds =  71.35 MB/sec

/dev/sdc2:
 Timing buffered disk reads:  228 MB in  3.02 seconds =  75.49 MB/sec


After defining RAID 5 with:

mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sda3 /dev/sdb3 /dev/sdc2

and waiting the 50 minutes for /proc/mdstat to show it was finished,
I did `hdparm -t /dev/md0' and got ~65MB/sec.

Dean



^ permalink raw reply	[flat|nested] 44+ messages in thread

end of thread, other threads:[~2007-10-01  4:45 UTC | newest]

Thread overview: 44+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-18 23:09 Help: very slow software RAID 5 Dean S. Messing
2007-09-19  0:05 ` Justin Piszcz
2007-09-19  1:49   ` Dean S. Messing
2007-09-19  8:38     ` Justin Piszcz
2007-09-19 17:49       ` Dean S. Messing
2007-09-19 18:25         ` Justin Piszcz
2007-09-19 23:31           ` Dean S. Messing
2007-09-20  8:25             ` Justin Piszcz
2007-09-20 18:16             ` Michal Soltys
2007-09-20 19:06               ` Dean S. Messing
2007-09-20 15:33         ` Bill Davidsen
2007-09-20 18:47           ` Dean S. Messing
2007-09-20 21:08             ` Michael Tokarev
2007-09-21  0:58               ` Dean S. Messing
2007-09-21 13:00                 ` Bill Davidsen
2007-09-21 20:01                   ` Dean S. Messing
2007-09-21 20:21                   ` Dean S. Messing
2007-09-25  9:31                 ` Goswin von Brederlow
2007-09-25 18:16                   ` Dean S. Messing
2007-09-25 21:46                     ` Goswin von Brederlow
2007-09-25 23:50                       ` Dean S. Messing
2007-09-26  1:45                         ` Goswin von Brederlow
2007-09-27  6:23                           ` Dean S. Messing
2007-09-27  9:51                             ` Michal Soltys
2007-09-27 22:10                               ` Backups w/ rsync (was: Help: very slow software RAID 5.) Dean S. Messing
2007-09-28  7:57                                 ` Backups w/ rsync Michael Tokarev
2007-09-28 10:23                                   ` Goswin von Brederlow
2007-09-28 11:18                                     ` Michal Soltys
2007-09-28 12:47                                       ` Goswin von Brederlow
2007-09-28 14:17                                         ` Michal Soltys
2007-09-29  0:11                                   ` Dean S. Messing
2007-09-29  8:43                                     ` Michael Tokarev
2007-09-28 14:48                                 ` Bill Davidsen
2007-09-28 14:57                                   ` Wolfgang Denk
2007-09-28 16:50                                     ` Bill Davidsen
2007-10-01  4:45                                     ` Michal Soltys
2007-09-28 15:11                                   ` Jon Nelson
2007-09-28 16:25                                     ` Bill Davidsen
2007-09-28 16:52                                       ` Jon Nelson
2007-09-27 22:40                         ` Help: very slow software RAID 5 Bill Davidsen
2007-09-28 23:38                           ` Dean S. Messing
2007-09-29 14:52                             ` Bill Davidsen
2007-09-27 22:17                     ` Bill Davidsen
2007-09-28 23:21                       ` Dean S. Messing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).