From: joystick <joystick@shiftmail.org>
To: Phillip Susi <psusi@ubuntu.com>
Cc: linux-raid <linux-raid@vger.kernel.org>
Subject: Re: The chunk size paradox
Date: Thu, 02 Jan 2014 15:49:31 +0100 [thread overview]
Message-ID: <52C57C7B.80400@shiftmail.org> (raw)
In-Reply-To: <52C1C01A.7010407@ubuntu.com>
On 30/12/2013 19:48, Phillip Susi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I believe that using a single "chunk size" causes a lose-lose tradeoff
> when creating raid 5/6/10 arrays.
I don't think your analysis is correct.
Firstly you are forgetting that multiple requests are issued
simultaneously to one disk by the kernel, and they can be served
out-of-order via NCQ / TCQ by the disks. The kernel does not wait for
sector N to be read before issuing the read for sector N+1, it issues a
lot of them together since it knows how much data it has to read (via
readahead, most of the times). The disk reorders read/write requests
according to its angular position, so you almost never pay for the
angular offset during a sequential read/write, not even when skipping
redundant data from one component disk of the RAID.
Secondly, for writes, I suspect you are assuming that a whole stipe has
to be read and rewritten in order for one small write to be performed,
but it is not so. For a 4k write in raid5, two 4k sectors are read, then
two 4k sectors are written, and this is completely independent from
chunk size. It already behaves mostly like your "groups", which are the
stripes actually.
next prev parent reply other threads:[~2014-01-02 14:49 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-30 18:48 The chunk size paradox Phillip Susi
2013-12-30 23:38 ` Peter Grandi
2013-12-31 0:01 ` Wolfgang Denk
2013-12-31 13:51 ` David Brown
2014-01-02 20:08 ` Phillip Susi
2014-01-02 14:49 ` joystick [this message]
2014-01-02 15:24 ` Phillip Susi
2014-01-02 15:41 ` Stan Hoeppner
2014-01-02 16:31 ` Phillip Susi
2014-01-02 18:02 ` Stan Hoeppner
2014-01-02 19:10 ` Phillip Susi
2014-01-02 22:49 ` Peter Grandi
2014-01-02 23:16 ` Stan Hoeppner
2014-01-03 1:02 ` Phillip Susi
2014-01-02 19:21 ` Joe Landman
2014-01-02 22:42 ` Stan Hoeppner
2014-01-02 22:56 ` Carsten Aulbert
2014-01-03 0:19 ` Phillip Susi
2014-01-03 1:24 ` Stan Hoeppner
2014-01-03 3:14 ` Joe Landman
2014-01-03 3:19 ` Stan Hoeppner
2014-01-03 4:24 ` Stan Hoeppner
2014-01-02 23:22 ` Peter Grandi
2014-01-03 3:09 ` Joe Landman
2014-01-03 4:58 ` Joe Landman
2014-01-02 22:32 ` Wolfgang Denk
2014-01-03 14:51 ` Benjamin ESTRABAUD
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=52C57C7B.80400@shiftmail.org \
--to=joystick@shiftmail.org \
--cc=linux-raid@vger.kernel.org \
--cc=psusi@ubuntu.com \
/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).