From: Andras Korn <korn@raidlist.elan.rulez.org>
To: linux-raid@vger.kernel.org
Subject: RAID10: how much does chunk size matter? Can partial chunks be written?
Date: Fri, 4 Jan 2013 18:54:59 +0100 [thread overview]
Message-ID: <20130104175458.GA3298@hellgate> (raw)
Hi,
I have a RAID10 array with the default chunksize of 512k:
md124 : active raid10 sdg3[6] sdd3[0] sda3[7] sdh3[3] sdf3[2] sde3[1]
1914200064 blocks super 1.2 512K chunks 3 far-copies [6/6] [UUUUUU]
bitmap: 4/15 pages [16KB], 65536KB chunk
I have an application on top of it that writes blocks of 128k or less, using
multiple threads, pretty randomly (but reads dominate, hence far-copies;
large sequential reads are relatively frequent).
I wonder whether re-creating the array with a chunksize of 128k (or maybe
even just 64k) could be expected to improve write performance. I assume the
RAID10 implementation doesn't read-modify-write if writes are not aligned to
chunk boundaries, does it? In that case, reducing the chunk size would just
increase the likelihood of more than one disk (per copy) being necessary to
service each request, and thus decrease performance, right?
I understand that small chunksizes favour single-threaded sequential
workloads (because all disks can read/write simultaneously, thus adding
their bandwidth together), whereas large(r) chunksizes favour multi-threaded
random access (because a single disk may be enough to serve each request,
while the other disks serve other requests).
So: can RAID10 issue writes that start at some offset from a chunk boundary?
Thanks.
--
Andras Korn <korn at elan.rulez.org>
Visit the Soviet Union before it visits you.
next reply other threads:[~2013-01-04 17:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-04 17:54 Andras Korn [this message]
2013-01-04 22:51 ` RAID10: how much does chunk size matter? Can partial chunks be written? Stan Hoeppner
2013-01-04 23:41 ` Andras Korn
2013-01-05 0:27 ` Chris Murphy
2013-01-05 0:46 ` Stan Hoeppner
2013-01-05 7:44 ` Andras Korn
2013-01-05 1:30 ` Chris Murphy
2013-01-05 8:15 ` Andras Korn
2013-01-05 18:57 ` Chris Murphy
2013-01-05 21:01 ` Andras Korn
2013-01-04 23:43 ` Peter Grandi
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=20130104175458.GA3298@hellgate \
--to=korn@raidlist.elan.rulez.org \
--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).