linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Raid sync observations
@ 2005-12-20 17:18 Sebastian Kuzminsky
  2005-12-20 18:14 ` Sebastian Kuzminsky
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Sebastian Kuzminsky @ 2005-12-20 17:18 UTC (permalink / raw)
  To: linux-raid

I just created a RAID array (4-disk RAID-6).  When "mdadm -C" returned,
/proc/mdstat showed it syncing the new array at about 17 MB/s.  "vmstat 1"
showed hardly any blocks in or out, and an almost completely idle cpu.


Question 1: Why didnt the raid sync I/O show up with vmstat?


Question 2: Why was it limited to 17 MB per second?  The maximum was
left at the default, 200 MB/s.  The min was also at the default, 1 MB/s.
I get 60 MB/s per disk with "hdparm -tT" (that's using one disk at a time,
but still).  The checksumming code does > 3 GB/s.


Just curious really.  This is with 2.6.15-rc5 and SATA disks via libata.


-- 
Sebastian Kuzminsky

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Raid sync observations
@ 2005-12-20 18:27 Andrew Burgess
  2005-12-20 19:13 ` Sebastian Kuzminsky
  0 siblings, 1 reply; 12+ messages in thread
From: Andrew Burgess @ 2005-12-20 18:27 UTC (permalink / raw)
  To: linux-raid

>I just created a RAID array (4-disk RAID-6).  When "mdadm -C" returned,
>/proc/mdstat showed it syncing the new array at about 17 MB/s.  "vmstat 1"
>showed hardly any blocks in or out, and an almost completely idle cpu.

>Question 1: Why didnt the raid sync I/O show up with vmstat?

I switched to iostat because of similar observations with vmstat. iostat
at least shows you which devices it is looking at and it agrees with
/proc/mdstat's numbers in my experience.

>Question 2: Why was it limited to 17 MB per second?  The maximum was
>left at the default, 200 MB/s.  The min was also at the default, 1 MB/s.
>I get 60 MB/s per disk with "hdparm -tT" (that's using one disk at a time,
>but still).  The checksumming code does > 3 GB/s.

Try using dd to read each device in parallel as it might be a bus or controller
limitation. Also, sync requires writing interspersed with the reads which
unavoidably ruins the total throughput. Larger stripes should minimize this if
you think it'll be a problem during everyday use.


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Raid sync observations
@ 2005-12-20 22:09 Jeff Breidenbach
  0 siblings, 0 replies; 12+ messages in thread
From: Jeff Breidenbach @ 2005-12-20 22:09 UTC (permalink / raw)
  To: linux-raid


>I'll just call it sync access pattern overhead then.

As another data point, I've been adding more and more
drives to a RAID-1 array. Yesterday I just added a fourth
disk which is still syncing.

       mdadm --grow /dev/md0 -n4
       mdadm --manage /dev/md0 --add /dev/sde

md0 : active raid1 sde1[4] sdc1[0] sdb1[2] sdd1[1]
      488383936 blocks [4/3] [UUU_]
      [=====>...............]  recovery = 27.6% (134963968/488383936) finish=1739.7min speed=3384K/sec

In general I'm seeing somewhere between 2 to 4 MB/s on the currently
running sync. Which is fine, no problem. The array is live and
currently handling some traffic. But these are pretty fast disks, and
running simple things like

	hdparm -tT /dev/sde
	nice dd_rescue /dev/md0 /dev/null

all show pretty big numbers. This provides some intuition that there
may be room for improvement in sync speed. Kernel 2.6.14, no fancy
RAID bitmaps involved.

Jeff




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

end of thread, other threads:[~2006-01-08 18:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-20 17:18 Raid sync observations Sebastian Kuzminsky
2005-12-20 18:14 ` Sebastian Kuzminsky
2005-12-20 21:27 ` Neil Brown
2005-12-20 21:33   ` Sebastian Kuzminsky
2005-12-21  1:55 ` Christopher Smith
2005-12-21 11:49   ` Andy Smith
2005-12-21 17:02     ` Sebastian Kuzminsky
2005-12-21 17:13       ` Gordon Henderson
2006-01-08 18:18         ` Bill Davidsen
  -- strict thread matches above, loose matches on Subject: below --
2005-12-20 18:27 Andrew Burgess
2005-12-20 19:13 ` Sebastian Kuzminsky
2005-12-20 22:09 Jeff Breidenbach

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).