linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mario 'BitKoenig' Holbe <Mario.Holbe@TU-Ilmenau.DE>
To: linux-raid@vger.kernel.org
Subject: Re: Propose of enhancement of raid1 driver
Date: Mon, 23 Oct 2006 17:28:09 +0200	[thread overview]
Message-ID: <ehin29$80g$1@sea.gmane.org> (raw)
In-Reply-To: 17718.61672.794099.425723@cse.unsw.edu.au

Neil Brown <neilb@suse.de> wrote:
> Skipping over blocks within a track is no faster than reading blocks
> in the track, so you would need to make sure that your chunk size is

Not even "no faster" but probably even "slower".
For seek()+read() from userspace this gets smoothed by the kernel's
implicit read-ahead but for md this would most likely be different.
It gets IMHO further smoothed by the drive's internal cache.
Of course, there is a break-even point where seek()+read() gets faster
than sequential read() but this is surely environment-dependant.
A student of mine did some tests (in another context and from userspace,
though) to find the break-even point and found seek()+read() and
sequential read() to be quite equal up to 512k and significantly
different only at 1M and more (in his testing environment, of course).
So, to utilize this one would surely need some adaptive strategy which
measures the break-even point and somehow also identifies "large
sequential read()s" to minimize useless data transfers (and thus cache
poisoning at the different caching stages).


regards
   Mario
-- 
But after a while I learned the trick of speaking fast. You don't have
to think any faster; just use twice as many words to say everything.
                                -- Paul Graham


  parent reply	other threads:[~2006-10-23 15:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-17  6:51 Propose of enhancement of raid1 driver Miroslaw Mieszczak
2006-10-19  3:28 ` Neil Brown
2006-10-19 16:06   ` Doug Ledford
2006-10-20  4:59   ` Jeff Breidenbach
2006-10-21 16:01   ` Tomasz Chmielewski
2006-10-23  1:33     ` Neil Brown
2006-10-23 15:28   ` Mario 'BitKoenig' Holbe [this message]
2006-10-28 17:31     ` Al Boldi
2006-10-28 20:30       ` Mario 'BitKoenig' Holbe
2006-10-30 15:44         ` Al Boldi
2006-10-30 17:02           ` Mario 'BitKoenig' Holbe
2006-10-30 17:55             ` Al Boldi
2006-10-30 17:59               ` Jeff Breidenbach
2006-10-30 20:50               ` Mario 'BitKoenig' Holbe

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='ehin29$80g$1@sea.gmane.org' \
    --to=mario.holbe@tu-ilmenau.de \
    --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).