Skip to contentSkip to conversation

altering defaults

DISCUSSION prad 3 participants 4 messages Jun 3, 2011 – Jun 6, 2011

lore
Share & tools
lore

prad

author
#0 lore raw

i'm new to xfs (courtesy of most helpful and encouraging commentary by stan hoeppner!) and i've seen some advice which says to make the
block size -> 512
directory size -> 4096

on the other hand, i've also come across webpages which say don't mess around! keep the defaults as they are unless you are absolutely sure that changing it suits your purpose and know why.

my question is for the data storage area on a web/email server. we're mainly going to have small files there and the email part will have only temporary files for the most part since people will download (ie pop).

it makes sense to make the block size = 512, but i wonder if it really matters noticeably. the server is not a heavily visited one and only on very rare occasions will we get around 50000 hits/day - most of the time we're looking at under 10000 and that is with all the domains combined.

Signature · 7 lines
in friendship,
prad

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
#1 lore raw

Hi Prad!

Quoted 4 lines

on the other hand, i've also come across webpages which say don't mess around! keep the defaults as they are unless you are absolutely sure that changing it suits your purpose and know why.

I would do it exactly that way. XFS works reasonably well for all ordinary things with the defaults (under the assumption that you are using a reasonably up-to-date version of xfsprogs i.e. mkfs.xfs) and you shouldn't fiddle with them unless you have very good reasons doing so. Considering your current load on the server it shouldn't matter at all and staying with the defaults is also a good way to ensure people will be able to reproduce problems and help you in case you run into problems.

Just my 2cents

cheers,
Michael

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#2 lore raw
In reply to prad
Quoted 8 lines · prad

i'm new to xfs (courtesy of most helpful and encouraging commentary by stan hoeppner!) and i've seen some advice which says to make the
block size -> 512
directory size -> 4096

on the other hand, i've also come across webpages which say don't mess around! keep the defaults as they are unless you are absolutely sure that changing it suits your purpose and know why.

Yup. See "Q: I want to tune my XFS filesystems for <something> "
http://xfs.org/index.php/XFS_FAQ#Q:_I_want_to_tune_my_XFS_filesystems_for_.3Csomething.3E

Quoted 8 lines

my question is for the data storage area on a web/email server. we're mainly going to have small files there and the email part will have only temporary files for the most part since people will download (ie pop).

it makes sense to make the block size = 512, but i wonder if it really matters noticeably. the server is not a heavily visited one and only on very rare occasions will we get around 50000 hits/day - most of the time we're looking at under 10000 and that is with all the domains combined.

If space efficiency is a consideration then smaller blocksizes might be useful. Not so much for hits per day, but for how many files you expect to store at any one time; you'll waste ((blocksize / 2) * nr files) on average.

-Eric

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

author
#3 lore raw
Quoted 5 lines · Eric Sandeen

If space efficiency is a consideration then smaller blocksizes might be useful. Not so much for hits per day, but for how many files you expect to store at any one time; you'll waste ((blocksize / 2) * nr files) on average.

space is not likely an issue at all.
if there is no efficiency issue the usage of 4096 bytes hardly seems significant.

so thx eric and michael for your input on this!
we'll leave things alone. :D

Signature · 7 lines
in friendship,
prad

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs