linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RAID10: how much does chunk size matter? Can partial chunks be written?
@ 2013-01-04 17:54 Andras Korn
  2013-01-04 22:51 ` Stan Hoeppner
  2013-01-04 23:43 ` Peter Grandi
  0 siblings, 2 replies; 11+ messages in thread
From: Andras Korn @ 2013-01-04 17:54 UTC (permalink / raw)
  To: linux-raid

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.

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

end of thread, other threads:[~2013-01-05 21:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-04 17:54 RAID10: how much does chunk size matter? Can partial chunks be written? Andras Korn
2013-01-04 22:51 ` 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

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