public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* raid-1 with raid-0 and normal disk -> performance and autostart?
@ 2001-02-01 10:18 Daniel Schroeter
  2001-02-05  3:58 ` Neil Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Schroeter @ 2001-02-01 10:18 UTC (permalink / raw)
  To: linux-kernel

hi,
i using kernel 2.4.1. mkraid version 0.90.0
i build /dev/md0 raid-0 with hda5 and sda1. then i build /dev/md1 raid-1 
with /dev/md0 and sdb1.
it works fine.
BUT the resync takes a long time. i have a performance from 253K/sec. 
whats there wrong?
[root@mendocino <mailto:root@mendocino> /root]# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid5]
read_ahead 1024 sectors
md0 : active raid1 md1[1] sdb1[0]
      8891712 blocks [2/2] [UU]
      [>....................]  resync =  0.0% (5572/8891712) 
finish=581.8min speed=253K/sec
md1 : active raid0 sda1[1] hda5[0]
      8891776 blocks 4k chunks

unused devices: <none>

if i build a raid-1 with sdb1 and hda5 i get:

Personalities : [linear] [raid0] [raid1] [raid5]
read_ahead 1024 sectors
md0 : active raid1 sdb1[1] hda5[0]
      4449920 blocks [2/2] [UU]
      [>....................]  resync =  0.4% (21952/4449920) 
finish=10.0min speed=7317K/sec
unused devices: <none>

i get the same speer also with sda1 and sdb1.
any ideas?

i will mount the raid-10 (or 01???) as "/". but the autodetection 
doesn't work corect. the partitions are all "Linux raid autodetect". the 
raid-0 starts fine. if he tries to start the raid-1 the dev md0 will not 
integrated in the array. must i start a ramdisk, and starting there 
manuell the raid-1? if i change md1 and md0 it's the same.

THNX
CU
    daniel


raidtab:

raiddev /dev/md0
    raid-level                0
    nr-raid-disks             2
    persistent-superblock     1
    chunk-size                4

    device                    /dev/hda5
    raid-disk                 0
    device                    /dev/sda1
    raid-disk                 1

raiddev /dev/md1
    raid-level                1
    nr-raid-disks             2
   persistent-superblock     1 # i tried also 0 here
    chunk-size                4

    device                    /dev/sdb1
    raid-disk                 0
    device                    /dev/md0
    raid-disk                 1

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: raid-1 with raid-0 and normal disk -> performance and autostart?
  2001-02-01 10:18 raid-1 with raid-0 and normal disk -> performance and autostart? Daniel Schroeter
@ 2001-02-05  3:58 ` Neil Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Neil Brown @ 2001-02-05  3:58 UTC (permalink / raw)
  To: Daniel Schroeter; +Cc: linux-kernel, linux-raid

On Thursday February 1, d.schroeter@gmx.de wrote:
> hi,
> i using kernel 2.4.1. mkraid version 0.90.0
> i build /dev/md0 raid-0 with hda5 and sda1. then i build /dev/md1 raid-1 
> with /dev/md0 and sdb1.
> it works fine.
> BUT the resync takes a long time. i have a performance from 253K/sec. 
> whats there wrong?

The resync code tries to detect other (non-resync) IO on the devices
and throttle back the resync process if there is any other IO.
Because you can build a RAID array from partitions, and because it is
IO to the device rather than the partition that md wants to meausure,
md needs to figure out what actual device the IO is on, and keep track
of that.

When one of the underlying devices is a raid0 array, md fails to guess
properly and I suspect that this is causing the problem.  It is
concluding that there is always IO to that device, and constantly
throttling.

You can control the throttling with
   /proc/sys/dev/raid/speed_limit_min
and
   /proc/sys/dev/raid/speed_limit_max

If you put a nice big number in speed_limit_min, it should rebuild
more quickly for you, at the cost of interfering with any other IO to
the device.

NeilBrown

> [root@mendocino <mailto:root@mendocino> /root]# cat /proc/mdstat
> Personalities : [linear] [raid0] [raid1] [raid5]
> read_ahead 1024 sectors
> md0 : active raid1 md1[1] sdb1[0]
>       8891712 blocks [2/2] [UU]
>       [>....................]  resync =  0.0% (5572/8891712) 
> finish=581.8min speed=253K/sec
> md1 : active raid0 sda1[1] hda5[0]
>       8891776 blocks 4k chunks
> 
> unused devices: <none>
> 
> if i build a raid-1 with sdb1 and hda5 i get:
> 
> Personalities : [linear] [raid0] [raid1] [raid5]
> read_ahead 1024 sectors
> md0 : active raid1 sdb1[1] hda5[0]
>       4449920 blocks [2/2] [UU]
>       [>....................]  resync =  0.4% (21952/4449920) 
> finish=10.0min speed=7317K/sec
> unused devices: <none>
> 
> i get the same speer also with sda1 and sdb1.
> any ideas?
> 
> i will mount the raid-10 (or 01???) as "/". but the autodetection 
> doesn't work corect. the partitions are all "Linux raid autodetect". the 
> raid-0 starts fine. if he tries to start the raid-1 the dev md0 will not 
> integrated in the array. must i start a ramdisk, and starting there 
> manuell the raid-1? if i change md1 and md0 it's the same.
> 
> THNX
> CU
>     daniel
> 
> 
> raidtab:
> 
> raiddev /dev/md0
>     raid-level                0
>     nr-raid-disks             2
>     persistent-superblock     1
>     chunk-size                4
> 
>     device                    /dev/hda5
>     raid-disk                 0
>     device                    /dev/sda1
>     raid-disk                 1
> 
> raiddev /dev/md1
>     raid-level                1
>     nr-raid-disks             2
>    persistent-superblock     1 # i tried also 0 here
>     chunk-size                4
> 
>     device                    /dev/sdb1
>     raid-disk                 0
>     device                    /dev/md0
>     raid-disk                 1
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> Please read the FAQ at http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

end of thread, other threads:[~2001-02-05  3:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-01 10:18 raid-1 with raid-0 and normal disk -> performance and autostart? Daniel Schroeter
2001-02-05  3:58 ` Neil Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox