public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* sunit-swidth parameters
@ 2007-06-25  1:03 Richard Scobie
  0 siblings, 0 replies; only message in thread
From: Richard Scobie @ 2007-06-25  1:03 UTC (permalink / raw)
  To: xfs

I am under the impression that mkfs.xfs is able to obtain details from 
the Linux md subsystem, such that it will automatically  create  the 
optimal sunit and swidth parameters, to suit an md RAID array on which 
the filesystem is being created.

Please correct me if I am wrong.

If this is the case, then I am a little confused by the following:

mkfs.xfs -f -l logdev=/dev/md1,size=10000b /dev/md5

meta-data=/dev/md5               isize=256    agcount=32, agsize=7630656 
blks
          =                       sectsz=4096  attr=0
data     =                       bsize=4096   blocks=244179840, imaxpct=25
          =                       sunit=64     swidth=128 blks, unwritten=1
naming   =version 2              bsize=4096
log      =/dev/md1               bsize=4096   blocks=10000, version=1
          =                       sectsz=512   sunit=0 blks
realtime =none                   extsz=524288 blocks=0, rtextents=0

This is the output where /dev/md5 is a 3 disk RAID5, with a chunk size 
of 128kB.

After reading the man page and looking at some examples in the mailing 
list archives, I would have thought that the best  sizes would have been 
sunit=32 and swidth=64, or am I wrong?

I ask, as I am about to resize this array by adding another drive and am 
trying to work out the new values for these parameters, to pass to mount 
- the values I have come up with are sunit=256 and swidth=768.

Thanks,

Richard

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-25  8:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-25  1:03 sunit-swidth parameters Richard Scobie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox