Re: xfs: very slow after mount, very slow at umount
From: Mark Lord
Date: Thu Jan 27 2011 - 16:56:27 EST
On 11-01-27 02:40 PM, Stan Hoeppner wrote:
> You need to use the mkfs.xfs defaults for any single drive filesystem, and trust
> the allocator to do the right thing.
But it did not do the right thing when I used the defaults.
Big files ended up with tons of (exactly) 64MB extents, ISTR.
With the increased number of ags, I saw much less fragmentation,
and the drive was still very light on I/O despite multiple simultaneous
recordings, commflaggers, and playback at once.
The only, ONLY, glitch, was this recent "first write takes 45 seconds" glitch.
After that initial write after boot, throughput was normal (great).
Thus the attempts to tweak.
> Trust the defaults.
I imagine the defaults are designed to handle a typical Linux install,
with 100,000 to 1,000,000 files varying from a few bytes to a few megabytes.
That's not what this filesystem will have. It will have only a few thousand
(max) inodes at any given time, but each file will be HUGE.
XFS is fantastic at adapting to the workload, but I'd like to try and have
it tuned more closely for the known workload this system is throwing at it.
I'm now trying again, but with 8 ags instead of 8000+.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/