• 14th January 2008 - By Jorge_S

    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=-

    • 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
    • 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?
    • Bock
      the mount option nobarrier increases the risk of a filesystem failure after an unexpected shutdown. I don't recommend to use it
    • Bock: I am using noatime and nodiratime - What do you mean by nobarrier?
    • nobody
      the first commenter used nobarrier
    • talen
      He was referring to the preceding answer (mudrii's one).

      Thanks to all the hints! :)
    blog comments powered by Disqus

Ad