xfs
[Top] [All Lists]

Re: Need SW RAID5 & mkfs.xfs help with chunksize & swidth/su respectivel

To: Justin Piszcz <jpiszcz@xxxxxxxxxxxxxxx>
Subject: Re: Need SW RAID5 & mkfs.xfs help with chunksize & swidth/su respectively
From: David Chinner <dgc@xxxxxxx>
Date: Mon, 19 Jun 2006 08:45:34 +1000
Cc: xfs@xxxxxxxxxxx, linux-raid-owner@xxxxxxxxxxxxxxx
In-reply-to: <Pine.LNX.4.64.0606161722400.4879@p34.internal.lan>
References: <Pine.LNX.4.64.0606161722400.4879@p34.internal.lan>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Fri, Jun 16, 2006 at 05:27:14PM -0400, Justin Piszcz wrote:
> Two questions, a SW RAID and XFS question.
> 
> SW RAID Question: What is the optimal chunk size for a RAID5 that will be 
> used with XFS?

The answer to that is "it depends". It depends on workload, file sizes,
write patterns, etc. There is no magic number that will give you the
best performance in all cases.

> I have 5x400GB Seagate HDDs (ATA/100) w/ 8MB of Cache, 
> each is a master on its own IDE bus.

...

> I have a software raid5 with 5 400GB drives and currently a 512kb 
> chunksize with default mkfs.xfs parameters.
> 
> p34:~# mdadm --create /dev/md3 --verbose --chunk=512 --level=5 
> --raid-devices=5 /dev/hda1 /dev/hde1 /dev/hdg1 /dev/hdi1 /dev/hdk1
> mdadm: layout defaults to left-symmetric
> mdadm: size set to 390708736K
> mdadm: array /dev/md3 started.
> p34:~#
> 
> What parameters for the sunit/sw are optimal for my configuration?  How 
> exactly do I calculate them?

stripe unit = MD chunk size
stripe width = MD Chunk size * number of data disks in stripe (N-1 for RAID5)

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group


<Prev in Thread] Current Thread [Next in Thread>