linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Keld Jørn Simonsen" <keld@dkuug.dk>
To: David Rees <drees76@gmail.com>
Cc: John Robinson <john.robinson@anonymous.org.uk>,
	linux-raid@vger.kernel.org
Subject: Re: raind-1 resync speed slow down to 50% by the time it finishes
Date: Wed, 5 Aug 2009 10:20:13 +0200	[thread overview]
Message-ID: <20090805082013.GD23696@rap.rap.dk> (raw)
In-Reply-To: <72dbd3150908041642i64583624q7574cafcb8bac1a0@mail.gmail.com>

On Tue, Aug 04, 2009 at 04:42:10PM -0700, David Rees wrote:
> On Tue, Aug 4, 2009 at 4:18 PM, John
> Robinson<john.robinson@anonymous.org.uk> wrote:
> > On 04/08/2009 23:21, David Rees wrote:
> >> Near layout, 4 disks, 2 copies:
> >> a b c d
> >> 0 0 1 1
> >> 2 2 3 3
> >> 4 4 5 5
> >> 6 6 7 7
> >>
> >> Far layout, 4 disks, 2 copies
> >> a b c d
> >> 0 1 2 3
> >> 4 5 6 7
> >> 7 0 1 2
> >> 3 4 5 6
> >
> > But I don't think I'd want reads isolated to the first half of the disc. If
> > I wanted a block read, and the drive which has its near copy is already
> > busy, but the drive with the far copy is idle, I'd probably rather the read
> > came from the far copy, than wait for the drive with the near copy to come
> > free.
> >
> > For example, say I want block 0, and there's a write pending for block 3. I
> > want block 0 from drive b now, not drive a later.
> 
> In that case, it seems that it should be fastest to retrieve it from
> the idle disk b, even if it has to go to the slower half of the disk.
> After all, any write will take at least as long as the read will.

You seem to not appreciate the elevator queue as I explained it in a
previous message. Disks are not idle, they are always servicing their
elevator queue.

> > Or will I actually get more IOPS by waiting, if I'm doing a lot of small
> > reads and writes?
> 
> I doubt it - if you're doing a lot of small reads and writes, during
> the writes the heads will be frequently seeking to the slow half of
> the disk, anyway.

Writes are only done when the caches are to be flushed, like every 30
secs or 5 secs or so.  And the writes will be ordered by the elevator
algorithm to minimize the seeks, very considerably. Given that the IO is
random, in theory there should not be any difference on the ordered
random queues of raid10,f2 and raid10,n2.

> Of course, benchmarks would tell for sure.  ;-)

Sure!

Best regards
keld

  reply	other threads:[~2009-08-05  8:20 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-30  6:25 raind-1 resync speed slow down to 50% by the time it finishes Tirumala Reddy Marri
2009-07-30  7:35 ` Robin Hill
2009-07-30 10:18   ` Keld Jørn Simonsen
2009-07-30 20:11     ` David Rees
2009-07-31 17:54       ` Keld Jørn Simonsen
2009-07-31 18:10         ` Keld Jørn Simonsen
2009-07-31 20:10         ` David Rees
2009-08-01 13:00           ` Keld Jørn Simonsen
2009-08-01 15:13             ` David Rees
2009-08-01 17:57               ` Keld Jørn Simonsen
2009-08-04 22:21                 ` David Rees
2009-08-04 23:18                   ` John Robinson
2009-08-04 23:42                     ` David Rees
2009-08-05  8:20                       ` Keld Jørn Simonsen [this message]
2009-08-05  8:08                     ` Keld Jørn Simonsen
2009-08-05  7:44                   ` Keld Jørn Simonsen
2009-08-05  8:18                     ` NeilBrown
2009-07-30  8:44 ` Mikael Abrahamsson
2009-07-30 18:35 ` Tracy Reed
2009-07-30 20:28   ` David Rees

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090805082013.GD23696@rap.rap.dk \
    --to=keld@dkuug.dk \
    --cc=drees76@gmail.com \
    --cc=john.robinson@anonymous.org.uk \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).