public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* tuning, many small files, small blocksize
@ 2008-02-16  5:01 Jeff Breidenbach
  2008-02-16  9:28 ` Hannes Dorbath
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Jeff Breidenbach @ 2008-02-16  5:01 UTC (permalink / raw)
  To: xfs

I'm testing xfs for use in storing 100 million+ small files
(roughly 4 to 10KB each) and some directories will contain
tens of thousands of files. There will be a lot of random
reading, and also some random writing, and very little
deletion. The underlying disks use linux software RAID-1
manged by mdadm with 5X redundancy. E.g. 5 drives that
completely mirror each other.

I am setting up the xfs partition now, and have only played
with blocksize so far. 512 byte blocks are most space efficient,
1024 byte blocks cost 3.3% additional space, and 4096 byte
blocks cost 22.3% additional space. I do not know of a good
way to benchmark filesystem speed; iozone -s 5 did not provide
meaningful results due to poor timing quantization.

My questions are:

a) Should I just go with the 512 byte blocksize or is that going to be
bad for some performance reason? Going to 1024 is no problem,
but I'd prefer not to waste 20% of the partition capacity by using 4096.

b) Are there any other mkfs.xfs paramters that I should play with.

Thanks for any response; I did do quite some searching for
recommended turning parameters, but did not find definitive answers.
The general consensus was xfs does pretty good tuning itself, but
almost none of the published benchmarks or recommendation go with
small blocksizes and I want to make sure I'm not about to do something
totally stupid. Like quadruple the number of seeks on the disk.

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

end of thread, other threads:[~2008-02-20  6:13 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-16  5:01 tuning, many small files, small blocksize Jeff Breidenbach
2008-02-16  9:28 ` Hannes Dorbath
2008-02-16 10:24   ` Jeff Breidenbach
2008-02-16 20:30     ` Jeff Breidenbach
2008-02-19  0:48     ` Timothy Shimmin
2008-02-16 12:23 ` pg_xfs2
2008-02-18 22:53 ` David Chinner
2008-02-18 23:12 ` Linda Walsh
2008-02-18 23:51   ` David Chinner
2008-02-19  1:03     ` Linda Walsh
2008-02-19  2:49       ` David Chinner
2008-02-19  4:58         ` Jeff Breidenbach
2008-02-19  8:27           ` Peter Grandi
2008-02-19 11:44             ` Hannes Dorbath
2008-02-19 21:24               ` Peter Grandi

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