Re: RAID 5 performance issue.
From: David Rees <hidden>
Date: 2007-10-03 20:36:39
On 10/3/07, Andrew Clayton [off-list ref] wrote:
On Wed, 3 Oct 2007 12:43:24 -0400 (EDT), Justin Piszcz wrote:quoted
Have you checked fragmentation?You know, that never even occurred to me. I've gotten into the mind set that it's generally not a problem under Linux.
It's probably not the root cause, but certainly doesn't help things. At least with XFS you have an easy way to defrag the filesystem without even taking it offline.
# xfs_db -c frag -f /dev/md0 actual 1828276, ideal 1708782, fragmentation factor 6.54% Good or bad?
Not bad, but not that good, either. Try running xfs_fsr into a nightly cronjob. By default, it will defrag mounted xfs filesystems for up to 2 hours. Typically this is enough to keep fragmentation well below 1%. -Dave