Some years ago I found this old but still usefull guide for xfs performance tweaking on linux:

Filesystem performance tweaking with XFS on Linux

which is, esencially, a two-steps simple procedure:


Create xfs filesystem with a 64 megabyte log
# mkfs.xfs -f -l size=64m /dev/hda3

Mount filesystem with 8 log buffers, and atime and diratime disabled
# mount -o noatime,nodiratime,logbufs=8 /dev/hda3 /mnt/gentoo/

These simple tweaks do help! specially on large RAID partitions.

- Corrections, comments, and suggestions are always welcome -

-=kp=-

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

2 Responses to “XFS Filesystem performance tweaking on Linux”  

  1. 1 mudrii

    Hi
    I use xfs on my RAID 1 server
    mkfs.xfs -l internal,size=128m -d agcount=8 /dev/md0
    mount -t xfs /dev/md0 /mnt/gentoo -o noatime,nodiratime,nobarrier,logbufs=8

  2. 2 -=kp=-

    I tried a 128m log too, but didn't find any significant performance increase vs. a 64m log... I use raid 5 boxes though.

    I haven't tested the difference with nobarrier activated, does it have a significative improvement?

Leave a Reply