xfs fs creation optimization
mkfs.xfs -d agcount=4 -l size=32m /dev/sdx
Pass noatime,nodiratime,osyncisdsync to your fstab and mount. -l size=32m, tells mkfs.xfs to configure your filesystem so that it has a 32 MB metadata journal. In my situation, it is important while under heavy load the journal will not fill up; or less of a possibility that it would. agcount minimizes the number of allocation groups that are created, which improves performance in high performance servers. Note; too many of these groups add filesystem overhead.
I used this in a “backup scenario”. If you’re doing a RAID setup, rules change and this creation will probably *not* be the correct one to use; it’s all dependent on your usage intentions/RAID type/number of drives, etc.
Don @ April 25, 2008